2008 Sep 26 2:54 PM
Hi,
Which one is the best infotype to search for all employees in the company: 1 or 0 ?
Is there any function that brings me this kind of information?
Thks.
2008 Sep 26 2:58 PM
hi,
infotype 1 is basic table for employee master data (Infotype 0000 is for actions).
For employee list:
BAPI_EMPLOYEE_GETLIST
BAPI_OUTEMPLOYEE_GETLIST
(or you can select all valid data from PA0001)
ec
2008 Sep 26 2:58 PM
hi,
infotype 1 is basic table for employee master data (Infotype 0000 is for actions).
For employee list:
BAPI_EMPLOYEE_GETLIST
BAPI_OUTEMPLOYEE_GETLIST
(or you can select all valid data from PA0001)
ec
2008 Sep 26 3:12 PM
Hi,
Infotype 1 is the best infotype to get all the employees of an orgnsn.
U can use the provide statement to get all the employees from Inftype 1 as follows.
provide pernr from pa0001 between pn-begda and pn-endda.
wa_it = p0001-pernr.
append wa_it to itab.
endprovide.
Cheers.
2008 Sep 26 7:44 PM
you can simply select from IT0001 in SE16N. if you want active employees, don't forget to set your ENDDA = 12/31/9999
2008 Sep 26 7:52 PM
You can also use logical database PNP. Using the GET PERNR. event, you'll have all your employees one by one and you can precise some selection criteria.