cancel
Showing results for 
Search instead for 
Did you mean: 

printing pdf files

Former Member
0 Kudos

Hi All,

I need to print the pdf files stored in the local system. Can anyone suggest me any method/ function module to do this?

Thanks in advance.

Regards,

Karthick

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Karthik,

You can make use of cl_gui_frontend_services=>execute method to print ur local system file

data filename type string.

filename = 'Give file path' ( for eg: C:\test1.pdf)

call method cl_gui_frontend_services=>execute

exporting

document = filename

operation = 'PRINT'.

Former Member
0 Kudos

Hi Eddy,

Thanks for your quick reply. PDF files are stored in the client side. This program is for DMS(Document Management System). It's plain ABAP only.

Regards,

Karthick.

eddy_declercq
Active Contributor
0 Kudos

Hi,

I'm afraid that SAP can't directly print file on the client side without actions from the user (also for security reasons). If the file is shared, you might consider

Eddy

eddy_declercq
Active Contributor
0 Kudos

Hi,

Are you talking about pdf files on the server or client? Which technology do you use: BSP, WebDynpro, plain ABAP, ....

Eddy