‎2008 Jun 22 10:37 AM
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....
‎2008 Jun 22 11:01 AM
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.
‎2008 Jun 22 11:15 AM
in PAI of 1001 screen write:
case ok_code.
when 'BACK'.
clear ok_code.
set screen 00.
leave screen.
endcase.