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: 

Standard 'X' in a modal dialog box not working

0 Kudos
1,133

Hi,

I have created a module pool and calling screen from main screen using Call screen.... Starting... ending... statement.

It is a modal dialog box screen. As a standard a [X] appears on top right corner. But when I click it doesn't work. it does not even fire PBO. How can I make it work?

1 ACCEPTED SOLUTION

MarcinPciak
Active Contributor
0 Kudos
177

Hi,

Set next screen as 0, not the screen itself. Then you are able to close it this way.

Regards

Marcin

I was wrong, this will only close the modal box each time after the dialog step is completed. To activate this magic 'X' (allow closing the window with ALT+F4) in PBO set status (type dialog box ) and activate CANCEL and CONTINUE buttons. Now when you try closing the window either by CANCEL button or using X, sy-ucomm (ok_code of the screen) will store CANCEL function code. This way you can simply say LEAVE SCREEN . That works fine, I checked.

Regards

Marcin

Edited by: Marcin Pciak on Mar 17, 2009 11:16 PM

2 REPLIES 2

MarcinPciak
Active Contributor
0 Kudos
178

Hi,

Set next screen as 0, not the screen itself. Then you are able to close it this way.

Regards

Marcin

I was wrong, this will only close the modal box each time after the dialog step is completed. To activate this magic 'X' (allow closing the window with ALT+F4) in PBO set status (type dialog box ) and activate CANCEL and CONTINUE buttons. Now when you try closing the window either by CANCEL button or using X, sy-ucomm (ok_code of the screen) will store CANCEL function code. This way you can simply say LEAVE SCREEN . That works fine, I checked.

Regards

Marcin

Edited by: Marcin Pciak on Mar 17, 2009 11:16 PM

0 Kudos
177

Thank you Marcin

Your magic worked. its just that we need to have next screen 0 also along with other instructions.