Skip to Content
avatar image
Former Member

Shopping Cart or shopping cart template is calling the BADI implemenation

Hi Gurus,

Currently, i have used an implementation of the BADI BBP_DOC_CHECK_BADI and this implementation should trigger for Shopping Cart only. The problem is that it is also being triggered foir the Template. I am planning on setting up a flag in which if the flag is populated, it will skip the codes of the implementation (meaning the Template triggerred the implementation.) Else, it will continue with the logic of the implementation (meaning the SC triggered the implementation).

How can i know if the Shopping Cart or Shopping Cart Template is callign the BADI implementation?

Thanks in advance.

shockadis.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Sep 09, 2010 at 10:27 AM

    Hi

    SY-UCOMM = 'SEL_YOUR_ITEM_SLCT'.

    'SEL_YOUR_ITEM_SLCT' - you may use this field

    muthu

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 09, 2010 at 09:27 AM

    Hi,

    Please go to transaction BBP_PD. You see "Subtype" field for document. You can check the subtype field for template in the BADI.

    Regards,

    Masa

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Masa,

      the BADI implemenation needs to know the subtype before the shopping cart template is processed (while the user is making the template). the problem is, the field GUID wont be generated until the shopping cart template is processed. we will be using the GUID to select thhe subtype from table BBP_PDHGP right?

      thanks for the reply.

      shockadis