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

Doubt on BADI

Former Member
0 Likes
548

Hi All...

If two implementations are done on the same BADI then how system will call these two..!!!

will be there any sequence in calling these two or else what ?

How can I call the BADIs based on some condition

What is the use of the filter in BADI...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
518

See the Webblogs for this,

/people/thomas.weiss/blog/2006/01/24/what-the-new-enhancement-framework-is-for-150-its-basic-structure-and-elements-for-beginners

/people/thomas.weiss/blog/2006/03/15/the-new-enhancement-framework-part-2--what-else-you-need-to-know-before-building-an-enhancement

/people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series

/people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework

CHeers,

TM

Hi All...

If two implementations are done on the same BADI then how system will call these two..!!!

will be there any sequence in calling these two or else what ?

How can I call the BADIs based on some condition

What is the use of the filter in BADI...

3 REPLIES 3
Read only

Former Member
0 Likes
518

Hi,

Case 1:

If a BADI has multiple implementations, the sequence in which the implementations will be processed is not defined.

Case 2:

If you make a business add-in filter-dependent, you can make calls to it depending on certain conditions. You must specify the filter type in the form of a data element. The value table of the domain used by the data element contains the valid values for the implementation.

When the enhancement method is called, a filter value must be passed to the interface

Regs,

Venkat Ramanan N

Message was edited by: Venkat Ramanan Natarajan

Read only

Former Member
0 Likes
519

See the Webblogs for this,

/people/thomas.weiss/blog/2006/01/24/what-the-new-enhancement-framework-is-for-150-its-basic-structure-and-elements-for-beginners

/people/thomas.weiss/blog/2006/03/15/the-new-enhancement-framework-part-2--what-else-you-need-to-know-before-building-an-enhancement

/people/thomas.weiss/blog/2006/04/03/how-to-define-a-new-badi-within-the-enhancement-framework--part-3-of-the-series

/people/thomas.weiss/blog/2006/04/18/how-to-implement-a-badi-and-how-to-use-a-filter--part-4-of-the-series-on-the-new-enhancement-framework

CHeers,

TM

Read only

Former Member
0 Likes
518

Hi,

1) The sequence in which the BAdIs are called cannot be guaranteed.

2) Filters can be used to call the BAdIs based on the requirement.

For example, let us suppose there is a BAdI that displays the currency on the screen. The purpose is the same, but the way the currency is printed is different for different countries( $- for US, Pound for UK etc). So a BAdI with filter value as countries would be appropriate. In such a case the BAdI is called with the filter value as a parameter. SAP determines the correct BAdI implementation based on filter value and executes the code. Here too, the sequence is not guaranteed.

I hope i have answered your question.

Pls award points if helpful.

Regards,

Anand.