Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Search all employees - HR

danilo_henriques
Explorer
0 Kudos

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.

1 ACCEPTED SOLUTION

JozsefSzikszai
Active Contributor
0 Kudos

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

4 REPLIES 4

JozsefSzikszai
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

you can simply select from IT0001 in SE16N. if you want active employees, don't forget to set your ENDDA = 12/31/9999

Former Member
0 Kudos

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.