cancel
Showing results for 
Search instead for 
Did you mean: 

how to get parent org id ?

0 Kudos
426

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

Accepted Solutions (1)

Accepted Solutions (1)

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.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

try Fms -

HRHAP_PREP_READ_ORG_STRUCTURE

HR_CE_FILL_ALV_ORG_STRUCTURE

HR_CE_FILL_EXT_ORG_STRUCTURE

<b>RH_MWBC_GET_OBJEC_STRUC</b>

RH_ORG_STRUCTURE_SHOW

RHPH_SHOW_ORG_STRUCTURE

For Org specific info for users,you can search in the HRP* tables.

<b>

Reward points</b>

Regards

Former Member
0 Kudos

Hi,

MAy help u.

HRXSS_ORG_GET_SUPERIOR_LEVEL

Reward if useful!