Application Development 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: 

Query On BADI

former_member200116
Active Participant
0 Kudos
112

Hi helpers,

I am beginner in this area and have few queries which are not cleared after searching the existing posts.

  • This is with reference to Available SAP BADI.

1. What is the exact use of the Adapter Class in BADI ?

2. All the implementation for the BADI's are called by the program. Then how can I call the specific implementations for the same BADI as I do not want to call all the implementations . Is FILTER technique relevant here ?

Thanks in Advance

Regards

Shashank

1 REPLY 1

Former Member
0 Kudos
60

Adapter class :When we creates an interface for this Add-in enhancement management generates an adapter class for implementing the interface

When you implement An interface with 'IF_EX_' inserted between the first and second characters of the BAdI name and

An adapter class with 'CL_EX_' inserted between the first and second characters of the BAdI name.

Filter : Yes filter is used at this scenario The advantage of filter is Business Add-ins may be implemented depending on a specific filter value (example, country-specific versions: Distinct implementations of the BADI can be created for each country). A filter type must be entered when defining your enhancement (a country or industry sector, for example). All methods created in the enhancement's interface have filter value ' FLT_VAL' as their import parameter. The method then selects the active implementation based on the data provided in the filter value.

For more details please check the below link.

[http://wiki.sdn.sap.com/wiki/display/ABAP/DocumentonBADI]