cancel
Showing results for 
Search instead for 
Did you mean: 

Get user's responsible purchasing Org

former_member184111
Active Contributor
0 Kudos

Hi Forum,

We need to determine the logged in user's responsible purchasing org in the org structure for some functionality.

I have seen the thread http://scn.sap.com/thread/1868631 but could not find much use full inof.

Also we are not using the BADI BBP_PGRP_ASSIGN_BADI so I believe the function module BBP_OM_DETERMINE_RESP_PGRP will not work.

How to determine the responsible purchasing org for a user in that case?

Thanks,

Anubhav

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Anubhav,

BBP_OM_DETERMINE_RESP_PGRP  is the correct function module to retrieve the Responsbil Pur Org and Pur Group.

You could just pass the User id or the Item details (product category etc) for the function module.

If you would like to know how to use it, please do a where-used list ... and you will get to see how are the input parameters sent to this FM.

Regards,

Sushil.

Answers (1)

Answers (1)

former_member208675
Active Contributor
0 Kudos

Hi,

You can use following table:

  • HRV5500OT to get PurOrg & PurGrp according to user.
  • BBP_PDORG to get PurOrg & PurGrp according to to document.

I hope it helps.

Regards,

former_member184111
Active Contributor
0 Kudos

Thanks Sushil and Vinay for the help.

To the function module pass

IS_OBJECT => OT=US & OBJID = ID of user

You will get

ES_PURCH_DATA => PROC_ORG--> OTYPE = O & OBJID = ID of purch org

Thanks,

Anubhav