Hi BRF+ experts,
We are trying to implement a clean exception handling in the following set-up:
From a function module we call a BRF+ function:
TRY.
...
lr_function->process
...
CATCH cx_fdt into lr_cx_fdt.
...
ENDTRY.
The BRF+ function in turn executes a "procedure call" expression, invoking a static method m, which may raise an exception of type CX_E.
If the method m raises an exception of type CX_E, the system calls the catch block "CATCH cx_fdt into lr_cx_fdt", which is fine. Investigating the exception instance lr_cx_fdt in the debugger, we noticed that
All of the above mentioned points are fine from our point of view.
However, we would like to get hold of the original exception instance (of type CX_E, raised in method m), in order to extract more specific error messages from the exception (e.g. via lr_cx_fdt->previous->previous).
Can this be done, and if "yes", how?
We are using a SAP_BASIS component version 740, level 000.
Thanks in advance, and kind regards,
Valentin Huber