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

badi not getting called

Former Member
0 Likes
439

Hi ,

the scenario is like there is a BADI definition which uses a interface eg INT now there are 3 implementations of this BADI say IMP! 2 and 3 ,also there is a class C1 which implements the same interface which is used in this BADI definition....

now in the program the coding of the class is getting called and not any BADI implementation ...meanining the code written in the class is getting executed but not any BADI implementation .

is it like if there is a class which implements a interface it is given preference and not BADI

Hi ,

the scenario is like there is a BADI definition which uses a interface eg INT now there are 3 implementations of this BADI say IMP! 2 and 3 ,also there is a class C1 which implements the same interface which is used in this BADI definition....

now in the program the coding of the class is getting called and not any BADI implementation ...meanining the code written in the class is getting executed but not any BADI implementation .

is it like if there is a class which implements a interface it is given preference and not BADI

1 REPLY 1
Read only

Sm1tje
Active Contributor
0 Likes
373

I'm not quite sure If I understand correctly, but here is something you should know about methods from badi implementation.

These methods are called automatically (if activated) by the runtime system when using the transaction (for example) these implementations are created for in the first place. If you create a class and implement the interface, it does not mean that these interface methods are called automatically.

Even worse, if this class just uses the same interface, it will not be very usefull, because the will only 'work' properly in the correct context (transaction for example).