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_NEW_DOCUMENT_ATT_SEND_API1 .

Former Member
0 Likes
999

Hi all,

I am sending an mail through SO_NEW_DOCUMENT_ATT_SEND_API1 but when i am keeping the same person mail id([email protected]) in TO and CC , i am able to get the email id in my inbox either in TO or CC but not in both TO and CC .

can you please explain why this FM SO_NEW_DOCUMENT_ATT_SEND_API1 is not allowing in TO and CC .

Message was edited by: Matthew Billingham - ensured email address was dummy

Hi all,

I am sending an mail through SO_NEW_DOCUMENT_ATT_SEND_API1 but when i am keeping the same person mail id([email protected]) in TO and CC , i am able to get the email id in my inbox either in TO or CC but not in both TO and CC .

can you please explain why this FM SO_NEW_DOCUMENT_ATT_SEND_API1 is not allowing in TO and CC .

Message was edited by: Matthew Billingham - ensured email address was dummy

7 REPLIES 7
Read only

matt
Active Contributor
0 Likes
923

I seem to recall that if you have someone in to and cc, then it's just automatically put to "to".

In any case, I strongly recommend you abandon this function module and instead use the well-documented cl_bcs class and other associated classes. There are many blogs, wikis and articles about these classes on this site already.

Read only

Former Member
0 Likes
923

Hi Matthew,

Thanks for your response.

I mentioning the same mail address in TO and CC as you said it is automatically put TO ,

But is there any method to put both in TO and CC using SO_NEW_DOCUMENT_ATT_SEND_API1 FM.

or do i need to go CL_BCS class.

Read only

Former Member
0 Likes
923

This message was moderated.

Read only

Clemenss
Active Contributor
0 Likes
923

Hi arpit,

only CL_BCS is supported. Try method CL_BCS->ADD_RECIPIENT to add recipients

Use parameters accordingly:

I_RECIPIENT    Recipient of Message

I_COPY    Send Copy

I_BLIND_COPY    Send As Blind Copy

As far as I know, this helps.

Regards

Clemens

Read only

Former Member
0 Likes
923

Hi Clemens,

Thanks for your replay.

If i mention the recipient and send copy same mail address in SO_NEW_DOCUMENT_ATT_SEND_API1 , the mail will be triggered with either recipient or send copy  not both . can i know the reason for it.

Read only

Former Member
0 Likes
923

Hi ALL ,

Still the problem exists after using CL_BCS .

I am trying using CL_BCS for sending the mail but if i mention TO and CC the same mail address

then it will take the first one TO but i want the mail address to available in both in TO and CC .

can i know how to send the mail containing the same mail address both in TO and CC .

REGARDS

     ARPIT

Read only

matt
Active Contributor
0 Likes
923

Maybe the classes (and the function module) are written so that you can't CC and TO the same person. I'm puzzled as to why you'd want to.