2008 Jan 25 7:19 AM
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
2008 Jan 25 7:29 AM
Can u Try with MAILHEADER-LINE = 'ACB12345678910.DAT'.
insted
MAILHEADER-LINE = 'ACB12345678910.dat'.
wild guess..
Regards,
Srinivas M
2008 Jan 25 7:30 AM
Hi,
Looks like the doc.type is not properly mentioned. Give the values in CAPS. Try giving 'RAW'.
Regards,
Subramanian
2008 Jan 25 7:39 AM