Sunteți pe pagina 1din 7

How to Configure Photos (4.

6C)
N 1. A number range must be created for SAP Archive Link.

Tcode: OANR IMG: Basis Components Basis Services SAP Archive Link Basic Settings Maintain number ranges

For this process, additional authorisation is required for S_NUMBER = 03 ARCHIVELNK. In Intervals, create number range 01 from 0000000001 to 9999999999 without the external number flag. This is likely to already exist. 2.
Tcode Table IMG:

Document type HRICOLFOTO must exist with document class JPG.

OAC2 TOAVE
Basis Components->Basis Services->SAP Archive Link->System Settings->Maintain document types

If you want, this can be other picture formats, eg .BMP 3.


Tcode Table IMG:

Document type HRICOLFOTO must be linked to object type PREL and Infotype 0002.

SM31 V_T585O

(View) Personnel Mangmnt Personnel Administration Tools Optical archiving Set up Optical Archiving in HR

Set all three columns here to minuses and don't put a flag in the check box.

4.
Tcode IMG:

Create a content repository with storage type FILE archive.

OAC0
Basis Components Basis Services SAP Archive Link Basic Settings Maintain content repositories

Swap from display to amend. Select a current entry and copy or just hit create. Then select . Then fill in the details as below: Choose a two char name Set DocArea to be Archive Link Storage type FILE archive (see Note below on how to get this!) Choose Version no. 0031 Enter the path name where the photos are to be loaded from. Note this is for loading only. When the photos are linked into the sap system (see later), actually, SAP takes a copy and stores it elsewhere. The path may only need to be entered to Arch.path, but entering to all three doesnt seem to hurt. Page 1 of 7 12/09/11 (05:55)

How to Configure Photos (4.6C)


Note on storage type: Storage type FILE archive may not be in the dropdown list, and F4 (poss entries) may not work! If this is the case, click on the field Storage type (left mouse button) and then click the right mouse button. Choose Possible entries and a full list of all possible storage types is shown. FILE archive is entry number 08.

Page 2 of 7

12/09/11 (05:55)

How to Configure Photos (4.6C)


5.
Tcode Table IMG:

Check which content repository (Archive) is linked to document type HRICOLFOTO in object type PREL.

OAC3 TOAOM_C
Basis Components Basis Services SAP Archive Link Basic Settings Maintain Links

Set the Content R field to the one youve just set in the step above.

Note the Ret.per. field is the retention period for the photo in MONTHS. (so the default is 833 years and 3 months!) 6.
Tcode
SAP Menu:

Link photo to personnel number.

OAAD
Tools Business Documents Miscellaneous Stored documents

Click on the Create button. Enter Business Object PREL and Document Type HRICOLFOTO. Click on create(F8). Enter the Personnel Number of the employee you want to link the photo to. Click on Continue. Enter the path and filename of the photo. The dropdown will allow you to navigate to the appropriate directory. SAP will notify that the Stored document is created successfully and you end up with something like:

7.

Displaying Photos You can display your linked photos straight away if you want, from any Infotype, by selecting the employee in Display or Maintain Data and selecting Menu item Extras, display all facsimilies:

However, this will open a new application (eg Paint) and load the picture into it. This is a bit cumbersome. Its much more likely that you really want the picture to appear nicely in the header of the appropriate infotype. 8.
Tcode Table IMG:

Amend Infotype Headers to display photo nicely.

SM31 T588J
Personnel Mangmnt Personnel Administration Customising User Interfaces Change Screen Header

If youre following the IMG path, you must now choose activity Infotype Header Definition

Page 3 of 7

12/09/11 (05:55)

How to Configure Photos (4.6C)


Note, Header structure per infotype and Header modifier activities describe which header is to be shown at the top of each infotype. The enticing Passport photo option is NOT required ! In the example below, the picture has been placed in header modifier 00, which corresponds to screen header 00, which is linked to Infotype 0000. This incidentally also allows the picture to display on the initial screens for transactions PA10, PA20, PA30 and PA40. All you need to do is 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 PERNR, all infotypes have this field.

Dont forget to GENERATE the screen header again. The resultant Infotype display may look something like:

Double clicking on the picture will bring up a large version.

Other Useful Hints. You can add more than one photo to the same employee ! If you do this, (see step 6), both photos are store (with stored dates). The latest one will be displayed on the infotype header. Selecting menu bar Extra Display all facsimilies will give you a list of all the photos for the employee. To look at one, select it and choose something like Display from content server. (some of the normal display buttons dont actually display the photo, just details about it!). You can find details of, and delete photos. This can be done from transaction OAAD (see step 6), but choosing Find rather than Create. Make sure you choose the right Find. Photos are Documents.

Page 4 of 7

12/09/11 (05:55)

How to Configure Photos (4.6C)

Page 5 of 7

12/09/11 (05:55)

How to Configure Photos (4.6C)


Select Business object PREL and its a good idea to enter your Content Repository in the Archive Field.

You may be further asked for a Personnel number. If you blank this out, youll get all the entries in your Archive. To delete a photo, select the entry and hit the dustbin (or Delete). After a number of are you sure messages, and a display of the doomed photo (probably in a separate window which will need closing again), the photo will be deleted. Note, the deleted entry will NOT vanish from the currently displayed list. You will need to back arrow out of the list and reexecute the archive display to see the changes.

Page 6 of 7

12/09/11 (05:55)

How to Configure Photos (4.6C)


Photo in the PA IT0002 In version 4.0B it worked ---------------------------------------------------------------------1. Define physical archives using transaction OAC0 Arx. ZZ 2. Assign objects types & document types to archive & documents tables for Obj PREL , doc.type HRIEMPFOTO, Arx. ZZ using transaction OAC3 3. Define number range using transaction OANR 4. Using transaction OAC2 define doc.typ & tech doc types for exmpl. HRIEMPFOTO - TIF 5. Create protocol for Archive link using transactions OAA3 for exmpl. Comm.prot.,version. Generate it will define application type from list and so on. 6. In the table 585O define relevant infotype for object and document type for exmpl. for it0002 7. Using transaction OAAD create link for PERNR with relevant infotype & files on the server wich described on the first step.

Page 7 of 7

12/09/11 (05:55)

S-ar putea să vă placă și