Application Development 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: 

Changing file extensions when sending mails

Former Member
0 Kudos

Hi,

I have written a FM to send emails including a body text and up to 8 attachments (4 for pdfs and 4 for plaintext like .csv, .txt or non-binary .xls).

The fm I use is SO_NEW_DOCUMENT_ATT_SEND_API.

The entries in the object pack get the doc types RAW (body and plaintext attachment) and PDF (pdf attachment). As object description I use the filename including the extension (.pdf, .csv ...).

So far it works fine. When I use the FM the emails appear in SOST and the attachments have correct names. The problem is, that on sending them there is added an additional extension .txt, so that the files have names like test.csv.txt at the end.

The configuration in SCOT says that RAW types are converted in TXT types.

When I change my FM and give the attachments the doc type EXT (which is not configured in SCOT) the filenames aren't changed, but the files have no line-breaks.

My questions: Does anybody know a good solution for this?

I think there's a global setting somewhere which allows to not-add the extension, but i'm not sure, whether i can change this. Another idea is to convert the attachment from RAW to TXT like it is configured in SCOT, but i don't know how. Any other suggestions?

Thx

Georg

1 REPLY 1

Former Member
0 Kudos

I think the .txt extension should be OK