cancel
Showing results for 
Search instead for 
Did you mean: 

BBP_DOC_CHANGE_BADI change MULTIPLE items at one go

Former Member
0 Kudos

it seems that with this badi...BBP_DOC_CHANGE_BADI, you can only change one item at a time.

Our requirement:

Sync different Item attributes with the first item in the cart. For example, if the user changed the Delivery address on the first item of the shopping cart, then we would need to cascade this same delivery address to the other items in the cart.

We accomplished this successfully when adding new items to the cart, we change the partner table with partner function 27.

However, after they add 10 items to the cart, if they then change the delivery address on the first line item, how do we update the other 9 items in the cart to have the same delivery address?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Ricardo,

Thanks for the reply, have you successfully done this? can we use the bbp_doc_change_badi to append other partner lines ...do we also need to append the items too?

Former Member
0 Kudos

Kelly,

Shopping cart always has the partners in the item level. and the IT_PARTNER has partners of each table.

so your read statement or modify statement is not just iwth partner function 27 but also with P_GUID = SC_ITEM_GUID.

so each item has their own partner data, you can fill them up and append to ET_PARTNER.

similarly other tables.

Answers (1)

Answers (1)

ricardo_cavedini
Active Contributor
0 Kudos

Hello,

You could try to call BBP_PD_SC_GETDETAIL within your implementation.

Then, in partner table you could modify the delivery address for other items according your requirements.

Regards,

Ricardo