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;

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;

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.







Suresh Ramalingam
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…
webmaster
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
Amina
Hi,
Do you know what authorizations the ESS role should have so that the employee can see the pics on ESS?
Thank you
Amina
webmaster
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
Katrien Goossens
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
webmaster
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
Vivek
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.
Antonio Caldas
Have you tried tracking authorization issues?
You can also try a system trace and try to understand what is failing.
Good luck.
Antonio