2014 Aug 07 3:48 PM
Hello,
Is it possible to send message to SAP user in Background ?
any Example ?
best regard.
2014 Aug 08 9:44 AM
Hi,
Use SO_NEW_DOCUMENT_SEND_API1' send mail,what the problem when use this?
Thanks
Sam
Hello,
Is it possible to send message to SAP user in Background ?
any Example ?
best regard.
2014 Aug 07 3:50 PM
2014 Aug 07 3:55 PM
2014 Aug 07 4:08 PM
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?
2014 Aug 07 5:12 PM
2014 Aug 07 5:21 PM
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
2014 Aug 08 8:54 AM
Thank u Max,
In Foreground i receive the message, but in background this code doesn't work.
2014 Aug 08 9:13 AM
2014 Aug 08 9:18 AM
2014 Aug 08 9:36 AM
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 ?
2014 Aug 08 9:44 AM
Hi,
Use SO_NEW_DOCUMENT_SEND_API1' send mail,what the problem when use this?
Thanks
Sam
2014 Aug 08 9:50 AM
i want use SO_NEW_DOCUMENT_SEND_API1 in background, but it doesn't work
2014 Aug 08 10:00 AM
Hello,
Please provide the details why mail is not trigger. it will work on background.Also check sost
Thnks
sam
2014 Aug 08 10:00 AM
Hi
I've tried in my system and it worked, I believe you need an help from basis
Max
2014 Aug 08 10:10 AM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |