Skip to Content
0

How to print a file from a directory?

Apr 05, 2017 at 09:54 AM

81

avatar image

Hello,

my question is if it is possible to print a file (PDF) which is strored in a directory on a network server.

I'd like to print the saved file during a message processing in a delivery. The name logic of the file is "PO_number.pdf". The PO number (BSTKD) is assigned to the sales order of the delivery.

Is there a way to implement that in the coding of the printing program?

Regards.

chris

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Alexander Bolloni
Apr 06, 2017 at 10:00 AM
0

Hi,

you need two things:

Function module

ADS_CREATE_PDF_SPOOLJOB

can be used to create a spool request from your PDF file.

Since printers generally cannot directly print a PDF file, you need to use a printer which is connected to SAP via SAPSprint print server, and SAPsprint must have the "sappdfprint" plugin installed (which converts PDF to Windows printer output).

See relevant SAP note

1444342 - Device type-independent printing of ADS forms

Regards,

Alex

Share
10 |10000 characters needed characters left characters exceeded