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

Filter dependent BAdi

Former Member
0 Likes
8,640

Hi Experts,

Can anyone brief me on Filter dependent BAdi and what is the use of these type of BAdi.

Thanks & Regards

Manas Nayak

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,524
8 REPLIES 8
Read only

Former Member
0 Likes
3,525
Read only

Former Member
0 Likes
3,524

hi,

Refer to this link....

Read only

Former Member
0 Likes
3,524

If you have SAP system spanning across different countries then you may use filter dependent BAdIs to implement the BAdI for a particular geography only.

Read only

Former Member
0 Likes
3,524

Hi Manas,

Filter dependence for BADI definitions means that each interface method automatically has an importing parameter FLT_VAL assigned ot it. This parameter must be filled with a filter value as current parameter when it is called.

A BADI definition should be marked as filter-dependent whenever the characteristic of the BADI implementation should match the characteristics of the filter type - that is, whenever the implementation of different filter values should be different or should only exist at all for certain filter values.

Typical filter types are line of industry or country.

The BADI is filter dependent. In the first tab of your BADI implementation (SE19), the lower half will contain filter details.

STEPS FOR SETTING UP A FILTER

just go to se18 and give ur BADI name..

then Select 'Attributes' Tab ,there u will find option Filter-Dependent in window named "type"..

check tht filter dependent checkbox and give ur data element/field in the Filter type field say u can give 'MOLGA' ..save and come back..

now go to se19 and implement this BADi and there u can give filter values for filed MOLGA..

Hope this will help.

Regards,

Nitin.

Read only

0 Likes
3,524

Thanks to all for the reply.

Can not we achieve the same with Case statement or IF ELSE statement with a single implementation?

Kindly let me know the advantage of using this.

Thanks & Regards

Manas

Read only

Former Member
0 Likes
3,524

Thank you...

Read only

former_member210857
Participant
0 Likes
3,524

Hi Manas,

When we check the attributes tab in BADi definition in se18. we can find  an option Filter Dependent,

where we can give the data element (For Eg :When we are using SAP in more than one country and we need to validate inside the code using the company code ).

Then we will get a field FLT_VAL in all methods in of the badi implementation.

Read only

nishantbansal91
Active Contributor
0 Likes
3,524

Hi Manas,

Filter depended BADI is same as the Function Module with the Importing Parameter. But in this the Importing parameter value is constant in the BADI importing Parameter.

This Type of BADI is useful when we have same name method to define and we can call this method based on the OBJECT type.

Regards,

Nishant Bansal