Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

handle break function module custom

Former Member
0 Likes
697

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

2 REPLIES 2
Read only

FredericGirod
Active Contributor
0 Likes
646

you want to catch a /n or /nend ?

Read only

former_member610590
Participant
646

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.