Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to convert a Word document to text or html in an ABAP program


At my client's site, for the recruitment system, they have the word processing system set to RTF, instead of SAP Script. This means that all the correspondence is in Word format. A standard SAP program takes the word letter, loads word, does the mail merge with the applicant's info and then sends the document to a printer.

The program name is RPAPRT05. The program creates a document proxy (interface I_OI_DOCUMENT_PROXY) and manipulates the document using the methods of the interface.

Now what we want to do is to instead of sending the document to a printer, we want to email the document contents to the applicant. But I don't know how to get the content from the Word document into text or html format so that I can make an email from it.

I know I can send an email with the word document as an attachment, but we'd prefer not to do that.

I would appreciate any help very much.


Former Member
Not what you were looking for? View more on this topic or Ask a question