13
SAP Printing -1- Brother Industries Ltd SAP Printing How to print from SAP. A Brother “HOW-TO” Document Abstract To get the most from your Brother printer on your SAP system, Brother have developed a device type that when installed, allows you to print barcodes (if available), access optional paper cassettes, print in duplex using a standard or optional duplex unit and print to optional paper trays. Use the following document to learn how to get the most from your Brother printer in a SAP environment. This document is split into 6 parts: 1. How to import the device type . Details the steps necessary to install the device type into your SAP system. 2. Bin Selection and duplex printing . How to print to different paper output options and how to print on both sides of the paper. 3. Printer Initialisation commands . Explanation of the different printer initialisation commands and what they do. 4. Breakdown of Printer Initialisation command (DINA4). More detailed information. 5. Barcode Printing . How to change the barcode printing parameters. 6. Barcode Printing in SAP Script. Information on how to print barcodes using SAPScript. Last Updated: 15 August 2001

SAP Install Latest

Embed Size (px)

Citation preview

Page 1: SAP Install Latest

SAP Printing -1- Brother Industries Ltd

SAP Printing

How to print from SAP.

A Brother “HOW-TO” Document

Abstract To get the most from your Brother printer on your SAP system, Brother have developed a device type that when installed, allows you to print barcodes (if available), access optional paper cassettes, print in duplex using a standard or optional duplex unit and print to optional paper trays. Use the following document to learn how to get the most from your Brother printer in a SAP environment. This document is split into 6 parts: 1. How to import the device type. Details the steps necessary to install the device type

into your SAP system. 2. Bin Selection and duplex printing. How to print to different paper output options and

how to print on both sides of the paper. 3. Printer Initialisation commands. Explanation of the different printer initialisation

commands and what they do. 4. Breakdown of Printer Initialisation command (DINA4). More detailed information. 5. Barcode Printing. How to change the barcode printing parameters. 6. Barcode Printing in SAP Script. Information on how to print barcodes using

SAPScript. Last Updated: 15 August 2001

Page 2: SAP Install Latest

SAP Printing -2- Brother Industries Ltd

1. How to import the device type

The Brother Device types allow you to access the built in bar codes of Brother printers, it is available for download in the Brother Solutions Center web site. Visit http://solutions.brother.com to download the file.

Once you have the device type file, you must upload the Brother Device Type file to your SAP system. To do this run transaction code ‘SPAD’. Then select the “Utilities | From device types | Import” option.

Select the ‘Device Type’ Radio button then enter ‘zhlpcl5’ as the object name. Enter ‘IMPORT’ in the ‘Mode (EXPORT/IMPORT)’ option. Select the ‘From/on frontend’ Radio Button and enter the location of the file.

Page 3: SAP Install Latest

SAP Printing -3- Brother Industries Ltd

To start the import process click the “Run” button. The Device type is now installed.

Page 4: SAP Install Latest

SAP Printing -4- Brother Industries Ltd

2. Bin Selection and Duplex Printing You can select the appropriate paper tray by selecting the appropriate resource name in the Print Attributes of SAPSCRIPT (SE71) Page setting.

? Refer to the following table for a list of resource names and what they do.

Resource Command Tray TRY01 ESC &l1H Tray 1 TRY02 ESC &l4H MP Tray TRY03 ESC &l5H Tray 2 TRYEN ESC &l3H TRYME ESC &l3H TRYMN ESC &l2H Manual

2a. Duplex Printing Select the Print Mode in Print Attributes of Page Setting. This setting stands on the selected driver in Device Type irrespective of the Device type setting.

Default: No change of print mode T Begin new page in TUMBLE DUPLEX mode (double-sided) S Begin new page in SIMPLEX mode (single-sided) D Begin new page in DUPLEX mode (double-sided)

Page 5: SAP Install Latest

SAP Printing -5- Brother Industries Ltd

3. Printer Initialisation

To change the printer initialisation commands, you would do this if you wished to change the paper size, type of line spacing etc. use the transaction code SPAD and select “ZHPCL5” as the device type:

Then click the “Formats” button to display the following.

Page 6: SAP Install Latest

SAP Printing -6- Brother Industries Ltd

Double click the format you wish to change and a list of available options that you can change will appear.

Click the “Change” button (F8). You are then able to directly edit the initialisation sequence.

Page 7: SAP Install Latest

SAP Printing -7- Brother Industries Ltd

4. Breakdown of Printer initialisation command (DINA4)

Please refer to the following list of control codes to see exactly what a typical printer initialisation sequence does.

# enter PJL mode and switch to PCL language # Formatting DINA4 SAPscript DIN A4 \e%-12345X@PJL\r\n # #--------------------------------------- #set PageProtect #--------------------------------------- @PJL SET PAGEPROTECT = AUTO \r\n #--------------------------------------- #set PaperSize #--------------------------------------- # LETTER,LEGAL,A4,EXECTIVE,COM10,MONARCH,C5,DL,B5,A5,A6,B6 @PJL SET PAPER = A4 \r\n #--------------------------------------- # Set resolution #--------------------------------------- # Set resolution to 300 dpi @PJL SET RESOLUTION = 300 \r\n # Set resolution to 600 dpi (standard) #@PJL SET RESOLUTION = 600 \r\n #--------------------------------------- # set Duplex mode #--------------------------------------- #Duplex Long-Edge Binding #@PJL SET DUPLEX = ON \r\n #@PJL SET BINDING = LONGEDGE \r\n #Duplex Short-Edge Binding #@PJL SET DUPLEX = ON \r\n #@PJL SET BINDING = SHORTEDGE \r\n #Simplex #@PJL SET DUPLEX = OFF \r\n

Select the appropriate paper to Format.

Select 300 dpi as the default resolution.

If you’re going to print in duplex, set it here.

Page 8: SAP Install Latest

SAP Printing -8- Brother Industries Ltd

#--------------------------------------- # set mail box Control #--------------------------------------- #Set Outbin #@PJL SET OUTBIN = OPTIONALOUTPUTBIN0 \r\n #@PJL SET OUTBIN = OPTIONALOUTPUTBIN1 \r\n #@PJL SET OUTBIN = OPTIONALOUTPUTBIN2 \r\n #@PJL SET OUTBIN = OPTIONALOUTPUTBIN3 \r\n #@PJL SET OUTBIN = OPTIONALOUTPUTBIN4 \r\n #@PJL SET OUTBIN = OPTIONALOUTPUTBIN5 \r\n #@PJL SET OUTBIN = OPTIONALOUTPUTBIN6 \r\n #@PJL SET OUTBIN = OPTIONALOUTPUTBIN7 \r\n #@PJL SET OUTBIN = OPTIONALOUTPUTBIN8 \r\n #@PJL SET OUTBIN = OPTIONALOUTPUTBIN9 \r\n #@PJL SET OUTBIN = OPTIONALOUTPUTBIN10 \r\n #@PJL SET OUTBIN = ALLSTACKER \r\n #@PJL SET OUTBIN = FINISHER \r\n #Set Mailbox protect #@PJL SET MAILBOXPROTECT = 5 \r\n #Set Avoid mailbox full #@PJL SET AVOIDMAILBOXFULL = ON \r\n #@PJL SET AVOIDMAILBOXFULL = OFF \r\n # # @PJL ENTER LANGUAGE=PCL \r\n # # reset \eE # LaserJet Series II ECMA-94 Latin 1 character set \e(0N # disable perforation skip mode \e&l0L #----------------------------------------- #PaperSouce #----------------------------------------- # select input Eject #\e&l0H # select input tray 1 #\e&l1H # select input tray 2 #\e&l5H # select input tray 3 #\e&l8H # select input tray 4 #\e&l9H # select input ManualFeed #\e&l2H # select input Envelope #\e&l3H # select input MPTray #\e&l4H

If “ALLSTACKER” is used, the Mailbox option can be used (if a mailbox unit is available for your printer), but if you select MAILBOXPROTECT, it cannot be printed to specified bin.

If set to “ON”, if the Mailbox if full, the standard output tray will be used. If set to “OFF”, if the mailbox is full, the “STACKER FULL” messages appears on the LCD panel and the printer stops printing.

Select the appropriate paper source.

Page 9: SAP Install Latest

SAP Printing -9- Brother Industries Ltd

5. Barcode Printing

Many Brother printers allow you to print barcodes without having to optionally purchase any additional item. (refer to your printer instruction manual to see if your printer supports barcode printing). To maintain the printer barcodes run transaction “SE73” and then select the “Printer Barcodes” option as shown below:

Page 10: SAP Install Latest

SAP Printing -10- Brother Industries Ltd

Select the appropriate device type:

Then, select the appropriate barcode.

You will then be able to edit the control codes.

Page 11: SAP Install Latest

SAP Printing -11- Brother Industries Ltd

Here is a list of supported barcodes along with their control code sequence.

Name Barcode type Command

Initiation command (HEX)

End of command

Prefix Suffix

ZB_CD39 CODE39 ESC iT0B 1B69543042 5C SBPZA SBSZA ZB_I25 INTERLEAVED 2of5 ESC IT1B 1B69543142 5C SBPZB SBSZB ZB_FIM FIM(US-PostNet) ESC iT3B 1B69543342 5C SBPZC SBSZC ZB_PSN PostNet(US-PostNet) ESC iT4B 1B69543442 3F5C SBPZD SBSZD ZB_EAN13 EAN 13 ESC iT5B 1B69543542 3F5C SBPZE SBSZE ZB_EAN8 EAN 8 ESC iT5B 1B69543542 3F5C SBPZF SBSZF ZB_UPCA UPC A ESC iT5B 1B69543542 3F5C SBPZG SBSZG ZB_UPCE UPC E ESC iT6B 1B69543642 3F5C SBPZH SBSZH ZB_CODA Codabar ESC iT9B 1B69543942 5C SBPZI SBSZI ZB_C128A Code 128 set A ESC iT12B 1B6954313242 5C SBPZJ SBSZJ ZB_C128B Code 128 set B ESC iT13B 1B6954313342 5C SBPZK SBSZK ZB_C128C Code 128 set C ESC iT14B 1B6954313442 5C SBPZL SBSZL ZB_ISBN ISBN(EAN) ESC iT130B 1B695431333042 3F5C SBPZM SBSZM ZB_ISBNE ISBN(UPC-E) ESC iT131B 1B695431333142 3F5C SBPZN SBSZN ZB_E128A EAN128 set A ESC iT132B 1B695431333242 5C SBPZO SBSZO ZB_E128B EAN128 set B ESC iT133B 1B695431333342 5C SBPZP SBSZP ZB_E128C EAN128 set C ESC iT134B 1B695431333442 5C SBPZQ SBSZQ For ZB_PSN,ZB_EAN13,ZB_EAN8,ZB_UPCA,ZB_UPCE,ZB_ISBN,ZB_ISBNE, a check digit is required, to make the printer automatically calculate the check digit, enter a ‘3F’ at the end of the command. Please note that you may find some difference in the position of barcodes when compared to a HP printer using the optional barcode DIMM.

Page 12: SAP Install Latest

SAP Printing -12- Brother Industries Ltd

6. Barcode Printing in SAP Script

If you wish to print barcodes using SAP Script run transaction code “SE71” and select “Character Formats”

Select the character sequence in Character Formats:

Page 13: SAP Install Latest

SAP Printing -13- Brother Industries Ltd

Then enter the barcode information. An Example is shown below.