9

Display Employee Photo in ESS

Displaying the employee photo in ESS is definitely turning into a FAQ. I’ve seen lots and lots of people asking in forums about this, and how they can achieve displaying the employee’s photo via ESS. Providing that you have at least the Employee Self-Service 60.2 Business Package (for ERP 2004), it shouldn’t be hard for you to get there though some simple custiomizing. Look into the steps below and please, get back to me in case something doesn’t go as you expect.

1. Enter transaction code OANR and create a “Number Range” for SAP Archive Link;

2. For this process, additional authorization will be required for authorization object S_NUMBER = 03 ARCHIVELNK;

3. In “Intervals”, create a number range 01 from 0000000001 to 9999999999 without the external number flag. It is likely that this range already exists;

Display ESS Photo

4. To assign the Documents Class, enter transaction code OAC2 and maintain table TOAVE. Create an entry with Document type HRICOLFOTO with document class JPG;

5. Set all three columns here to minuses and do not set the flag in the check box;

6. Now you must create a Content Repository with a storage type FILE archive. Enter transaction code OAC0.

7. Swap from Display to Change, select an entry and choose Copy. In alternative, you can just hit Create and fill in the following fields:

  • Choose a two character name – can use Zx (where x is a number) if you need to use a customer namespace;
  • Choose the relevant description;
  • Set DocArea to be ‘Archive Link’;
  • Storage type – set to R/3 Database;
  • Protocol – leave blank;
  • Choose Version no. 0046 (or the latest one available);
  • Contents table – set this to SDOKCONT1;
  • Basic Path – c:\ (this should be set to where the photos are stored);
  • Archive Path – c:\ (this is the path from where the photos are to be retrieved);
  • Output Device – leave blank.

8. Enter the path name where the photos are to be loaded from (this is for loading purposes only). When the photos are linked into the SAP system, SAP will take a ‘copy’ and store it in his own repository. The path may only need to be entered to ‘Arch.path’ and all the other entries;

ESS Photo

9. Activate the Content Server Interface by maintaining the corresponding Basis service – transaction code SICF;

10. Create a user profile – with sufficient authorizations to carry out the processes which are done by the system in the background. Ideally this should be a background system user. Using your own user ID will trigger a warning that you are using a dialogue user account. If you use your own user ID, change it as soon as you have tested the configuration. Once you have finished the project, the chances are that your user account will be deleted from the system which will subsequently stop this service from working. Also, don’t forget to document every step of your configurations, including screenshots, passwords and authorization profiles;

11. Double-click on “content server” in the left hand tree structure, under default_host > sap > bc > content server;

12. Click on the refresh icon and make sure that the service is activated (black instead of gray). If it is activated, the writing should also be in bold;

13. Enter transaction code  OAC3 and check which content repository (Archive) is linked to document type HRICOLFOTO in object type PREL.

14. Set the ‘Content Repository’ field to the one you set up in the step above. Note the Ret.per. field is the retention period for the photo in MONTHS (the default is 833 years and 3 months);

Linking a photo to a personnel number

15. Enter transaction code OAAD and click on “Store and Assign”;

16. Enter business object PREL, document type HRICOLPHOTO and click on Create;

17. Enter the Personnel Number of the employee you want to link the photo to. Choose the infotype that you wish the photo to be displayed on (I’ve tested with Infotype 0002 but should);

18. Click on Continue;

19. Enter the path and filename of the photo. The dropdown will allow you to navigate to the appropriate directory;

20. The system will notify you that the Stored document is created successfully. If an error 401 appears, regarding missing authorizations, redo the above step. It is known to happen the first time you try to load the photo (SAP:-));

Displaying photos

21. You can now display your linked photos.

22. From any Infotype in PA30, you achieve this by selecting the employee in Display or Maintain Data and selecting Menu item ‘Extras’, display all facsimilies:

  • Access transaction code SM30 and maintain table T588J;
  • Note that Header structure per infotype and Header modifier activities describe which header is to be shown at the top of each infotype. The Passport photo option determines whether HRICOLFOTO or HRIEMPFOTO is used. Choosing either option is acceptable as long as all your other settings relate to that entry as well;
  • Add an entry for PERNR with Filed Type ‘PIC’. Column 75 puts the picture on the right hand side. The IT column is used to decide where to take the ‘Field Name’ value from. For the PERNR attribute, all infotypes have this field;
  • Before closing, GENERATE the screen header again;

23. In PA30, you can double click on the picture in the Infotype. This will bring up a bigger version of it;

24. As soon as the above configurations are done, ESS users can now update their own data, using the Who’s Who application;

25. Managers will also be able to view the employee’s photo in the MSS application Team: Employee Information.

Author : Antonio Caldas

Author's Website | Articles from

Working as an Information Systems Consultant for over 10 years, I've found that working with SAP brought me added value on how to deal and manage IT and Information Systems Projects. More than a hobby, this blog is aimed to propagate SAP knowledge exchange and help other SAP technology or functional Consultants finding any piece of useful information. Please participate with your comments and opinions, it will help enrich the SAP community. Thanks!


Related Posts


User Comments


  1. Suresh Ramalingam
    March 29, 2010

    I tried with above steps and it’s working fine for one server. But same settings if i made to another server it’s showing warning message that HTTP error: 401 Unauthorized so photo is not uploading.. give me suggestions…

    Reply


    • webmaster
      September 13, 2010

      Hi Suresh,

      Make sure the machine that will host the photos is reachable from your portal or ERP system. You should contact the Basis and the System Administration team.
      Thanks, regards.
      Antonio Caldas

      Reply


  2. Amina
    October 6, 2010

    Hi,
    Do you know what authorizations the ESS role should have so that the employee can see the pics on ESS?

    Thank you
    Amina

    Reply


    • webmaster
      October 7, 2010

      Hi Amina,
      You can find that information on help.sap.com. Spend some time there and you will find which are the appropriate objects to be included in your role/authorization objects.

      I also recommend that you read through my post entitled “How to do a System Trace“. If you already have a role assigned to your user and you’re able to run ESS applications but you’re having problems displaying the photo, it might be worth a try to check for “Authorization Check”. If an authorization check fails, it will appear in a different (lighter) green color. From here you will know which authorization object you will have to update in your role.

      Hope this helped.
      Regards.

      Antonio

      Reply


  3. Katrien Goossens
    May 5, 2011

    Hi,

    Is there also a possibility to show (in R/3 or in the portal) a list with all the pictures with the names of the employees next to them?

    If you see a person in the company and you don’t know who it is, you can find him in this way.

    Regards,
    Katrien

    Reply


    • webmaster
      May 5, 2011

      Hi Katrien,

      From what I understand from your question, what you need is a custom development, either for the ERP backend or the Portal. In any case, it should be pretty much straightforward, for any developer with experience with HCM and Portal development tools, such as Web Dynpro.

      Thanks for visiting SAPLAB.org!
      Regards

      Antonio

      Reply


  4. Vivek
    April 1, 2012

    When we upload a photo in R/3 it shows both in portal and PA. Perfect. But when update a photo in R/3 through the same steps, the R/3 shows new photo but portal doesnt update. I went through sites and found that you would need to delete the old photo, only then new photo will show in portal. Pl advice.

    Reply


    • Antonio Caldas
      April 10, 2012

      Have you tried tracking authorization issues?
      You can also try a system trace and try to understand what is failing.
      Good luck.
      Antonio

      Reply





Community Feeds

  • Java Online Training

    very nice post thanks for sharing this article.
    Thanks
    Training Aspirants
    http://www.trainingaspirants.com

  • informatica online training/obiee online training

    We are providing the best online training by industrial IT experts with one free demo class, real time coaching and placement assistance.

  • Sap

    TallyMarks Consulting has successfully implemented SAP BI and Business Objects in a record time of 5 months at Getz Pharma. For more details on this cost effective project by the market leader, visit: http://www.tallymarks.co/

  • Learn SAP

    Refer this blog to learn some useful tips on various SAP customizing areas.

  • Free and premium SAP Training

    SAP training for all skill levels – complete beginner to very experienced. Articles, Videos and downloadable content.

  • SAP Blog

    SAP centric blog based on practical experiences of an admin

  • SAP Jobs

    Red Commerce is a leading recruitment agency which specialises in sourcing quality staff for the SAP industry. Our site is full of useful information and we are always on hand to answer any queries you may have.

  • SAP Online Training on all Major IT Courses.

    Training Aspirants provide Online Training & Corporate Training. We make sure for a right class size in order to make Online sessions most interactive.
    Training Aspirants started with a motto to provide quality and effective online training for the students worldwide with the best instructors.

    For Details Visit: http://www.trainingaspirants.com

    Call Us: US :001-713-900-7669
    US: 001-630-974-1794
    India : 091-779-985-5779
    Mail Us: mail@trainingaspirants.com

  • Expertise technique SAP, ABAP

    Expert Technique SAP, ABAP

  • SAP Training and Certification Courses

    Be a part of SAP training and online sap certification to boost up your skills and career. SAP training helps to improve your business methodologies which are beneficial to generate business around the world. JKT SAP Academy is an authorize education partner of sap and provide sap training for sap abap, sap erp, sap basis, sap fi,sap co, sap mm, sap sd, sap pp and other functional modules.

Submit More
;;