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: 

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.

Thanks

Kris

4 REPLIES 4

LucianoBentiveg
Active Contributor
0 Kudos

Try with FM: SO_NEW_DOCUMENT_SEND_API1

0 Kudos

I believe you didnot read my question. I wanted to send it to a Position not a person or group of persons.

please let me know if u need further info.

Former Member
0 Kudos

hi Kris,

You have two options:

<- First ->

Basic Steps:

1) Create a step "Send Mail" at the point that you want;

2) Inside the "Send Mail", put the "Recipient Type" = 'S - Position'.

3) Insert the position in front of this field.

4) fill the others fields with a mensage that you want;

<- Second ->

Basic Steps:

1) Create a active that must return a list of people in table z_list(***);

2) Create a step "Send Mail" at the point that you want;

3) Inside the "Send Mail", put the "Recipient Type" = 'Expression'.

4) In the field in front of the recipient set the table z_list;

5) fill the others fields with a mensage that you want;

(***)Type of SWHACTOR, where:

OTYPE = 'US'.

OBJID = sap user.

You can append a lot of people.

Regards,

Alexandre

0 Kudos

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.