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

Email File extension

Former Member
0 Likes
563

Hi,

I use the following code to send an email which include an ascii text file with file extension dat. The email can send successfully, but the attachment was ended with ".TXT" . How can i resolve this?? Any config is needed??

I found the Note 338310 - Incorrect line breaks with text documents. Should i maintain an entry for TSOPE??

Code Fragment:

  • Create attachment notification

MAILHEADER-LINE = 'ACB12345678910.dat'.

APPEND MAILHEADER.

IT_PACKING_LIST-TRANSF_BIN = SPACE.

IT_PACKING_LIST-HEAD_START = 1.

IT_PACKING_LIST-HEAD_NUM = 1.

IT_PACKING_LIST-BODY_START = IT_PACKING_LIST-BODY_NUM + 1.

DESCRIBE TABLE MAILATT LINES IT_PACKING_LIST-BODY_NUM.

IT_PACKING_LIST-DOC_TYPE = 'raw'.

IT_PACKING_LIST-DOC_SIZE = IT_PACKING_LIST-BODY_NUM * 255.

APPEND IT_PACKING_LIST.

Regards,

Kit

3 REPLIES 3
Read only

Former Member
0 Likes
517

Can u Try with MAILHEADER-LINE = 'ACB12345678910.DAT'.

insted

MAILHEADER-LINE = 'ACB12345678910.dat'.

wild guess..

Regards,

Srinivas M

Read only

Former Member
0 Likes
517

Hi,

Looks like the doc.type is not properly mentioned. Give the values in CAPS. Try giving 'RAW'.

Regards,

Subramanian

Read only

0 Likes
517

Hi Subramanian,

Same result for the capital letter RAW

Kit