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

Alternative Function Module to 'SO_NEW_DOCUMENT_ATT_SEND_API1' for mails

Former Member
0 Likes
541

Hi All,

I am currently using the function module 'SO_NEW_DOCUMENT_ATT_SEND_API1' to send an email (with heading and body) with a PDF file as an attachment. However, when I am using this function module to send an email, I am getting junk characters in the email body. Reason for this is that, the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1' is incompatable to UTF-16 to unicode conversion.

Could someone please suggest me any other function module or class method for sending mails. Please note that the mail will have a PDF file as an attachment and it has matter in the body and mail header. Sample code would be appreciated.

Thanks,

Vishal.

3 REPLIES 3
Read only

MarcinPciak
Active Contributor
0 Likes
490

You can use cl_bcs class instead,

Refer [Simple but Powerful Code for Sending Mail from SAP|http://wiki.sdn.sap.com/wiki/x/jF4]

Regards

Marcin

Read only

Former Member
0 Likes
490

Hi,

Please refer the link below:

https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=79955488

Hope it helps

Regards

Mansi

Edited by: MANSI ASNANI on Aug 21, 2009 10:52 AM

Read only

Former Member
0 Likes
490

Vishal,

search SCN.. there are many post about using class cl_bcs