cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Delivery Address

Former Member
0 Likes
191

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Likes

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).

Former Member
0 Likes

Hi,

The above change is to specific to one vendor ABC.

Could you please ellaborate your solution.

Thanks and Regards,

/N

Former Member
0 Likes

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.

Former Member
0 Likes

Hi,

In the same BADI we have debugged BBP_DOC_Change_Badi and found for a line item1 and guid/partner_guid of ship-to address which are matching at interfacing level and hence our issue is solved.

Thanks and Regards,

Sri Naveen