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

How to trigger multiple implementations for the same BADI ?

Former Member
0 Likes
1,639

Hi,

I have done two implementations (SE19) for the same BADI. In Both the implementations with same method and they are activited.

When i am trying calling this BADI interface in a report, it is calling only one implementation.

How does system know which one to execute? How to call both active implementations for the same BADI? If possible plz send me code.

Thanks!

Rajes Yadla

4 REPLIES 4
Read only

Former Member
0 Likes
868

Have you defined filter type for your BADI.

Pls read this:

Filter type:

-


Filter type describes the type of data that is valid as a filter value for a business add-in definition. The system decides which active add-in implementation to execute, based on this filter value.

The filter type is specified in the business add-in definition view (transaction SE18). It must be a data element, of the character type, with a maximum length of 30, which has a search help, a domain with fixed values, or a domain with a value table.

Filter-Dependence with BADI Definitions

-


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.

Read only

Former Member
0 Likes
868

Hi,

If both are active..Both the implementations will be called..

Thanks,

Naren

Read only

Former Member
0 Likes
868

Hi,

Try Filter Dependent implmentaiton, where a particular implementation would be called based on a filter value.

Filter-Dependence with BADI Definitions

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.

Read only

0 Likes
868

In case of Multiple use BAdIs the order in which the Implementations are called is arbitrary.. but all the active impementations will invariably be called.. make sure you have activated both of them..

~Suresh