cancel
Showing results for 
Search instead for 
Did you mean: 

User's Business partner number and parent unit Business partner number relation

Former Member
0 Kudos

Hi experts,

When I have a users business partner number how can I derive the user's parent unit business partner number? Is there a table or a function module that will help me?

I know that I could search in PPOMA_BBP but I need to do this in ABAP coding.

Best regards,

Sarnava Bose.

Accepted Solutions (1)

Accepted Solutions (1)

robin_janke
Contributor
0 Kudos

Hi,

if you want to get this data from the database, check table HRP1001 (contains the complete hierarchy in SRM):

1. Put user BP in field SOBID (with preceding 0), subtype is B207, this gives you the central person.

2. With the central person, in field OBJID and subtype B008 gives you the position.

3. With the position, in field OBJID and subtype A003 gives you the parent organisational unit.

4. With the org unit ID, in field OBJID and subtype B207, you will find the BP of the org unit.

Please also think about start and end date in the selection.

Regards,

Robin

Former Member
0 Kudos

Thanks Robin

Answers (0)