Skip to Content

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

Print a PDF document from ABAP

Hello colleague,

Could you pls. help me with the following requirement:

We need to print a PDF document on the local desktop to the local (default) printer:

On executing the program the document should open, get printed and get closed.

There are some OLE commands (for instantiating the OLE object and printing). We have got the code for word document:


call method of h_word 'AppShow'.

call method of h_word 'FILEOPEN' exporting #1 = e_filename1.

call method of h_word 'FILEPRINT'.

call method of h_word 'FILECLOSE'.

call method of h_word 'FILEEXIT'.

free object h_word.

The above code print the word document. We need similar code for PDF document.

For this the PDF document needs to be registered in SOLE transaction. What should be the entry in SOLE transaction to register the PDF document?

Any inputs in this regard will help us a lot.


Best Regards,


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