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: 

How to Send Mail to Multiple Users using Function Module?

Former Member
0 Kudos
756

Hello Experts,

I had done a Development in Past wherein I have to send Automatic Mail to user on creation of Sales Order.

So for this I had used Function Module "SO_NEW_DOCUMENT_ATT_SEND_API1".

Now my new requirement is that I have send this Automatic Mail to multiple users at same time,

My few try were in vain and EMAIL is only deliverable to Single User.

So please help me with this So that i can find way out of this?

Regards,

Atul

Moderator message : Not enough re-search before posting, discussion locked

Message was edited by: Vinod Kumar

3 REPLIES 3

gouravkumar64
Active Contributor
0 Kudos
213

Hi,

If U want to send multiple user then try with append statement ,

Append all your receiver id to receivers table

Example:

clear it_receive.

it_receive-rcv = 'EMAIL ID1'.

it_receive-rec_type = 'U'.

Append it_receive.

clear it_receive.

it_receive-rcv = 'EMAIL ID2'.

it_receive-rec_type = 'U'.

Append it_receive.

like this.

Thanks

Gourav.

Former Member
0 Kudos
213

Hi ,

Try this function module

  SO_DOCUMENT_SEND_API1

Former Member
0 Kudos
213

Hi,

Check how to get the receiver data.

Pass the details to RECEIVERS table .

Receiver type will be 'U' for sending through internet, To get other types check the value range for SO_ESCAPE.

Append to table receiver and pass the table for function module.

DATA :  receiver   TYPE STANDARD TABLE OF SOMLRECI1.

               receiver-receiver = <email>.

               receiver-rec_type = 'U'.

                APPEND receiver.

Regards,

Vinod