cancel
Showing results for 
Search instead for 
Did you mean: 

FM to get the root org id

Former Member
0 Kudos

Hi,

My requirement is to pass the Username and get the root Org id for the same.

Is there any FM available for this purpose.

Kindly provide your inputs.

Thanks ,

Mani

Accepted Solutions (1)

Accepted Solutions (1)

former_member183819
Active Contributor
0 Kudos

BBP_OM_STRUC_GET_ORG_FROM_USER

close the thread mani

br

muthu

Former Member
0 Kudos

Hi Muthu,

Thanks for your reply.

I tried this FM.

But I want to get the root org like 50000711 something like that.

But this FM is giving some other org id.

Regards,

Mani

Former Member
0 Kudos

Hi Muthu,

Thanks for your reply.

I tried this FM.

But I want to get the root org like 50000711 something like that.

But this FM is giving some other org id.

Regards,

Mani

Former Member
0 Kudos

Hi Muthu,

You have resolved my problem. Thanks a lot.

-Mani

former_member183819
Active Contributor
0 Kudos

Hi

You are correct. I may not deserve to get this pt since you asked to get root id. but this fm might given assigned user id. i will check and let you know shortly.

br

muthu

former_member183819
Active Contributor
0 Kudos

Hi

You are correct. I may not deserve to get this pt since you asked to get root id. but this fm might given assigned org id. i will check and let you know shortly.

br

muthu

Former Member
0 Kudos

Hi Muthu,

FM which you haev suggested is correct only

regards

subbu

Answers (1)

Answers (1)

laurent_burtaire
Active Contributor
0 Kudos

Hello Mani,

Using RH_STRUC_GET function module, you will get the root unit of your organizational plan.

For this, populate importing parameter as follow:

ACT_OTYPE = 'S' (Position object type)

ACT_OBJID = user's Position obtained with BBP_OM_STRUC_GET_POS_FROM_USER MF,

ACT_WEGID = 'P-S-O-O' (evaluation path 'Direct or indirect organizational assignments of a person').

In exporting parameter RESULT_OBJEC, you will have all organization units upper than user one until root unit.

Regards.

Laurent.