How to know whether User is Buyer or not?
I am developing a function module to create/update/unassign Employee Org Hierarchy. In this I have to know whether User is BUYER OR NON BUYER?.
If user is assigned to purchase org/purchase group then he will be BUYER or else he will be NON BUYER. If once I come to know whether user is BUYER OR NOT, then I have to proceed further differently in both the cases.
Pls help me out in this regard asap.
Thanks & Regards,
Message was edited by: Nagaraju Maddi
Jagadish Reddy replied
Buyer will be having purchaser roles like SAP_BBP_STAL_PURCHASER, SAP_EC_BBP_PURCHASER, SAP_EC_BBP_ST_PURCHASER. Check the roles of the users. If you find Purchaser(standard roles) or Buyer(in case of customized roles) in their roles then he/she will be buyer.
Similarly Non buyer user will be having Employee role like SAP_EC_BBP_EMPLOYEE.
Hope this will help you.
Do reward points for helpful solution.