cancel
Showing results for 
Search instead for 
Did you mean: 

Warn users before logging them off

bharath_padmanabhan
Participant
0 Kudos
213

Experts,

I have 2 shifts of employees. Morning and Evening shift. Say morning shift is from 7 AM to 2 PM. If the user logs in SAP after his shift hours, I have done an enhancement in user exit SUSR0001(SMOD). This throws a popup to user that he can't login outside his shift hours and will log him off automatically. So far so good. 

Now if the morning shift employee is still in SAP past his shift hours, I have to raise a warning message that in the next 10 minutes he will be logged off asking him to save his work. My first thought is that I can simply write a background job program and achieve this. Later I realized that I can't show a popup to the user from a background job. I can send an email from the program but the chances of user opening the email is very less. 

Has anyone got a requirement like this? Any directions/pointers will be very helpful. 

Thanks

Bharath

View Entire Topic
raymond_giuseppi
Active Contributor

For this kind of message, I call FM TH_POPUP.

bharath_padmanabhan
Participant
0 Kudos

Hi Raymond,

Thank you so much for your reply. TH_POPUP works perfectly. 

Thanks

Bharath

 

bharath_padmanabhan
Participant
0 Kudos
I want to unselect my comment as helpful answer and instead select your comment. Apologies, I don't see that option.