Skip to Content

How to print a file from a directory?

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 06, 2017 at 10:00 AM

    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

    Add comment
    10|10000 characters needed characters exceeded