1. PnP logical database.
Loop gets the information type data.
TABLES : Pernr. infotypes 0000 0001 . start-of-selection . GET Pernr. LOOP at WHERE ... ... Endloop . LOOP at WHERE ... ... Endloop.
The macro gets the information type data.
TABLES : Pernr, t001p. infotypes 0000 0001 . GET Pernr. Rp_provide_from_frst P0000 SPACE PN-begda pn-endda. IF 1 . ENDIF . Rp_provide_from_frst P0001 SPACE PN-begda pn-Endda. RP-READ-t001p p0001-werks p0001-btrtl SPACE. WRITE T001p-btext.
2, through the function to obtain.
infotypes:0000,0001 .DATARETURN likesy-SUBRC.Pager FUNCTION 'Hr_read_infotype' Exporting*Tclas = ' A 'Pernr =Pernr infty='0000'*Begda = ' 18000101 '*Endda = ' 99991231 '*bypass_buffer = ' '*legacy_mode = ' ' ImportingSUBRC= RETURNTABLESInfty_tab= P0000EXCEPTIONSInfty_not_found=1OTHERS=2 .
Get Employment Dates
Infotypes:0000 .DATAGv_hdateTYPEsy-DATUM.Pager FUNCTION 'rp_get_hire_date' ExportingPersnr=Pernr check_infotypes='0000'*Datumsart = ' a '*STATUS2 = ' 3 '*P0016_optionen = ' ' ImportingHireDate=gv_hdate.
HR Development Get information type data