Skip to Content
author's profile photo Former Member
Former Member

To delete an item from the Shopping cart in BADI BBP_DOC_CHECK_BADI

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Apr 29, 2008 at 07:47 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.