‎2010 Sep 30 11:02 PM
I would like to prevent Users from exiting a screen painter application by clicking the X button located on the upper-right corner of the screen. I would like to catch this event and return Users to the program.
Thank you so much for your help and assistance.
Dodie
‎2010 Oct 01 12:18 PM
Hi Dodie,
In the PAI, don't set E as a functional type for CANCEL.
Instead code to catch this event and return Users to the program in the normal PAI module.
Hope it helps
Sujay
‎2010 Oct 01 12:43 PM
you can restrict the user by the buttons exit or canc in the control tool bar but closing of window by the close 'X' option in my opinion is not feasible as this is not controlled from the flow logic of code..
just try to check for some module pool program if you can debug after hitting 'X'button by keeping two session's at hand. With one session tries to log off with a pop up window.
‎2010 Oct 01 12:48 PM
Good luck...the X passes command to Windows, not to your executing SAP program.