cancel
Showing results for 
Search instead for 
Did you mean: 

WORKFLOW or FM - Send message to position

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member181962
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Ravi,

thanks. I am trying to send it to the position object. I have a work around to find the list of people in the position and send the message, but my FM should send it to the position object.

Kris