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

call screens

Former Member
0 Likes
946

Hi Experts,

Good Day.

How can I call several screens from a screen? The later screens will contain fields for data insertion in table.

Hope that i will get help from you.

Thanks

Sohel

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
917

Hi Moshiur,

Please search on SCN before asking basic questions.

Regards

Abhii

Hi Experts,

Good Day.

How can I call several screens from a screen? The later screens will contain fields for data insertion in table.

Hope that i will get help from you.

Thanks

Sohel

7 REPLIES 7
Read only

Former Member
0 Likes
917

HI,

simply by using the CALL SCREEN <screen_no>.

For example if you are on Scr 0100 which has a push button and when you press this button you need to call a different screen then you use Call screen 0200.

after completion of the exercise in screen 200 the control will to screen 0100 again from there you can continue with the processing in screen 0100.

hope it helps you,

regards,

Abhijit G. Borkar

Read only

0 Likes
917

Dear Abhijit,

Thanks.

my code is as like bellow:

call screen 100.

CASE OK_CODE.

WHEN 'BACK' .

LEAVE PROGRAM.

WHEN '1000'.

CALL SCREEN 200.

WHEN '2000'.

CALL SCREEN 300.

WHEN '3000'.

CALL SCREEN 400.

ENDCASE.

In 'SCREEN 100' i have to give the value from VBAK-VKORG.

Suppose the values VBAK-VKORG are : 1000/2000/3000.

Based on these values one screen will appear.

Please tell me the code & procedure in brief how this can be done.

Regards

sohel

Read only

0 Likes
917

Hi,

In that case your code will work with one change.

Say VBAK-VKORG is the screen element for that input field.

CASE OK_CODE.
  WHEN 'BACK' .
   LEAVE PROGRAM.
  WHEN 'OTHERS'.
   CASE 'VBAK_VKORG'. 
    WHEN '1000'.
    CALL SCREEN 200.

    WHEN '2000'.
    CALL SCREEN 300.

    WHEN '3000'.
    CALL SCREEN 400.
   ENDCASE.
ENDCASE.

Thanks,

Naveen Inuganti.

Read only

0 Likes
917

Dear Naveen Inuganti,

Thanks.

when I am putting the value 1000/2000/3000 in SCREEN 100 and pressing the OK button, it takes me to the main program.

can you give me more detail solution.

Regards

sohel

Read only

0 Likes
917

Hi Sohel,

Small change in Naveens code:


CASE OK_CODE.
  WHEN 'BACK' .
   LEAVE PROGRAM.
  WHEN OTHERS.   " Remove quotations here
   CASE 'VBAK_VKORG'. 
    WHEN '1000'.
    CALL SCREEN 200.
 
    WHEN '2000'.
    CALL SCREEN 300.
 
    WHEN '3000'.
    CALL SCREEN 400.
   ENDCASE.
ENDCASE.

Check if this makes any difference. Even if ti is not working, keep a brea-point and check whetehr control is coming to when case or not.

Regards,

Swarna Munukoti

Read only

Former Member
0 Likes
918

Hi Moshiur,

Please search on SCN before asking basic questions.

Regards

Abhii