Skip to Content
0
Nov 26, 2008 at 02:16 AM

catch exception when interface method is not implemented

1747 Views

I have some interesting scenarios:

There is already a classic BADI and now a new method is to be added to the interface.

For the implementation class, they, for sure, don't implement the new method, however no syntax errors occur.Yet when runtime error 'CALL_METHOD_NOT_IMPLEMENTED' is raised when the new method is called via a variable of the interface.

CATCH SYSTEM-EXCEPTIONS CALL_METHOD_NOT_IMPLEMENTED = 4.

CALL METHOD g_badi->test.

* do nothing as customer don't necessarily implement the inteface

ENDCATCH.

Even I have try catch statement blocks surrounding the method call, the exception is still raised.

How can I handle it to catch the exception to avoid any short dumps?