Application Development and Automation 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: 
Read only

SO_DOCUMENT_SEND_API1 query

Former Member
0 Likes
925

hi expert,

i have some concern about function module SO_DOCUMENT_SEND_API1 .

Can we sent out mails to different mail address with individual attachment in the same time ? Or we need to call the function module one time for each mail address?

thanks in advance

1 ACCEPTED SOLUTION
Read only

sarbajitm
Contributor
0 Likes
882

Hi in response to your first query, i think, it's not possible. But to be very frank, I'm not sure. I think you have to call the FM individually.

Regards.

Sarbajit

7 REPLIES 7
Read only

sarbajitm
Contributor
0 Likes
883

Hi in response to your first query, i think, it's not possible. But to be very frank, I'm not sure. I think you have to call the FM individually.

Regards.

Sarbajit

Read only

Former Member
0 Likes
882

Hi,

After bringing your final alv data in the final internal table,

go through this link , i also had an same requirement to send data after converting to excel file and

send it as an attachment to mail id outside Sap,

https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/to%252bsend%252b2%252bint%252btables%252bdat...

I did this object and it was working fine using that function module.

Hope it helps

Regrds

Mansi

Read only

former_member195383
Active Contributor
0 Likes
882

you can very much do that , u can send it to multiple senders.

in the table parameter , receivers , u can sepcify multiple recievers,

by appending multiple rows to the internal table.

Read only

0 Likes
882

Hi Rudra,

It is possible to send the mail to different user. But is it possible to send different

attachment to different user? I mean attach1 to user1,attach2 to user2,...........is it possible to make such grouping? I think this is what wanna qian wants to know.

regards.

Sarbajit.

Edited by: Sarbajit Majumdar on Apr 17, 2009 1:24 PM

Read only

0 Likes
882

hi Sarbajit,

yes , that's what i want to know

Read only

0 Likes
882

i think we can do it...i am not sure for this ....

if IT_RECEIVER-RECEIVER = 'email id 1'.

loop at it_final with some where cond.

transfer it_final to it_mailtext.

append it_mailtext.

elseif IT_RECEIVER-RECEIVER = 'email id 2'..

loop at it_final with some where cond .

transfer it_final to it_mailtext1.

append it_mailtext1.

elseif IT_RECEIVER-RECEIVER = 'email id 3'..

loop at it_final with some where cond.

transfer it_final to it_mailtext3.

append it_mailtext2.

endif.

it_mailtext is the attachment depending on the user input to the function module.

Read only

Former Member
0 Likes
882

thanks to all