08-30-2006 3:02 PM
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
08-30-2006 3: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
08-30-2006 3:05 PM
08-30-2006 3: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
08-30-2006 3: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
08-30-2006 3: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