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: 

Pop Message in Background Job

0 Kudos

Hi,

My requirement is display pop message to user for particular time .So i trigger using TH_POPUP in background but its shows dump.

Does anyone know how to send a popup message from a background job?

Regards,

D.P

9 REPLIES 9

Former Member
0 Kudos

Hi,

When a background job is running, it has no connection to a presentation server (SAPGUI).  Where would the popup screen be shown?  On all users screens? Just because you schedule the job, it does not mean that it is your job and it has a link to your SAPGUI, it is simply a job running under your username which could quite easily still be running long after you have logged off the system.

It is better if you want to intimate the user to put a MAIL in SAP Mail Box which will be shown to him as a POP-UP and can be displayed in SWBP.

BR

raymond_giuseppi
Active Contributor
0 Kudos

How did you code call of TH_POPUP, try to use a synatx like

CALL FUNCTION 'TH_POPUP' DESTINATION lv_server
   EXPORTING
     client         = lv_mandt
     user           = lv_bname
     MESSAGE        = lv_msg
   EXCEPTIONS
     user_not_found = 1
     OTHERS         = 2.

Regards,

Raymond

PeterJonker
Active Contributor
0 Kudos

POPUP in background job ?

Popup is a user targeted (GUI) action, by definition not possible in background job.

Please...............

Former Member
0 Kudos

Hi,

POPUP in Background job is not possible , since it not connected application server

ThomasZloch
Active Contributor
0 Kudos

TH_POPUP uses the task handler, it is actually possible to send a (sort of) pop up from a background job this way, if the targeted user is logged on.

Please specify "shows dump" if you expect help, dump title and section "error analysis", most importantly.


Thomas

0 Kudos

I stand corrected. My apologies for my previous reaction.

0 Kudos

No worries, it's more a system message and anyway  a non-released "use at own risk" function module.

Check out TH_CREATE_FOREIGN_MODE and play games with your colleagues

Thomas

former_member420878
Active Participant
0 Kudos

you can achieve the same functionality using workflows.. which is nothing but sending mail to user.

or when user is logged on these mail can be shown as popup to them.

0 Kudos

Thanks for all .Issue is solved