05-22-2013 10:06 AM
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
05-22-2013 10:40 AM
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
05-22-2013 10:52 AM
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
05-22-2013 10:55 AM
POPUP in background job ?
Popup is a user targeted (GUI) action, by definition not possible in background job.
Please...............
05-22-2013 11:03 AM
Hi,
POPUP in Background job is not possible , since it not connected application server
05-22-2013 11:04 AM
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
05-22-2013 11:09 AM
05-22-2013 11:17 AM
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
05-22-2013 11:23 AM
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.
05-28-2013 5:23 AM