2007 Jul 18 4:24 PM
Hi,all
I've found a problem arising from this sentence "call SELECTION-SCREEN 1001 STARTING AT 10 10",in the main screen. (here the type of screen 1001 is 'Modal Dialog Box')
The 'close' button on the right-top correr of the screen has no effect to close the
screen 1001,so how can I catch the event of click on that button?
Thanks
2007 Jul 18 4:42 PM
you need to write the code as below
case sy-ucomm.
when 'EXIT'.
leave to screen 0. " always use screen 0 for modal dialog box.
when "BACK'
leave to screen 0
WHEN 'CANC'.
leave to screen 0
endcase.
Please activate buttons in Menu Painter.
Thanks
Seshu
2007 Jul 18 4:42 PM
you need to write the code as below
case sy-ucomm.
when 'EXIT'.
leave to screen 0. " always use screen 0 for modal dialog box.
when "BACK'
leave to screen 0
WHEN 'CANC'.
leave to screen 0
endcase.
Please activate buttons in Menu Painter.
Thanks
Seshu
2007 Jul 18 4:47 PM
Hi,Seshu,
Thanks your reply. I've already written my pai for this selection-screen,but the
click on the 'X' on the right-top corner does not ignite the event and the programe will not go to PAI part.
2007 Jul 18 5:02 PM
When you use screen type modal dialog box,you need to activate pf-status.
if so keep the break point at call screen ,then do the debugging.
when you click on X ,then it should come to main screen,here you need to use leave to screen 0.
check it in debugging.
Thanks
Seshu
2007 Jul 19 1:39 AM