Skip to Content
Former Member
Feb 08, 2005 at 01:36 PM

Email CSV Files from ABAP in 4.6c


Hi all,

I've been trying to work out how to send an email from an ABAP program with a body of email text and a CSV file attachment. We are running 4.6c and have SAP connect configured. I can send plain text emails but can't seem to attach a CSV file successfully. In my program I have set up an internal table which represents the CSV contents.

Any of the threads I follow on the SDN seem to point towards binary attachments which I have tried but do not seem to work as I want them to.. there are formatting issues or the file ends up having an extension which is not suitable.

I want to be able to name the attachment appropriately ... e.g. filename.csv so that the receiver can open it directly in Excel or in other text file applications.

Can anyone point me in the right direction for this ?