Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Prevent Users from exiting application using the X button

Former Member
0 Likes
491

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

3 REPLIES 3
Read only

Former Member
0 Likes
446

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

Read only

Former Member
0 Likes
446

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.

Read only

Former Member
0 Likes
446

Good luck...the X passes command to Windows, not to your executing SAP program.