2008 May 08 3:32 PM
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
2008 May 08 3:40 PM
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).