02-04-2009 3:00 PM
Hi,
I have a requirement to send a POPUP message based on the list of users I get thru a program. I have used FM TH_POPUP to do this, this works well in the fore ground however, the behaviour of this FM is erratic in the background . I.e. it works fine once and fails for the next time in the background, though correct values are being passed. I have debugged in the background but could not notice any difference.
Can anyone suggest me similar FMs or Objects to achieve the same. I.e.a POPUP based on user criteria.
Thanks,
Amber
02-04-2009 3:31 PM
TH_POPUP can only send a message when the recipient is logged on. Maybe that was the sporadic problem you encountered?
Thomas
02-04-2009 3:12 PM
You may need to use fm 'SM02_ADD_MESSAGE' in the background
a®
02-04-2009 3:17 PM
Fm: SM02_ADD_MESSAGE checks the authorizations objects: 'S_ADMI_FCD' ID 'S_ADMI_FCD' make sure the person who executes it have this authorizations
02-04-2009 3:31 PM
TH_POPUP can only send a message when the recipient is logged on. Maybe that was the sporadic problem you encountered?
Thomas
02-04-2009 4:36 PM
Thank you for the responses. the answers was quite helpful.
I've taken care to only consider the users who are currently logged in and then I post a message through FM TH_POPUP for these users. As discussed it works well in foreground and occaniosly works in background.
FM SM02_ADD_MESSAGE cannot be used since , I would expect the message to be sent based on a user list I've got.
Can you suggest some other FM which I can make use to send a message based on userids.
cheers,
Amber
02-04-2009 4:55 PM
Please check call function 'SO_EXPRESS_FLAG_SET' and reference program RSWBO011
a®
02-04-2009 4:56 PM
You can try to send the email to the list of the users in the SAP Inbox with the Attribute as the "Express".
So, if the user is logged in he will get the message.
Epxress Document "subject" received from <user>
If that user is not logged in, than he can go to SO01 and check the message.
Regards,
Naimesh Patel
02-04-2009 6:54 PM
the behaviour of this FM is erratic in the background . I.e. it works fine once and fails for the next time in the background
That's becose background process is running in one application server, and some users are in another application server, so TH_POPUP is showing in same app server than process is running. You can fix that, using FM parameter: "destination".
Regards.