on 02-13-2013 9:04 PM
Hello,
I have a request to modify ET_ORGDATA in the BBP_SC_CHANGE method of BADI BBP_DOC_CHANGE_BADI if the vendor and item combination is found in a custom table.
The problem I have ran into is that the vendor partner number is not being populated until the shopping cart is saved.
Is there a way to lookup the preferred supplier assigned to a catalog item in the BBP_SC_CHANGE method after the item(s) are first added to the cart (but before the save)?
Thank-you.
Hi,
If I have not misunderstood your issue, the table IT_PARTNER is only filled within the badi if you change something of that partner.
You can use within the badi the FM BBP_PD_SC_GETDETAIL to get the current partners of your SC.
EDIT: I didn't read you are talking about catalog items... check if the badi BBP_CATALOG_TRANSFER is useful...
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
Thanks Ricardo for the advice.
It looks as if I can use ENRICHED_ITEM_DATA in BBP_CATALOG_TRANSFER, which has vendor ID, and tranfer it to ET_SC_ITEM_DATA once I have created an append structure. Hopefully, this will work when the BBP_DOC_CHANGE_BADI.
I will update soon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
BBP_CATALOG_TRANSFER only works when you are transferring data from Catalog (Punch-out or MDM). Is your requirement is to modify the Data when requester do punch out based on your custom table combination?
As Ricardo mentioned FM BBP_PD_SC_GETDETAIL gives you all the partners information. If you are using Preferred Supplier then Partner number is 0039 not 0019.
Hope this helps.
Thank you
Ritesh
Hello and thanks for the response.
Currently, I am working with an item from a catalog (MDM).
When viewing the PARTNER tables in BADIs BBP_DOC_CHANGE or BBP_CATALOG_TRANSFER, the vendor partner number is all zeros, whereas other partner functions are populated with numbers.
In both BADIs, I have tried calling the FM BBP_PD_SC_GETDETAIL (and FM BBP_PD_SC_ITEM_GETDETAIL) to retrieve the vendor partner number, but it still is blank.
I do see the vendor partner number after saving the shopping cart; however, this is too late. My goal is to default the purchasing group using the vendor partner and item category while user is creating the shopping cart (not at save time).
Eventually, I will need to do the same for AD HOC orders, but first I am working with the catalog.
Thank in advance for your thoughts,
Hello,
Thank you for providing details; In order to get vendor number from MDM catalog you do not require then FM. You can define following way;
r_catalog_content TYPE bbp_ws_oci_item_s; As BBP_WS_OCI_ITEM_S have vendor information so you can then retrive it as below;
And R_CATALOG_CONTENT - VENDOR you will get your vendor number.
Hope this helps.
Thank you
Ritesh
Hello,
Thank you for the response. Your response sounds promising; however, I do not understand what is meant by ...
"You can define following way; r_catalog_content TYPE bbp_ws_oci_item_s"
How and where do you define r_catalog_content ?
I am new to how data is constructed in SRM, so your input would be appreciated.
Thanks in advance for input.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.