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

Regarding the screen problem in 'back' command

Former Member
0 Likes
672

Hi Experts,

I am doing project on data scrambling an using the ldb PNP . currently i am facing one problem regarding the' BACK'.

i am calling one screen program in main program. when i am clicking on back button from screen program ,the control flow back to the main program and the rest of the lines of the main program gets executed.

i want the control must go back to the default selection screen.

i have tried using leave to screen 0,leave program and exit.But these command are not working as per the requirement.

thanks in advance.

5 REPLIES 5
Read only

Former Member
0 Likes
642

You should use a variable that you check after "call screen" (initialized in called screen) and then you can maybe use:

- STOP.

- or LEAVE LIST-PROCESSING.

Read only

Former Member
0 Likes
642

Hi

Try This

When 'BACK'.

CALL SELECTION-SCREEN 1000.

Regards

Ajit

Read only

0 Likes
642

thanks a lots sir

my problem is solved.

Read only

Former Member
0 Likes
642

Hai,

Please check the fct code for BACK button. if the fctcode is exist then use the following code.

if sy-ucomm = 'BACK'. " USE CAPITAL LETTERS ONLY

{

LEAVE TO SCREEN 0.

}

Read only

sivaprasad_ml
Participant
0 Likes
642

Just a random question. Do you haev statements in the PBO of SCREEN 0 ?. If so i guess those statemnets would get executed during the screen set.

Rgds

Siva