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

modal dynpro

alejandro_romero2
Participant
0 Likes
453

Hi gurus i create a report in this report i call a screen "screen 100" and then i call an other screen "200" wich is in modal form.

my problem is that i cant close the screen 200 once it has ben opened

how can i close a modal screen thanks?

Hi gurus i create a report in this report i call a screen "screen 100" and then i call an other screen "200" wich is in modal form.

my problem is that i cant close the screen 200 once it has ben opened

how can i close a modal screen thanks?

1 REPLY 1
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
388

The screen 200 is just like any other screen in that it needs to have its own gui status. Create a gui status for this screen, and make sure to choose "Dialog Box" when creating it. Then assign Fcodes to the green check icon, and the cancel icon. Then handle these fcodes in your PAI of that screen.

case ok_code.
  when 'CONTINUE'.
     clear ok_code.
* Do something
    set screen 0.
    leave screen.
  when 'CANCEL'.
    clear ok_code.
    set screen 0.
    leave screen.
endcase.

Regards,

Rich Heilman