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

SLECTION SCREEN NAVIGATION

Former Member
0 Likes
371

Hi all,

In my Report program, im using a selection screen(1000) and in that screen i have three radio buttons. When user selects the second radio button, it will take to a dynamic screen(1001) with a table control. If user selects 'BACK' it will return to the selection.

The problem is now after coming back to the selection screen from screen 1001, if user selects the back button present in the selection screen, it is again taking to screen 1001 instead of leaving the program.

How to resolve this? where to insert code? what to insert?

pls revert experts....

2 REPLIES 2
Read only

Pramanan
Active Participant
0 Likes
351

Hi,

Under the ok_code case of screen 1001under back just add leave to screen 1000.

Your code for screen 1001 may look like this

if you want to move to screen 1000 from 1001. then code like this

Case ok_code.

When 'BACK'.

Leave to screen 1000.

endcase.

if you want to move from selection screen to program. then code like this.

case ok_code.

when 'BACK'.

leave program.

endcase.

If you use leave program simply it returns to code.Instead you use leave to screen <screen number>.

The other way is

Leave Screen.

set screen 1000.

the leave screen get back the control and set it with screen 1000.

Read only

Former Member
0 Likes
351

in PAI of 1001 screen write:



case ok_code.

when 'BACK'.

clear ok_code.

set screen 00.

leave screen.

endcase.