03-08-2007 2:05 PM
Hi, abap experts,
I have written a programm, which will end the user sessions for those, who are using one special transaction code. Before that the programm will send a popup message to these users (with function TH_POPUP). It works fine.
Now this programm should be executed as a background job. And it is aborted every time, because of the TH_POPUP function.
Does anyone know how to send a popup message from a background job?
best regards
Yong
03-08-2007 2:08 PM
Hi Yong,
Background jobs cannot raise pop up messages.
Regards,
Ravi
03-08-2007 2:11 PM
Take a look at function module 'SO_EXPRESS_FLAG_SET'. It does send a popup to a user, group of users, from a background process. It might not meet your needs exactly but the code behind it might help you meet your needs.
Regards,
Everett
03-08-2007 2:33 PM
Hi,
The pop up can not be avoided in the background job and the jobs would fail . If the background job is being run by just a single user then write a code not to display the Pop up only for that particular user.
Regards,
Sowmya.
03-12-2007 12:10 PM
Hi Cheng,
You could edit your program, before the pop-up message, check if SY-BATCH equal 'X', if yes, your program is running background, and then, you could send the message using even the WRITE command (the message will be show in spool) or other way you prefer (maybe creating a tab for log?)...
If not equal 'X', then show the pop-up normally.
Hope it helped!
Macedo