Defining an Output Device for Printing to a File


You can print to a file from the SAP System using an output device set up for this purpose. To do this, you must specify this output device that has been specially set up for printing to a file in the print window. The output device is created using the device definition.

This definition creates an output device with which data is converted to the appropriate format.


·        You require the appropriate authorization to create output devices.

·        A printer with the port FILE must be set up at the Microsoft Windows frontend (workstation PC).

·        SAPlpd is also required.


Follow the procedure below to create a device definition for printing to a file:


Call transaction SPAD, and choose Output Devices.

If you are not in change mode, switch to this mode by choosing Change.

You can now do the following:

You can create a new device definition by choosing Output Device ® Create.

You can use an existing device definition as a template.

To do this, click the entry for the output device that is to be used as a template, and choose Output Device ® Create Using Template.

Specify the name of the output device and fill out the mandatory fields of the individual tab pages as follows:

Tab Page



Additional Information

Device Attributes

Device Type

appropriate device type


You can select the appropriate device type for the printer.

If you choose pdf1, JPPDF (for Japanese), or KPPDF (for Korean) as the device type here, a PDF file is generated. You can later display this using the PDF Viewer and print the file from this viewer.


Device Class

standard printer


Host Spool

Access Method

Host Spool Access method (operating system spooler)

U, S, or F


Host Printer

Name of the host printer

The host printer is the printer that was created in the operating system with the port file.


Destination host


With access method U or S, the name of the host to which the data is forwarded for output.

This is the host on which the (SAP)lpd is running.

Save your entries.


The following example shows a special form of print file creation. Using the output device LOCLPDF, a PDF file is generated at the frontend.

Device Attributes Tab Page

Host Spool Access Method Tab Page

If you want to create a PDF file as a print file, as in the above example, you must take a number of restrictions into account. For more information, see SAP Note 323736 in the SAP Service Marketplace.

For more information about how printing to a file works, see Printing to a File.

See also:

Output Devices in the SAP Spool System

  SAP Printing Guide Start Page