Skip to Content
avatar image
Former Member

Get error message from BADI

Hi Guys,

When we add items to the basket,we have a custom scenario in which user can only add product up to a limit after that if he is adding the products to the cart then there is an error message given in the BADI from the backend. But I am not able to get that message in the Java side. Could you guys please help me in which class or from where I can get that error message.

Thanks & Regards,

Sunil Patidar

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    avatar image
    Former Member
    Dec 20, 2011 at 03:35 PM

    Hi Sunil,

    If I understand your problem properly, you are intending to show an error message on the UI which has been added at the backend in a BADI. You may want to check the following:

    These BADIs will be called internally by function modules So take a java log and check if the function module you are calling has a 'table' or 'export' parameter with the name 'CT_EXTENSIONS' ot 'ET_EXTENSIONS'.

    If yes, then in the corresponding BADI, check if the method where you have written your code to validate the number of products and trigger the message has this parameter in the method signature.

    If no, then you are in a wrong method. Try the other methods of that BADI.

    If yes, your in the right one, check your coding.

    Hope this helps.

    Regards,

    Kris.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Kris,

      Thanks for your reply. And sorry for my late response. I did what you suggested and I figured the FM which is calling the BADI CRM_ISA_BASKET_ITEMS but I am still not able to get the extension data from this BADI. I will explain what I want to achieve.

      Actually we have a custom scenario in which user is provided with balance. When user is in product catalog he is able to add to products to the cart till he has sufficient balance. Once the balance is not sufficient to add products to the card there is an error message added by ABAP guy in the header extension to show the error that "You Don't have enough balance.". I need to get this message. Could you please help me to find out where I can get this message.

      Thanks & Regards,

      Sunil Patidar