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 /n end transaction command in program

Former Member
0 Likes
650

Hi

Is there a way to handle the end transaction command /n (start new transaction XXXX with /nXXXX) in a program?

I tested to use the sy-ucomm (i.e. ok_code), but it gets no value. Instead the program terminates immediately. This is not a good behavior. I need to free resources, terminate sessions and stuff.

Is there at least an event like PAI that I can use for that?

Any help would be much appreciated.

Regards Kilian

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
421

Hi,

AFAIK there is no such way - "/n" ends your program without warning.

Regards, Joerg

2 REPLIES 2
Read only

Former Member
0 Likes
422

Hi,

AFAIK there is no such way - "/n" ends your program without warning.

Regards, Joerg

Read only

marcelo_ramos1
SAP Mentor
SAP Mentor
0 Likes
421

Hi,

I think there is not way to do this.

You can't adapt the programa to use Call transaction ?

Regards.

Marcelo Ramos