Show TOC

Printing LabelsLocate this document in the navigation structure

Use

You want to print labels (such as shipping or bar code labels) on a special printer. You can create a label using an external design program and then print it from a SAP script form.

Prerequisites

Most special label printers available on the market use their own control languages for which there is no printer driver in the standard SAP system. To be able to address these label printers nevertheless from the SAP system, you can define the complete layout with an external program.

Activities
  1. Create the label with a design program: Define the complete layout of the label, including the fields that are later filled from the SAP system.

  2. Download the print file: Export the file with the print command from the design program. The printer commands must be in ASCII format; that is only printable characters and CARRIAGE RETURN, LINEFEED, and possibly FORMFEED can be contained. The file must also not have more than 80 characters per line, as otherwise undesired line breaks could occur during the upload. Binary control characters (such as ESCAPE) must not be included. (For more information about the download, see the sections listed below for the relevant label printers).

  3. Upload the print file to the SAP script form: Upload the print file to a SAP script standard text. However, this standard is only used as a temporary store. Copy the text to a SAP script form. In the form, enter variables of the print program (program symbols) in the places where data should appear in the label. These variables are filled with the current field values from the application program during runtime. (For more information about the upload, see the sections listed below for the relevant label printers).

  4. Adjust the form: You now need to adjust the label for most label printers, for example, you must increase the MAIN window to the full page size and close all other windows. The MAIN window should also only contain a single text element; that is, the imported print file.

  5. Create an output device: Define an output device for label printing. You can use either ASCIIPRI or a special device type for label printers as the device type.

Supported Label Printers

For a constantly updated list of all supported label printers, see SAP Note 135894 in SAP Service Marketplace.