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

LEAVE SCREEN

Former Member
0 Likes
960

Hi,

i execute a program, and it displays the alv output, and if i double click on the details, it takes to another transaction of user exit, in the user exit, i need to perform some check, and if there is error message and then it should get back to the alv output screen again. I tried all "LEAVE SCREEN", LEAVE TO SCREEN 0. Nothing is working. Anyone can suggest to solve this.

Regards

anbu.

1 ACCEPTED SOLUTION
Read only

bbalci
Contributor
0 Likes
900

You have called another transaction and that user-exit is in that program.

Than LEAVE SCREEN does not work or returns to main screen of called transaction.

You should use LEAVE PROGRAM. statement.

I hope it helps.

Hi,

i execute a program, and it displays the alv output, and if i double click on the details, it takes to another transaction of user exit, in the user exit, i need to perform some check, and if there is error message and then it should get back to the alv output screen again. I tried all "LEAVE SCREEN", LEAVE TO SCREEN 0. Nothing is working. Anyone can suggest to solve this.

Regards

anbu.

7 REPLIES 7
Read only

Former Member
0 Likes
900

Try with:


SET SCREEN 0

Read only

0 Likes
900

Can you give another # for Screen?

As per my information, Screen cannot be of # '0'. It has to be certain value.

Harish

Read only

0 Likes
900

hello friend...

please, read documentation about what does mean:


set screen 0.

Read only

bbalci
Contributor
0 Likes
901

You have called another transaction and that user-exit is in that program.

Than LEAVE SCREEN does not work or returns to main screen of called transaction.

You should use LEAVE PROGRAM. statement.

I hope it helps.

Read only

Former Member
0 Likes
900

This message was moderated.

Read only

Former Member
0 Likes
900

try with:


set screen 0.

Read only

Former Member
0 Likes
900

Hi all,

Problem solved. set screen 0 will not work. Since it is a user exit, therefore we cannot have the exact dynpro number.

Also i got Ecc 6.0 version, therefore I used the below code.

MESSAGE s031(zc) DISPLAY LIKE 'E'.

LEAVE TO SCREEN 0.

-Anbu.