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: 

BADI Implementation

Former Member
0 Kudos

Hi ,

When the BADI has multiple implementations which implementation is going to execute first in the runtime and on what basis it is decided which implementation to execute ?

Thanks,

anjani

5 REPLIES 5

Former Member
0 Kudos

HI anjani,

1. Only ONE implementation (se19)

can be active at a time.

regards,

amit m.

suresh_datti
Active Contributor
0 Kudos

Hi,

not sure of the sequence.. but if there are multiple implementations, all of them will be triggered.. the code inside each implementation will be the basis for the decision on execution..

regards,

Suresh Datti

0 Kudos

HI,

I do not agree with Amit.. If a BAdI definition is set for Mutiple Use, there can be any number of implementations.. that is the very basic advantage of BAdIs over the conventional User exits.. to quote SAP.."Multiple use for BADI definitions means that there can be several active BADI implementations. When there is a call, they are all called up - however, in an unpredictable sequence.If you have multiple-use BADI definitions, the sequence must not play any role therefore. A typical example is the execution of checks before a save."

Regards,

Suresh Datti

Former Member
0 Kudos

IT depends on the property of the BADI you are implementing.

Goto SE18, display your BADI...

in the tab "Attributes", in the group "Type" there is check box called "Multiple Use" if it is not selected, that means the BADI can have only one active implementation. so there is no problem in sequence.

However, if this is selected , there can be multiple active implementations. However, there is no guarantee on the sequence in whcih those are called. See below what SAP help says on this....

<i>Multiple Usability for BADI Definitions

Multiple use for BADI definitions means that there can be several

active BADI implementations. When there is a call, they are all called

up - however, in an unpredictable sequence.

If you have multiple-use BADI definitions, the sequence must not play

any role therefore. A typical example is the execution of checks before

a save.</i>

Former Member
0 Kudos

Se19>Implementation name>

utilities>adjustments>multile implementations

Thanks

Eswar