Anda di halaman 1dari 5

We can also use standard SAP function module

HR_MX_CLEAR_PAYR_BUFFERS available within R/3 SAP systems


depending on your version and release level SAP.

2 – PS Buffer

As already mentioned above PS Buffer is used when function module


'HR_INFOTYPE_OPERATION' is called for updating master data. Call the
function module 'HR_PSBUFFER_INITIALIZE' to clear the buffer after each
update.

When you are reading master data using function module


'HR_READ_INFOTYPE it uses the same buffer as above, can be cleared with
function module HR_INITIALIZE_BUFFER.

3 – PRELP Buffer

PRELP Buffer also called PNP Buffer. This buffer cannot be cleared, and
usually it does not create problems, because it is designed to work with huge
amounts of data.

It is important to know what buffer you are using.

So in PNP programs you should not call functions that read the infotypes with
the PS buffer or with another buffer. Because you would break the buffer,
causing delay in read.

Best practice to read data when using PNP in program:

1. Possibly with the TRMAC Macro RP-READ-INFOTYPE

RP-READ-INFOTYPE A B C D E, where

A corresponds to PERNR which describes for which personnel number


you require records.

B corresponds to INFOTYPE which describes from which infotype you


require records.

C corresponds to data structure of the declared infotype (internal table


like P0000 for infotype 0000) where all the records of the particular
personnel number will be stored.

D corresponds to Start date.

E corresponds to End date.

2. Call the subroutine read-infotype in program sapdbpnp by passing the


necessary parameters as below.

Example: PERFORM read-infotype(sapdbpnp) TABLES p0001 USING


'00001010'

'0001' '18000101' '99991231'.

While in master data (PA30 and the like) you should use the PS buffer functions
and forms. Just like PERFORM READ_INFOTYPE(SAPFP50P) USING...

-- RP-READ-INFOTYPE macro from TRMAC

Procedure for uploading employee photos into SAP-HR IT002


By Venkata Raju Duggirala, Yash Technologies

1. Create a number range for SAP Archive Link:

IMG>Basis Components>Basis Services>SAP Archive Link>Basic Settings>Maintain number ranges.


Tcode: OANR

Create range 01 from 0000000001 to 9999999999 without the external number flag.

2. Document type HRICOLFOTO must exist with document class JPG.

IMG>Basis Components>Basis Services>SAP Archive Link>System Settings>Maintain document types.

Table: TOAVE

Tcode: OAC2

3. Document type HRICOLFOTO must be linked to object type PREL and IT0002.

IMG>Personnel Management>Personnel Administration>Tools>Optical Archiving>Set up Optical


Archiving in HR.

View: V_T585O,

In all three columns there are minuses, don't put a flag in the check box.
4. Check which content repository (Archive) is linked to document type HRICOLFOTO and object
type PREL.

IMG>Basis Components>Basis Services>SAP Archive Link>Basic Settings>Maintain Links.

Table: TOAOM_C,

Tcode: OAC3

5. Create this content repository with storage type FILE archive.

IMG>Basis Components>Basis Services>SAP Archive Link>Basic Settings>Maintain content


repositories.

Tcode: OAC0

Storage type FILE archive can be attained by clicking on the field Storage type and clicking somewhere
else in the screen with the right mouse button. Choose Possible entries and only then you get a list of all
values. FILE Archive is entry number 08. Choose Version no. 0031 and Archive path something (e.g. C .

6. Link photo to personnel number.

Menu>Tools>Business Documents>Miscellaneous>Stored Documents.

Tcode: OAAD

Click on the Create button. Business objects PREL and Document type HRICOLFOTO. Click on create
(fill in the right personnel number in the pop up and click Continue). Choose the photo (as a JPG file) from
the place where it is saved (e.g. hard disk). SAP will notify that the Stored Document was created
successfully. Photo is visible via PA10, PA20, PA30, and PA40. Double-click to magnify photo.

Step1.

Anda mungkin juga menyukai