on 04-07-2015 2:20 PM
Dear Experts,
Please help on the following issue
We are unable to fetch the function details from PPOSA_BBP t-code.
for example we have an orgunit say '00000002' and for them in the details section under Functions tab we need to read the Local purchasing group and ID.
I have also attached the screen shot like which data we are trying to read in our BADI.
Please let us know any function module or DB to get the required associated values
HI Balajisha,
You can try using the FM 'BBP_READ_ATTRIBUTES" and fetch the attributes of the user or the org unit.
So even if the data in PPOMA_BBP changes, the FM will fetch the latest data.
Please reward points if helpful.
Regards,
Aakash Awasthi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Aakash,
Thanks for your reply, i tried using the FM BBP_READ_ATTRIBUTES by passing the Purchasing Org unit but it is not giving back associated Purchasing group.
Basically what we are trying to do is, while creating the RFX from the Shopping cart we are replacing the purchasing group with header org unit purchasing group.
Hi Balajisha,
If I get you correctly, your want to replace your purchasing group, with the Head of the Org unit.
So in that case for the User, under the Details, the checkbox, "Head of Organizational Unit" should be checked.
Now what you can do is, fetch the user who is assigned as head of the org unit using the FM " BBP_OM_STRUC_GET_MGR_FROM_ORG", here you will get the ID of head of the Org unit under et_manager_id. (Checkbox Head of Organizational Unit" should be checked for the User)
You can use this ID, as the username and use the FM "BBP_READ_ATTRIBUTES".
Not sure, whether this will work, but you can give it a try.
Regards,
Aakash Awasthi
Hi Balaji,
You can use FM BBP_PD_SC_GETDETAIL.
Just provide your SC number in import parameter I_OBJECT_ID and you will get all the details you are looking for in the tables below.
Else,
You can try FM BBP_OM_DETERMINE_RESP_PGRP, which will return the purchasing groups as well as purchasing organizations.
Thanks,
Ajit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ajit,
Thank you for replying.
I have checked the given function modules, but the outcome is different, may be i will re-iterate whatever i have written above.
function module to read the Functions tab data from the org structure & to check whether the org unit is purchasing group or not.
Please help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.