on 04-10-2006 1:51 PM
My Req:
I want to send message to a list of people who belongs to a particular Position. Is there any function module I can use or do i need to use workflow. If workflow I would need some guidance, since i am a newbie to workflow.
FM i tried
receivers-receiver = 'US Cash'.
receivers-rec_type = 'J'.
append receivers.
call function 'SO_NEW_DOCUMENT_SEND_API1'
exporting
document_data = mail_data
tables
object_content = mail_content
receivers = receivers
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 am trying to use this FM with the Position object, but still not getting the message in my inbox. Any help appreciated.
Hi Moorthy,
Lets make this a two step process.
First step, get the Pernr for the positions you want to send the mail to.
Get the SAP User id's for the pernr.
Then use the FM you are already using.
receivers-receiver = <user ids>.
receivers-rec_type = 'B'.
append receivers.
REgards,
Ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.