EXCP_HANDLER_FAILED_TO_UNWIND is an ABAP runtime error which you may come across when using or developing within an SAP system. See below for the standard details explaining what it means and how you can avoid or fix this runtime error.
Short Dump Classification: A - ABAP Programming Error
You can view further information about a runtme error by using transaction code ST22 which will show you this and all runtime erros that have happen in your SAP system.
Also check out the Comments section below to view or add related contributions and example screen shots.
Please see abap error for more details about the possible cause of this runtime error and how it could be avoided.
Illegal termination of a CATCH BEFORE UNWIND exception handler.
Please see abap error for more details about the possible cause of this runtime error and how it could be avoided.
While processing a CATCH BEFORE UNWIND exception handler, the system
called a procedure in which a statement (such as MESSAGE or LEAVE
PROGRAM) was executed that caused the exception handler to terminate.
This is not allowed. Statements of this type must be contained directly
in a CATCH BEFORE UNWIND handler.
If a CATCH BEFORE UNWIND handler terminates, the system executes all CLEANUP blocks between the exception trigger and the handler while cleaning up the stack. Statements such as LEAVE PROGRAM lead to a direct stack cleanup without executing CLEANUP blocks. These last two sentences contradict each other if the statement is executed while a CATCH BEFORE UNWIND handler is executed. To avoid this critical situation, processing was terminated.
If such a statement is contained directly in a CATCH BEFORE UNWIND
handler, it is statically recognizable that the handler terminates.
This makes the processing behaviour of such a statement visible in
statical terms. First, the handler is terminated (and possibly
the CLEANUP blocks are processed), then the actual statement is
processed (stack cleanup without executing CLEANUP blocks).
Please see abap error for more details about the possible cause of this runtime error and how it could be avoided.