Skip to Content
0
Former Member
Mar 21, 2007 at 05:58 PM

How to add Shopping Cart lines programatically in SRM?

109 Views

Folks,

We have a requirement in EBP where we need to add shopping cart line items programmatically AFTER a line item is added by the requistioner for certain conditions.

Supposing, if the requisitioner enters a shopping cart item through EBP "Shopping Cart - Full functionality" link with a quantity = N ( where N > 1). Then, our requirement is that, for certain product category, we need to split one item with qty = N into N different line items with qty = 1.

To do that, I'm looking at the possibility of adding shopping cart lines programatically through one of the BADI's. (doc change, create req back, sc transfer etc..)

I've tried to develop a prototype by implementing BBP_APPEND_ITEM BADI to see if any change is taking place. But it seems like the control doesnt get into the above BADI while adding an item to the cart.

If you have any suggestions or ideas, pls. pass it on. It would be highly helpful.

Thanks in advance,

Seyed