cancel
Showing results for 
Search instead for 
Did you mean: 

Adding a new line item to a shopping cart using BBP_DOC_CHANGE BADI

Former Member
0 Kudos

Hello All

Our requirement is to automatically add a new line item to the shopping cart with freight details when a shopping cart is created for a specific material group.

We are trying to use BBP_DOC_CHANGE_BADI for this.

Can the FM BBP_PD_SC_CREATE be used for this purpose?

Is there any other FM which could be simpler to use.

Thanks

Kedar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Yes you can use BBP_DOC_CHANGE_BADI for adding new items. You just need to populate a new entry in the ET_ITEM internal table. But I am not sure you can add freight information to that item through this BADI as freight is not part of the interface for SC.

Former Member
0 Kudos

Thanks, but how do I create a new GUID for the item??

What all data should be entered into ET_ITEM

Thanks

Kedar

Former Member
0 Kudos

GUID can be generated via FM call GUID_CREATE. Set a breakpoint in the BBP_DOC_CHANGE_BADI implementation and create a new item from the UI. You should be able to see what are the fields that get filled there.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello

Could someone pls. comment if it is possible to add an item to a shopping cart , programatically.

Thanks

Kedar