2008 Jan 30 8:14 AM
Hi!
I'm calling a modal dialog window, like this:
CALL SCREEN 2100 STARTING AT 1 1 ENDING AT 80 15.
It has a status, and am am able to close the window, using one button from the status.
But the window is not closing, when I click on the 'X' in the right-top corner (standard windows close button).
What shall I do to close the window with this icon?
Thank you
Tamá
2008 Jan 30 8:21 AM
Tamas,
enter /h (breake point) and catch the function code(sy-ucomm).
Then IN PAI .
Module screen_cancel.
In rthis module write code
CASE sy-ucomm.
when 'your function code'.
leave screen to 0.
ENDCASE.
Don't forget to reward if useful....
2008 Jan 30 8:20 AM
Hi,
Do like this in PAI
WHEN 'EXIT'.
LEAVE PROGRAM.
Regards,
Satish
2008 Jan 30 8:21 AM
Tamas,
enter /h (breake point) and catch the function code(sy-ucomm).
Then IN PAI .
Module screen_cancel.
In rthis module write code
CASE sy-ucomm.
when 'your function code'.
leave screen to 0.
ENDCASE.
Don't forget to reward if useful....
2008 Jan 30 8:25 AM
It's not calling the PAI, when I click on it, so no user command checking is available.
Any other options?
2008 Jan 30 8:30 AM
Hi,
Enable the EXIT button in PF-STATUS.
Check this program also
DEMO_DYNPRO_AT_EXIT_COMMAND
Regards,
Satish
2008 Jan 30 8:34 AM
I wonder why was it needed, it is not appearing on a modal dialog window... Anyways it is working now, thanx for the solution.
2008 Jan 30 8:30 AM
Tams,
Set the PF-STATUS IN PBO of that screen and add cancel button.
Then write the code as given earlier.
Don't forget to reward if useful...