Skip to Content
0
Former Member
Aug 18, 2005 at 08:37 PM

How at send a Word document as an email attachment from an ABAP program?

665 Views

Hi All,

I'm developing an application that has to send an email message along with a Word document. The Word document is a business document (Ex. Application form) with tables and specific formatting. I was able to successfully send an email using the Function module 'SO_OBJECT_SEND'. However, I was unable attach the Word document to the email.

Based on the discussions previously posted on a similar topic I tried different approaches.

1) Function module SO_DOCUMENT_REPOSITORY_MANAGER

- A window pops up requesting Recipient email ids. I couldn't get the window suppressed.

2) Function module SO_NEW_DOCUMENT_ATT_SEND_API1

- Since the attachment is a pre-formatted Word Document and not an Excel or Text document, couldn't process the contents into the internal table

I would appreciate if any of you could shed some light on how to send an email with text in the body and MS Word document attached

Thanks,

Sud