My users now want me to print an MSWord document in SAP. No fancy conversion of grids or special characters, just...
print the text of the document. I can use WS_UPLOAD to pull it in as a text file, but during batch processing and high volumes, can't sit there and convert to text or .prn. Can SAP pull in a Word doc and print it? Yes. You need to use the Desktop Office Integration (DOI) classes. These allow you easy OLE access to MS Office and other OLE enabled objects. (In the help documentation there is a wealth of information under: SAP LibraryBasis ComponentsControls and Control FrameworkDesktop Office Integration).
If you wish to store a Word document (or any other document) in SAP, then you can use the Business Document Service (BDS) (SAP LibraryBasis ComponentsBasis ServicesBusiness Document Service).
There are some excellent articles in the SAP Professional Journal that should get you started using these.
Dig Deeper on SAP ABAP
Related Q&A from Matthew Billingham
An SAP user is trying to run a report in an SAP ALV Grid online and wants to know how to get the data in the report to appear along with the header. Continue Reading
An SAP user needs to transfer customer purchase order spreadsheet data to SAP VA01 to create a new sales order. Continue Reading
A SearchSAP.com reader wants to know if it's possible to write an SAP ABAP program that will read source code and then create an SAP ABAP function ... Continue Reading