2005 Sep 08 4:17 AM
hey
i have report MAIN program ZDOWNLOAD.
From this program i called screen 100.
from SCREEN 100 I called SCREEN 9201 inside the loop.
In 9201 screen I have back,exit cancel buttons which is of TYPE E.
When i click back or exit button..it should come back to
first screen(main program) or it should exit.
how to do this..
I wrote code like this
CASE 'BACK'.
SET SCREEN 0.
LEAVE SCREEN.
However it says error here..indicating
that you are not called using CALL SELECTION-SCREEN.
why it is?
btw, ofcourse i have parameter screen in Main program.
could you pls reply.
ambichan
2005 Sep 08 4:32 AM
hello,
try this
case okcode.
when 'BACK'.
leave program.
endcase.
2005 Sep 08 4:36 AM
2005 Sep 08 4:44 AM
Hi Ambi chan,
If you want to go back to the selection screen, you shd use call selection-screen.
If you want to exit from the program completely, then use leave program.
Remember 2 reward points if this post has answered ur Q.
Rgds,
Prash.
2005 Sep 08 5:04 AM
hi, I have try something, and it looks fine. like following:
in PAI of 100
leave to screen 9201.
in PAI of 9201
if you want to back
set screen 0100.
leave screen.
if you want to exit whole application
leave to screen 0.
Hope it will be helpful
thanks
2005 Sep 08 7:13 AM
Hi ambi,
to turn back to selection-screen use
CASE ok_code.
WHEN 'BACK' OR '%EX' OR 'RW' OR 'EXIT'.
CALL METHOD grid->free.
SET SCREEN 0.
...
Andreas