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

Receiver shows in Cc only when using SO_NEW_DOCUMENT_SEND_API1

Former Member
0 Likes
1,054

I'm using FM SO_NEW_DOCUMENT_SEND_API1 to send external emails from SAP. I have everything working quite well except...

The receivers e-mail address only appears in the "Cc" field in the e-mail's header. I cannot get it to show in the "To" field.

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
952

Hello Donald,

While populating the Recipient List you must have checked the COPY field of the structure SOMLRECI1.

DATA:
wa_reclist TYPE somlreci1,
it_reclist TYPE STANDARD TABLE OF somlreci1.

l_wa_reclist-copy = 'X'

I think this must be the cause.

BR,

Suhas

Edited by: Suhas Saha on Feb 27, 2009 3:22 PM

I'm using FM SO_NEW_DOCUMENT_SEND_API1 to send external emails from SAP. I have everything working quite well except...

The receivers e-mail address only appears in the "Cc" field in the e-mail's header. I cannot get it to show in the "To" field.

6 REPLIES 6
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
953

Hello Donald,

While populating the Recipient List you must have checked the COPY field of the structure SOMLRECI1.

DATA:
wa_reclist TYPE somlreci1,
it_reclist TYPE STANDARD TABLE OF somlreci1.

l_wa_reclist-copy = 'X'

I think this must be the cause.

BR,

Suhas

Edited by: Suhas Saha on Feb 27, 2009 3:22 PM

Read only

Former Member
0 Likes
952

I have tried it both ways. When the Copy field = ' ', the receiver's email address shows in the Cc field on the email. When the Copy field = 'X', the receiver's email address does NOT show in either the the Cc field or the To field.

Read only

Former Member
0 Likes
952

Ensure that reclist has only these two fields populated

RECLIST-RECEIVER = 'emailaddress.

RECLIST-REC_TYPE = 'U'.

APPEND RECLIST.

Read only

Former Member
0 Likes
952

Using only RECLIST-RECEIVER = 'emailaddress and RECLIST-REC_TYPE = 'U' did the trick.

Thanks for the help!

Read only

Former Member
0 Likes
952

Can you post your code(not the entire code:-) ) some times a third eye can pin pont the logical error easily

Read only

Former Member
0 Likes
951

Hi,

please send u r function module code ..

Regards

Kiran