2007 Jun 22 12:07 PM
Hello
i've created a screen and placed some buttons in it using layout editor.The screen is smaller than the standard ones.
for ex:
CALL SCREEN 105 STARTING AT 45 8 ENDING AT 128 28.
My question,is how can i close this window from the X mark in the right upper corner(just like you close any other window, in Windows for example).
What is the code for that X mark in the PAI of the screen?
thanks
2007 Jun 22 12:13 PM
Hi...
You need to call the Gui Status in the PBO of ur model screen 105.
It will generate a X mark to close the screen.
There is no need of any coding.
Regards.
Hello
i've created a screen and placed some buttons in it using layout editor.The screen is smaller than the standard ones.
for ex:
CALL SCREEN 105 STARTING AT 45 8 ENDING AT 128 28.
My question,is how can i close this window from the X mark in the right upper corner(just like you close any other window, in Windows for example).
What is the code for that X mark in the PAI of the screen?
thanks
2007 Jun 22 12:12 PM
Hi,
You just need to create a PAI module with addition AT EXIT-COMMAND and there you can put the code LEAVE PROGRAM or LEAVE SCREEN based on your need.
Create a GUI status and then assign X icon a fcode and ftype 'E'.
Regards,
Sesh
null
2007 Jun 22 12:13 PM
Hi...
You need to call the Gui Status in the PBO of ur model screen 105.
It will generate a X mark to close the screen.
There is no need of any coding.
Regards.
2007 Jun 22 12:13 PM
Hi Seba,
Try the following:
AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'EXIT' OR 'CANC' OR 'BACK'.
LEAVE TO SCREEN 0.
ENDCASE.
Ashven
2007 Jun 22 12:26 PM
Thanks to all of you for the quick answers.
It seems that all of them work
bye
2007 Jun 22 12:21 PM
Hi,
U can use
1) Leave to screen 0 : to go to previous screen.
2) Leave Screen
Regards,
Kiran