Application Development and Automation 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: 
Read only

getting the sub organization unit

Former Member
0 Likes
453

Hi experts,

I'm developing a report in which i need to take all the sub organization units for the given org unit. I have used the FM 'RH_STRUC_GET' to get the sub org unit. But it returns 3 output tables. i dont know which table will contain the sub org units. pls help me with the coding.

Regards,

Shanthi.

Hi experts,

I'm developing a report in which i need to take all the sub organization units for the given org unit. I have used the FM 'RH_STRUC_GET' to get the sub org unit. But it returns 3 output tables. i dont know which table will contain the sub org units. pls help me with the coding.

Regards,

Shanthi.

1 REPLY 1
Read only

Former Member
0 Likes
392

We have a case where we need to determine all suborgs that belongs to a certain org:

CALL FUNCTION 'RH_STRUC_GET'

EXPORTING

act_otype = 'O'

act_objid = lv_parent_org_objid

act_wegid = lv_wegid

act_begda = lv_effective_date

act_endda = lv_effective_date

act_tdepth = 1

act_tflag = ''

act_vflag = ''

authority_check = 'X'

TABLES

result_tab = lt_result_tab

EXCEPTIONS

no_plvar_found = 1

no_entry_found = 2

OTHERS = 3.

lt_result tab will contain all suborgs belonging to the parent org you passed in.

We have a dynamic evaluation path determination, but in this case it should be the following sequence in your evaluation path:

No Obj. Type A/B Rel'ship Relationship Name Prio Rel.obj.type Skip

10 O B 002 Is line supervisor of * O

Transaction OOAW to maintain evaluation paths.

Hope that helps,

Michael