‎2020 Oct 19 11:49 AM
how can I make lines of code run when the FM when the transaction execution is aborted, or other cases of interruptions?
basically when the execution is interrupted I want to handle when this happens
‎2020 Oct 19 11:55 AM
‎2020 Oct 19 12:04 PM
The only general way to solve the issue: is to run function in queue or in another process and check from the current what is going on. It can be done:
1) ABAP channels
2) Queues (you can put function in queue)
3) dynamical job plan (and put there function)
So it is bullet-proof approach from any dump or error during function.
also (which is more reasonable) you can check the specific exceptional cases and raise exception and catch it.