Skip to Content

BBP_ALERTING Badi is not triggering when we execute BBP_CONTRACT_CHECK in order to Add receipients

Hi Experts,

We have implemented BADI BBP_ALERTING for adding recipients, but it is not triggering when we execute the standard report BBP_CONTRACT_CHECK.

Please share your ideas if any to trigger this BADI.

Regards,

Mohammed

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Jul 24, 2013 at 02:08 PM

    hello rafi

    First step is to debug the badi and see if it calls the badi

    or which badi is getting called

    try putting an external breakpoint at class

    CL_EXITHANDLER

    GET_INSTANCE method, check the exit name

    is it calling another BADI

    you will be able to check

    If it's your Badi just continue in debug mode.

    You have of course to ensure that your Badi is actually active -- however if it's not working properly or doesn't get started the exit handler should return the error reason.

    If you want also you can actually test your Badi in stand alone mode via an ABAP.

    Depending on the nature of what your Badi it will help you see whether you have any major errors in your Badi.

    Do the following

    Code a program similar to the one below.

    test call Badi from standard abap.

    • 1) define the Badi (SE18). For Abap call test uncheck multiple use
    • and filter boxes

    • 2) Implement the badi (SE19). Add any methods here in the implemntation

    • 3) activate

    *

    • 4) define the standard class exithandler to the abap. This class is the "Badi caller

    "

    • 5) define an exit variable referring to your Badi Implementation interface
    • this interface will normally be something like ZIF_EX***************
    • You will see this in SE18/SE19.

    *

    • 6) Instantiate your instance of the badi (method call get_instance)

    • 7) Now call any method(s) in the Badi.
    Add comment
    10|10000 characters needed characters exceeded

    • Former Member solen dogan

      Hi,

      Did you make sure that your implementation is active.? (both active in IMG and active in implementation?

      also open your implementation and check the run time behavior if it is active and will be called.

      Regards,

      Karthik Babu

  • avatar image
    Former Member
    Jul 26, 2013 at 02:59 PM

    Hi,

    The BAdi method 'BBP_EVENTS_DET_RECIPIENTS' gets called in method 'EXECUTE class 'CL_BBP_ACTION_NOTIFICATION'.

    You can put your break point here , to check if the BAdI is called or not.

    Before you execute the program BBP_CONTRACT_CHECK.. Pls. check all the necessary configuration related to Contract Events for which you are expecting the alert and also the contract should have reached that limit so that the events are triggered.

    Regards.

    Add comment
    10|10000 characters needed characters exceeded