2009 Mar 17 9:24 AM
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?
2009 Mar 17 6:28 PM
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
2009 Mar 17 6:28 PM
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
2009 Mar 18 5:03 AM
Thank you Marcin
Your magic worked. its just that we need to have next screen 0 also along with other instructions.