Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BADI

Former Member
0 Likes
579

Hello Friends,

what is an instance in BADI's

Thanks in Advance.

Shejal.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
552

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.

4 REPLIES 4
Read only

Former Member
0 Likes
552

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.

Read only

Former Member
Read only

Former Member
0 Likes
553

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.

Read only

0 Likes
552

Thanks everybody for the answers.

Shejal.