‎2006 Jul 26 5:33 PM
Hello Friends,
what is an instance in BADI's
Thanks in Advance.
Shejal.
‎2006 Jul 26 5:42 PM
Hi Shejal,
BADIs or Business Add-Ins are enhancement techniques using OO methodology. For a BAdI definition, you can have more than one implementation.ie you can create your own implementation of a BAdI definition.
In that case, each of the implementation is considered as the instance of that BAdI. When you give a custom implementation toa BAdI , what you do is you will check if there are any active implementation for that definition by calling a method <b>GET_INSTANCE</b> of the class <b>CL_EXITHANDLER</b>. The method returns the list of active implementation (instance) for the BAdi and if the return value is INITIAL( there are no active implementation), you can call the methods which would implement the code that you have given.
Hope you got some idea about this.
Award points if found useful.
Regards,
Inder.
‎2006 Jul 26 5:38 PM
The same as an instance in classes (as BADIs are class-based).
It is the existence of the BADI object in the calling/instantiating program's available run-time space.
‎2006 Jul 26 5:40 PM
hi shejal,
check this link..
http://help.sap.com/saphelp_nw2004s/helpdata/en/eb/3e7cf1940e11d295df0000e82de14a/content.htm
‎2006 Jul 26 5:42 PM
Hi Shejal,
BADIs or Business Add-Ins are enhancement techniques using OO methodology. For a BAdI definition, you can have more than one implementation.ie you can create your own implementation of a BAdI definition.
In that case, each of the implementation is considered as the instance of that BAdI. When you give a custom implementation toa BAdI , what you do is you will check if there are any active implementation for that definition by calling a method <b>GET_INSTANCE</b> of the class <b>CL_EXITHANDLER</b>. The method returns the list of active implementation (instance) for the BAdi and if the return value is INITIAL( there are no active implementation), you can call the methods which would implement the code that you have given.
Hope you got some idea about this.
Award points if found useful.
Regards,
Inder.
‎2006 Jul 26 5:44 PM