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: 

Function Module for fnding all employees under an Org Unit

Former Member
0 Kudos

Hi,

Is there any Function module to find the employees of an ORG Unit .

I need to specify the Org unit Name and get the employees out of it .

I looked at the FM

HRCM_ORGUNIT_EMPLOYEE_LIST_GET .

It has import parameters as

OTYP

OBJID

PATH_ID

What values do i need to pass.

1 REPLY 1

anversha_s
Active Contributor
0 Kudos

hi,

chk this.

call function 'HRCM_ORGUNIT_EMPLOYEE_LIST_GET'
exporting
plvar = p_plvar
otype = 'O '
objid = s_orgeh-low
begda = p_effdt
endda = p_effdt
* PATH_ID = 'O-S-P'
tables
pernr_table = i_pernr
exceptions
path_error = 1
root_error = 2
no_employees_found = 3
others = 4

Thanks,

Anver