on 2010 Mar 09 12:40 PM
Hi All,
Requirement: If we have different delivery address in multiple line items of SC, the first line item delivery address should be replaced by other line items.
I would like to know the relation between first line item in the shopping cart and its correspnding delivery address?
I have compared the guid of first line item (BBP_PD) and guid of shipping address (second guid not partner guid) which were not same.
Any alternatives we have.
Thanks and Regards,
/N
Request clarification before answering.
I would like to know the relation between first line item in the shopping cart and its correspnding delivery address?
I have compared the guid of first line item (BBP_PD) and guid of shipping address (second guid not partner guid) which were not same.
The relation between a set (such as partner, condition, attachment, etc) and header/item is not linked directly by parent/child relationship. It's through a third linkage table. But when you are creating the document, eg. SC, with a partner, you can specify the partner's "P_GUID", to indicate who the "parent" is, by giving the header GUID or the item GUID accordingly.
Now if you want some specific logic to "copy over" ship-to address for subsequent items' ship-to addresses, you could implement the logic in BBP_DOC_CHANGE_BADI for SC (BUS2121).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the implementation of your BBP_DOC_CHANGE_BADI for BUS2121, you would try to retrieve the partner (ship-to addres) of interest by FM such as BBP_PARTNER_ON_ITEM_SINGLE_GET, and then with the returning ET_PARTNER_ITEM_SINGLE, find the parent of the partner (through P_GUID). Then once you have identified the parent item, you could then proceed with your logic to compare/update the ship-to address of other items. Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.