Application Development 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: 

regarding leave screen.

Former Member
0 Kudos
78

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

5 REPLIES 5

Former Member
0 Kudos
58

hello,

try this

case okcode.

when 'BACK'.

leave program.

endcase.

Bema
Active Participant
0 Kudos
58

To return to the main program

CALL SELECTION-SCREEN 1000.

Former Member
0 Kudos
58

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.

Former Member
0 Kudos
58

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

andreas_mann3
Active Contributor
0 Kudos
58

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