Application Development and Automation 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: 
Read only

Send message to user in background

former_member445510
Active Participant
0 Likes
2,371

Hello,

Is it possible to send message to SAP user in Background ?

any Example ?

best regard.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,297

Hi,

Use SO_NEW_DOCUMENT_SEND_API1' send mail,what the problem when use this?

Thanks

Sam

14 REPLIES 14
Read only

Former Member
0 Likes
2,297

fb TH_POPUP

Read only

0 Likes
2,297

fb TH_POPUP doesn't work in background

Read only

0 Likes
2,297

ah sorry. in backround its not possible to send a message to an specific user, because the backround run didnt got any Connection to the presentation Server.

you could send an SAP express message in the users workplace.

is that a possible way you want to go?

Read only

0 Likes
2,297

yes..... that is a possible way.

do have any example ?

Read only

0 Likes
2,297

Hi

In this way you can send a message (in SAP Office):


data objcont  type standard table of soli      with header line.

data receiver type standard table of somlreci1 with header line.

data doc_data type sodocchgi1.

* insert receiver (sap name)

refresh receiver.

clear receiver.

move: sy-uname to receiver-receiver,

       'X'      to receiver-express,

       'B'      to receiver-rec_type.

append receiver.

* insert mail description

write 'My express message' to doc_data-obj_descr.

objcont-line = 'Hello! This is my message sent by program &'.

replace '&' with sy-repid into objcont-line.

append objcont.

call function 'SO_NEW_DOCUMENT_SEND_API1'

   exporting

     document_data              = doc_data

   tables

     object_content             = objcont

     receivers                  = receiver

   exceptions

     too_many_receivers         = 1

     document_not_sent          = 2

     document_type_not_exist    = 3

     operation_no_authorization = 4

     parameter_error            = 5

     x_error                    = 6

     enqueue_error              = 7

     others                     = 8.

I've posted that sample in your post for the mail in background, this sample doesn't send a mail, but only a message

Max

Read only

0 Likes
2,297

Thank u Max,

In Foreground i receive the message, but in background this code doesn't work.

Read only

vamsilakshman_pendurti
Active Participant
0 Likes
2,297

Hi

Use Tcode SO23......

Thanks

vamsilakshman.p

Read only

0 Likes
2,297

i tried, but not works in background.

Read only

former_member445510
Active Participant
0 Likes
2,297

i see no thing works in background !!!

i tried something else in background, it doesn't work..

i find

ICM Status:            Not running

i have to active something ?

Read only

Former Member
0 Likes
2,298

Hi,

Use SO_NEW_DOCUMENT_SEND_API1' send mail,what the problem when use this?

Thanks

Sam

Read only

0 Likes
2,297

i want use SO_NEW_DOCUMENT_SEND_API1 in background, but it doesn't work

Read only

0 Likes
2,297

Hello,

Please provide the details why mail is not trigger. it will work on background.Also check sost

Thnks

sam

Read only

0 Likes
2,297

Hi

I've tried in my system and it worked, I believe you need an help from basis

Max

Read only

0 Likes
2,297

OK, Thank u very much Max.

You was very patient with my questions.

I will discus that with my manager....

Thank u very much.

PS: The server must been restart.