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

calling a BADI into Another Badi

Hi all,

i have a requirement that i have to call a badi in to another badi. can u pls provide some sample code about how to use.

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Aug 30, 2006 at 02:05 PM

    >>requirement that i have to call a badi in to another badi?

    As far as I know, once you create an implementation in SE19 & activate it, the code gets triggered wherever the BAdI is placed by SAP.. I don't think there is any need for an epxlicit call.

    ~Suresh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 30, 2006 at 02:05 PM

    hi Ajay,

    Check out these threads,

    calling-a-badi-from-another-badi

    Regards,

    Santosh

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 30, 2006 at 02:07 PM

    Hello Ajay

    Assuming the "outer" call of the implemented BAdI happened while executing a SAP standard transaction for which the BAdI has been implemented and activated.

    If you want to call another BAdI implementation ("inner") from within the current BAdI implementation [whether this makes sense or not is another point] you have to create an instance of this BAdI and then you can call its methods.

    Regards

    Uwe

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 30, 2006 at 02:07 PM

    Techincally, a badi is just another interface. you need to implement and call its methods after you create an object for a class that implements it.

    call method <object>-><method>

    exporting

    .

    .

    .

    importing

    .

    .

    BUt calling a badi in another badi makes no sense.

    Regards,

    ravi

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 30, 2006 at 02:14 PM

    Can you confirm if its a BADI in BADI or a class method in a BADI. I dont think you can do coz the BADI calls are standard code.

    hith

    Sunil Achyut

    Add a comment
    10|10000 characters needed characters exceeded

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.