BADI methods behaves differently in my custom implematation!
We have a BADI in FI - SCM of 'APAR_EBPP_GET_DATA', it has a default implementation by SAP (but, this is not showing up in SE19 or SE18 ! ). Its 'Multiple use' check box is UNchecked. It has 6 STATIC methods, among them, GET_DATA and BEFORE_OUTPUT are 2 methods. I am interested in BEFORE_UPDATE method
Now i tested my scenario, BEFORE_OUTPUT method got triggered from default implementation, fine.
I have implemented this BADI (system allowed). Now, again i tested my scenario (with the same test data same system), but now the GET_DATA is triggering(i am not interested in this), BEFORE_OUTPUT is NOT triggering at all! And i noticed my implemetation over ride the SAP's default implementation. Pls. let me know
1) Why BEFORE_OUTPUT is not triggering in my custom implementation, which is triggering in SAP's default implementation?
(with GET_DATA method is either way)
2) If i implement a BADI, its not guarantee that all methods will be triggered, bcz when i put break point in BEFORE_OUTPUT in my custom implementation, its not stoping at all?
Krishnendu Laha replied
if you are implementing a BADI, it should trigger all the methods.
I would suggest to trace the issue:
1. Check if it is a BADI / enhancement spot (because for this you can not have implementation -> display option)
2. if it is a BADI, use where used list of interface to go to the wrapper class, which call all the implementation and debug.
without 'multiple use' checked, one BADI can have multiple implementation but one is active at a time.