cancel
Showing results for 
Search instead for 
Did you mean: 

How to print a file from a directory?

former_member230869
Participant
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

alexander_bolloni
Contributor
0 Kudos

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