cancel
Showing results for 
Search instead for 
Did you mean: 

how to get parent org id ?

0 Kudos

hi everyone,

My requirement is when i pass child orgid i want to get parent orgid.

Is there is any funciton module ?

vry urgent,

regards

Stanley

View Entire Topic
Former Member
0 Kudos

Hello,

use the function module RH_STRUC_GET.

CALL FUNCTION 'RH_STRUC_GET'

EXPORTING

act_otype = 'O'

act_objid = p_objid

act_wegid = 'O-O'

act_plvar = p_plvar

act_begda = sy-datum

act_endda = sy-datum

TABLES

result_struc = p_struc

EXCEPTIONS

no_plvar_found = 1

no_entry_found = 2

OTHERS = 3.

Regards,

Krishna

Message was edited by:

Krishnakumar

0 Kudos

hi Krishnakumar,

Thanks for ur valuable reply. Ur fm almost solved the problem. But i have

small doubt. Will this fm track all the objid when we assign act_otype = O ?

regards,

Stanley

Former Member
0 Kudos

In FM RH_STRUC_GET import parameter objid is not optional..

u have to pass it.