Skip to Content
Former Member
Jun 27, 2006 at 09:23 PM

Sending DMS documents as Email attachments



I have a requirement to read documents(For eg. XLS, JPG ) stored in SAP Document Management System(DMS) and send it in email.

The records read from DMS are in binary form (In internal table, I can see contents in Hexadecimal). If I send the document as an attachment using Function Module SO_NEW_DOCUMENT_SEND_API1, it doesnt come out nicely (If I open the attachment in Outlook/Lotus Notes, it is just junk characters).

Instead of doing this, If I download the document to desktop, upload it and send it as email attachment, it is working. Looks like contents of document get converted from Binary to ASCII in this process.

I guess the missing piece while trying to send it directly from SAP is format of the document content. If document is converted from Binary to ASCII format, I hope it will work.

Does anybody knows a conversion function module which does a conversion from Binary to ASCII format?