Application Development 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: 

Problem with \n

Former Member
0 Kudos

As I can control when a user leaves a program with the commando /n or other transaction code?

Thanks.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

I block tables when the program runs and I want to unblock them when the user leaves. As I control when the user leaves the program with /n to unblock the tables?

8 REPLIES 8

Former Member
0 Kudos

Hi,

/n is to terminate the current program and go to the initial screen.

Reward if helpful.

Former Member
0 Kudos

hi,

Use /n.

Former Member
0 Kudos

Hi,

u can try like this if its a module pool prg;

in PAI.

if sy-ucomm = '/n'.

exit.

endif.

Jogdand M B

Former Member
0 Kudos

hi

/n will work.

regards

ravish

<b>reward if useful</b>

Former Member
0 Kudos

Hi,

Dont think its possible to control user's actions when a '/n' is entered, the program will exit processing.

What exactly is the problem you face when the user exits this way?

Sudha

Former Member
0 Kudos

used /n

Former Member
0 Kudos

I block tables when the program runs and I want to unblock them when the user leaves. As I control when the user leaves the program with /n to unblock the tables?

0 Kudos

Hi javier,

1. How are u blocking the tables. If you are blocking them

thru standard FMs or some standard functionality,

<b>2. then /n will cause the session to terminate,

and r/3 will automatically release the Locks of that session.</b>

regards,

amit m.