Start of Content Area

Procedure documentation Adding Your Own Bar Code Definitions  Locate the document in its SAP Library structure

Use

You want to:

·        Add new bar codes

·        Use a predefined bar code on a printer other than those listed in Predefined Bar Codes

Procedure

To define a bar code and activate bar code printing, do the following:

...

       1.      Create a system bar code; that is, define the bar code in SAPscript, if it has not already been defined.

       2.      Copy the device type definition of the printer with which you are working. You can skip this step if you are adding a new printer type to the SAP System.

Use the new device type in all of the printer definitions that you set up for printing with bar codes.

Example

You want to print bar codes on a Hewlett-Packard LaserJet 4 printer. This printer is predefined by SAP with device type HPLJ4. However, the standard printer definition does not include support for printing bar codes.

You need to create a copy of the device type, such as ZHPLJ4.

You need to add the print controls for activating and deactivating bar code printing to printer type ZHPLJ4, not to the standard HPLJ4 definition. You also need to set ZHPLJ4 as the device type in all of the Hewlett-Packard LaserJet 4 printers that you define in the SAP System for printing bar codes.

       3.      Define the printer bar codes for the system bar codes that you intend to use.

       4.      Enter the escape sequences (printer commands) for bar code printing in the print controls that you have defined.

To do this, call transaction SPAD ( Spool Administration), and choose Full Administration. Switch to the Device Types tab page, enter the name of the copied device type, and confirm your input.

Choose This graphic is explained in the accompanying text Print Controls and, using the manual provided with your bar code equipment, enter the printer commands required for starting and stopping bar code printing.

For example, for SBP25 (from step 2), enter the escape sequence that switches the printer into bar code mode. For SBS25, enter the sequence that deactivates off bar code mode.

Note

See Adapting Bar Code Print Controls to the SAPscript Printer Drivers before you define your bar code print controls. The SAP printer drivers process bar code data differently, and this affects the escape sequences that you must enter in your print controls.

 

See also:

Traditional Bar Code Printing for Smart Forms and SAPscript

This graphic is explained in the accompanying text SAP Printing Guide Start Page

 

 

End of Content Area