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: 

Call screen starting at - mystery

Former Member
0 Kudos

hey

I've got a fairly simple report, consisting of 3 screens:

1000 - selection-screen

100 - main screen

200 - popup - screen, called from 100, using starting at.

Problem is, that when I leave screen 200, screen 100 appears like a popup/modal - screen, while the 'original' screen 100 can be seen in the background.

The code is as follows:

REPORT ZZ_KC_TEST_12.

data:

ok_code like sy-ucomm,

g_saved_ok like sy-ucomm.

parameters:

p_dtfom like sy-datum.

  • Code begin

start-of-selection.

end-of-selection.

call screen 100.

MODULE STATUS_0100 OUTPUT.

SET PF-STATUS 'GS100'.

SET TITLEBAR 'GT100'.

ENDMODULE.

MODULE USER_COMMAND_0100 INPUT.

g_saved_ok = ok_code.

clear: ok_code, sy-ucomm.

case g_saved_ok.

when 'EXIT' or 'BACK' or 'CANCEL'.

set screen 0. " Back to sel.screen

leave screen.

when 'BEM'.

"call screen 0200. " This works OK

call screen 0200 starting at 10 10.

endcase.

ENDMODULE.

MODULE STATUS_0200 OUTPUT.

SET PF-STATUS 'GS200'.

SET TITLEBAR 'GT200'.

ENDMODULE.

MODULE USER_COMMAND_0200 INPUT.

g_saved_ok = ok_code.

clear: ok_code, sy-ucomm.

case g_saved_ok.

when 'OK' or 'CANC'.

set screen 100.

leave screen.

" When returning to 100, it's popup - like too!?

endcase.

ENDMODULE.

Any help greatly welcome

Kenneth

3 REPLIES 3

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

In your PAI of screen 200. Try using this code instead.

SET SCREEN 0.

LEAVE SCREEN.

Regards,

Rich Heilman

0 Kudos

Hello Rich

I've actually got it working. Apart from using your advise, I had to fill 100 in the 'Next Screen' - field for screen 100 - if this was empty, an exit from screen 200 would skip directly back to screen 1000.

Thanx a lot for your help

Kenneth

0 Kudos

Yep...I was going to suggest that you change your next screen parameter as well. While writing one of my first programs, I ran across this problem and I spent about 3 days trying to resolve it. Needless to say, I will never forget how to fix it. Glad I could help.

Regards,

Rich Heilman