Skip to Content
0
Aug 26, 2023 at 10:12 AM

Create Custom BADI and not implement all methods

171 Views

Hi Guys,

I'm trying to create some custom BADI for our custom reports. Therefor I created BADI definition and interface with three methods in it. Now when I do an implementation of BADI and do NOT implement all interface methods, SE19 throws error that I have to implement all methods. How can I change this? Not every customer has to implement all methods of the BADI.

I saw this flag default IGNORE or default FAIL, but it looks like that it has no impact on the error if I set it to FAIL. Only setting it to IGNORE lets the message disappear. My problem is in the custom report I have some coding where the BADI is implemented. Now if I do an empty method in the BADI implementation it looks like that method is implemented an customer wants to use this BADI method, so I need a criteria to find out if a BADI method is used or not. How can I do that? Of course I could give a EXPORTING parameter lets say ED_IMPLEMENTED which I set to true or false, but does not sound that smart.

Regards
Michael