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: 

simillar FM s like TH_POPUP

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Thomas8
Active Contributor
0 Kudos

TH_POPUP can only send a message when the recipient is logged on. Maybe that was the sporadic problem you encountered?

Thomas

7 REPLIES 7

former_member194669
Active Contributor
0 Kudos

You may need to use fm 'SM02_ADD_MESSAGE' in the background

0 Kudos

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

Thomas8
Active Contributor
0 Kudos

TH_POPUP can only send a message when the recipient is logged on. Maybe that was the sporadic problem you encountered?

Thomas

Former Member
0 Kudos

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

0 Kudos

Please check call function 'SO_EXPRESS_FLAG_SET' and reference program RSWBO011

0 Kudos

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

LucianoBentiveg
Active Contributor
0 Kudos

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.