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 (Problem in Mail content )

Former Member
0 Likes
595

Dear All,

Requirement: 1 pdf file needs to be attach and hard code contents need to be send to vendor.

Problem: 2 file gets attached. 1 is pdf and 2nd is .text file. But text file is contents. which needs to be display as contents.

Please help me to resolve issues.

Regards,

Dear All,

Requirement: 1 pdf file needs to be attach and hard code contents need to be send to vendor.

Problem: 2 file gets attached. 1 is pdf and 2nd is .text file. But text file is contents. which needs to be display as contents.

Please help me to resolve issues.

Regards,

3 REPLIES 3
Read only

Former Member
0 Likes
530

Hi,

Check in transaction code SCOT for internet settings.

Regards,

Thiru

Read only

Former Member
0 Likes
530

Hi,

To create the text body, you have to append the data into SOLISTI1.

For example :


DATA :  I_OBJTXT LIKE SOLISTI1 OCCURS 0 WITH HEADER LINE.
"Append all message body here
* Create Message Body Title and Description
  CONCATENATE 'Please Find attached purchase order' P_EBELN INTO I_OBJTXT
  SEPARATED BY SPACE.
  APPEND I_OBJTXT.
  CLEAR I_OBJTXT.

Hope this will help.

Thanks & Regards,

Rock.

Read only

Clemenss
Active Contributor
0 Likes
530

Hi Mehul,

wake up an forget the obsolete technology.

[Send Mail having Multiple Files as Attachment using object oriented technique|http://wiki.sdn.sap.com/wiki/display/Snippets/SendMailhavingMultipleFilesasAttachmentusingobjectorientedtechnique]

[WD4A - Sending an Email along with PDF as an attachment|http://wiki.sdn.sap.com/wiki/display/WDABAP/WD4A-SendinganEmailalongwithPDFasanattachment]

You will rarely find questions about CL_BCS here - CL_BCS is the APPLE in ABAP: Easy to use and working.

Regards,

Clemens