cancel
Showing results for 
Search instead for 
Did you mean: 

To delete an item from the Shopping cart in BADI BBP_DOC_CHECK_BADI

Former Member
0 Kudos

Hi All,

We have implemented BADI BBP_DOC_CHECK_BADI to put a check on the item status.

If the item status is under maintenace, then we need to display the message saying " This item is under maintenance' and this item should not be processed further.

Problem: We are able to display the information message related to item ‘Under Maintenance’ .Now the requirement is that item should not be processed further.

How can I remove that item from the list of items in the shopping cart so that we can process the other items which are not under maintenance?

Rgds,

Sanjeet

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

can you not change the type of the same message as "error"?

so the user will have to remove this item.

then check for deleted item from SC

Former Member
0 Kudos

Hi Dinesh,

I have given the message type as 'E' itself.

But the requirement is that the item under maintenance should be removed and the other items should be processes as it is.

The user have not to remove these items. It should be removed automatically.

Any idea?

Rgds,

Saneet

Former Member
0 Kudos

Hi. If you use the BBP_DOC_CHANGE_BADI method BBP_SC_CHANGE as well you have all the cart data avaliable in IT_ITEM, IT_ACCOUNT and so on.

Then you can set the deletion flag in an item by changing the structure ET_ITEM.

You can issue a warning using the DOC_CHECK BADI as well if you want.

Regards,

Dave.

Answers (0)