‎2006 Dec 28 2:27 PM
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
‎2006 Dec 28 6:58 PM
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.
‎2006 Dec 28 7:37 PM
Hi,
If both are active..Both the implementations will be called..
Thanks,
Naren
‎2006 Dec 29 9:25 AM
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.
‎2006 Dec 30 4:11 AM
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