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

Problem with \n

Former Member
0 Likes
848

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

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
812

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
Read only

Former Member
0 Likes
812

Hi,

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

Reward if helpful.

Read only

Former Member
0 Likes
812

hi,

Use /n.

Read only

Former Member
0 Likes
812

Hi,

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

in PAI.

if sy-ucomm = '/n'.

exit.

endif.

Jogdand M B

Read only

Former Member
0 Likes
812

hi

/n will work.

regards

ravish

<b>reward if useful</b>

Read only

Former Member
0 Likes
812

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

Read only

Former Member
0 Likes
812

used /n

Read only

Former Member
0 Likes
813

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?

Read only

0 Likes
812

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.