‎2008 Aug 23 9:11 AM
hi all,
I have call a sub screen by the call:
CALL SCREEN 100 STARTING AT 25 01.
How can I close this window using the [x] button (closing window button) ?
Best Regards,
‎2008 Aug 23 9:54 AM
it depends on how you designed the screen.
and what kind of PF-STATUS you set.
when you create the screen choose the screen type as Modal Dialog Box
and in the PBO while setting the status , Choose the type as Dialog box,
then give the Function code for Cancel button as CANCEL
now in PAI write this
module USER_COMMAND_0100 input.
if sy-ucomm = 'EXIT'.
leave to screen 0.
endif.
endmodule. " USER_COMMAND_0100 INPUT
‎2008 Aug 23 9:19 AM
use leave screen or leave to screen 0. after call screen.
if you press enter then it will leave current screen
‎2008 Aug 23 9:41 AM
Hi,
Write Code LEAVE TO SCREEN 0 against the Button exit.
Case sy-ucomm.
when 'EXIT'.
Leave to screen 0.
Endcase.
‎2008 Aug 23 9:54 AM
it depends on how you designed the screen.
and what kind of PF-STATUS you set.
when you create the screen choose the screen type as Modal Dialog Box
and in the PBO while setting the status , Choose the type as Dialog box,
then give the Function code for Cancel button as CANCEL
now in PAI write this
module USER_COMMAND_0100 input.
if sy-ucomm = 'EXIT'.
leave to screen 0.
endif.
endmodule. " USER_COMMAND_0100 INPUT
‎2008 Aug 23 10:27 AM
thankyou all,
your helps help me in other things
maybe i'm not that clear with my question
I want to close the window from the stander window close button wich is in the upper-right corrner [X]....
Best Regards,
‎2008 Aug 23 10:32 AM
‎2008 Aug 23 11:40 AM
A subscreen cannot be closed as it cannot have a status of it own.The main screen can only be closed.
‎2008 Aug 24 5:30 AM