Skip to Content

How to print a file from a directory?


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?



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Apr 06, 2017 at 10:00 AM


    you need two things:

    Function module


    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



    Add comment
    10|10000 characters needed characters exceeded