Application Development 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: 

popup message from background job

Former Member
0 Kudos

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

4 REPLIES 4

former_member181962
Active Contributor
0 Kudos

Hi Yong,

Background jobs cannot raise pop up messages.

Regards,

Ravi

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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