For an Org Unit, how do we get all Reporting Org units (Also employees reporting to the sub org unit) & Employees ?

Hi Experts,
I have a very common requirement in SAP HCM ABAP development.
For an Org Unit, how do we get all Reporting Org units(Also employees reporting to the sub org unit) & Employees ?
I have tried using RH_STRUC_GET_MULTIPLE_ROOTS and RHPH_STRUCTURE_READ, but the evaluation path is insufficient to get all objects under it. I tried with both O-S-P and O-O-S-P evaluation paths and as per some constraints, I can’t create a customized evaluation path for a reason.
I am using PNPCE database for user selection screen and user would be advising the Org unit. I even referred the standard transaction ‘S_AHR_61016495’ which is using PCH logical database.
I would really appreciate if anyone could provide a solution for this. (Rewards guranteed )
Kindly help.
Thank you.
Regards,
Mahesh Konade

Hi Alexandre,
Although I could not respond in time, thank you so much for your prompt reply.
I had used the same RHPH_STRUCTURE_READ and passed the appropriate values to it, but it did not populate the required results. I cross checked the results manually, may be some relations issue. But later I tried using RH_STRUC_GET_MULTIPLE_ROOTS and it worked fine.
Meanwhile I had done a workaround with PCH and RH_STRUC_GET and it served the purpose of getting all the Org units, it’s reporting sub-org-units, positions and persons (The deepest structure from the root org unit advised on selection screen).
The solution I used is, I captured the org-units advised on selection screen by user using PCH logical database and then by looping on sub-org units reporting to the main org-unit I populated related positions and persons holding them and assigned it to the PNPCE logical database.
Thank you so much for the help.
Regards,
Mahesh Konade

Similar Messages

Maybe you are looking for