SlideShare a Scribd company logo
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 1
Zebra/bar One Label Printing
through Scripts and Adjusting the
Coordinates VAI a SAP-Script.
Applies to:
ABAP. For more information, visit the ABAP homepage.
Summary:
This Article is intended for all those Abapers who are interested in Label Printing through Sap-Scripts. It
explains how to use. The scripts, the software needed and all other relevant requirements in detail. The last
part explains the major concern in a Label that is adjusting the coordinates.
Author: Daljeet Singh Kohli
Company: Infosys Technologies limited
Created on: 12 August 2010
Author Bio
Daljeet Singh Kohli works for Infosys Technologies Limited on ABAP module of SAP.
Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 2
Table of Content
Overview:......................................................................................................................................................3
Activities .......................................................................................................................................................3
Select fonts for the text fields: ....................................................................................................................3
Mandatory Installation ...................................................................................................................................3
I) Installation of SAP R/3 Zebra Device Types and Codepages ..................................................................3
1.1) Install a Zebra Codepage (S9162.CPA)................................................................................................................3
1.2) Install the Zebra Driver (ZLB_ZEB.PRI)................................................................................................................3
2) Using the SAP R/3 Zebra Device Types with Output devices / Print Queues ..........................................5
Barone .........................................................................................................................................................6
Converting the File of .LBL Format to .ITF Format....................................................................................10
Uploading labels from BAR-ONE into SAP R/3 Layout sets / forms..............................................................13
Creating the SAP-Script ..............................................................................................................................14
Learning ZPL Programming ........................................................................................................................15
Features..................................................................................................................................................15
Format Instructions .....................................................................................................................................15
Bar Codes:..................................................................................................................................................15
Sample ZPL explanation:.........................................................................................................................16
Code Generated from Bar-One software:.................................................................................................17
Interpretation of Code..............................................................................................................................17
How to Manage the Coordinates .................................................................................................................19
Related Content..........................................................................................................................................20
OSS Notes ..............................................................................................................................................20
Disclaimer and Liability Notice.....................................................................................................................21
Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 3
Overview:
IF You as an Abaper want to print labels (shipping or bar code labels) on a special printer as per the client
requirement. You can create a label using an external design program which is in an otf format and then print
it from a sap-script form..
Activities
...
CREATE THE LABEL WITH A DESIGN PROGRAM:
Use The Design Program Bar-One Tool For Sap R/3 Label Printing Of The Manufacturer Zebra.
DEFINE THE R/3 FORM FIELDS:
Variable Fields Are Those From Which Data Is To Be Fetched On Later , Hard coding And Other Fields Are
Constants
Download the Print File:
Export the File with the Print Command From The Design .
Program:
As Shown In the diagrams Below .
Select fonts for the text fields:
Upload the Print File to the sap-script Form:
Upload the print file to a sap-script standard text.
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.
Create an Output Device:
Define an output device for label printing. which depends on the configuration of client
Mandatory Installation
I) Installation of SAP R/3 Zebra Device Types and Codepages
1.1) Install a Zebra Codepage (S9162.CPA)
Program RSTXCPAG is used to upload the codepage file into the SAP printing system.
a) Type in the codepage, i.e. 9162, for Character set number field
b) Select the File system: GUI field
c) Select Upload (file-> R/3) option
d) Select the Update/delete when uploading
1.2) Install the Zebra Driver (ZLB_ZEB.PRI)
Program RSTXSCRP is used to upload the device type definition file into the SAP printing system.
1) Select the Device type option
2) Enter the device type, i.e. “ZLB_ZEB” for Object name
3) Type in “IMPORT” for Mode (EXPORT/IMPORT)
4) Select From/on frontend (or File system: GUI on older releases)
Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 4
The pop-up dialog text box labeled “Import from a Local File” prompts for the device
type definition file and its location.
Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 5
2) Using the SAP R/3 Zebra Device Types with Output devices / Print Queues
a) Initiate the Spool Administration program, SPAD. Select the Output DeviceOption.
b) Press the Change icon.
c) Allocate the Output Device name. You may also allocate a short name
d) Select the Device Type, i.e. ZLB_ZEB
e) Enter Location and Message if required
f) Ensure Host spool access method is set as option F
g) Type in __DEFAULT for Host printer
h) Press the save icon
Now SAP is ready to send print to your Zebra Label Printer.
Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 6
Barone
„BAR-ONE for R/3‟ is Label designing software, supplied by Zebra which supports variable text, barcode and
graphics fields.
The available data types are; Time, Date, Linked Field and R/3® Variable Field, are listed when creating any
new field or editing any existing field.
Once you save your template,
File -> Create format for my SAP Business suite -> Include objects in the SAP-Script file
If any permanent logo ->then choose only check option, Include Logos -> select filename and location.
.ITF file is generated.
After opening the bar one/zebra printer suit for my sap
Click on create a new label.
Then click on finish button.
Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 7
We Get a Blank screen for creating a Label.
Where we have options for text, barcode, rectangle, pictures etc…..
1).Text contains: fixed text, variable text, date and time fields.
On clicking FIXED TEXT
Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 8
And writing any fixed text like…….we get.
And writing any Variable Text like……. we get.
The variable is to be coded between &….&
Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 9
This is what we get after inserting any variable text..
2).Barcode contains all the same field as above.
On clicking on fixed text we get Barcodes of Fixed Text.
Similarly, we can do for the variable BARCODE.
The above file is saved in an lbl format.
Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 10
Converting the File of .LBL Format to .ITF Format
Click on open recently used labels-select your label---finish.
You get your previously created label,
Click on export above and let the label get exported.
Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 11
Click on NEXT.
Next again…………
Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 12
Give your location for saving it in itf format.
Click on next
and now click on cancel, You will get an ITF format layout.
NOTE: Whenever you see the barcode and anything colored in red. That is an error.
It says in most of the times that the variable has eluded from the given Area. Please
Adjust it and it will be fine.
And others like rectangle and pictures etc…… are there.
Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 13
Which can be used……as explained above.
Uploading labels from BAR-ONE into SAP R/3 Layout sets / forms
1) Create a standard text with transaction so10.
2) At the “Change Standard Text: Request”, select Text->Upload from the main menu.
3) Select the ITF and press the Transfer button.
4) A pop-up dialog text box labeled “Import ITF file” prompts for ITF File and its location.
5) Then press select icon 3 times and copy the text to the internal SAP clipboard.
GOTO SO10 Transaction---create a new text---Text--Upload
You will get the below screen…..
Select ITF from it, and click on OK.
You will get a Pop-Up for selecting the location of your itf file format, which is your BAR ONE Layout.
Once you are done with this your code in SO10 looks something like this.
Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 14
Creating the SAP-Script
Important: While creating a new script, ensure that your margins are 0, Paper is DINA3. You may have
problems with page breaks being inserted automatically and corrupt graphics if you do not use these setting.
Note: Zebra printers do not need multiple windows. They only need a single “Main Window”.
Now paste the copied clipboard in the main window text elements.
Note: Do Not Use Any Other Sap-Script Commands Along With The ZPL Codes.
Once the forms are activated, the labels are ready for printing.
-------------
Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 15
Learning ZPL Programming
1). ZPL ii commands sent to a zebra printer helps you in creating a variety of labels from the simple to the
very complex ones.
2).The Labels can be a Combination of Text, Variables Constants Bar Codes and Graphics.
3). Through Zpl-2 Commands, We Can Print Fields in Horizontal Orientation and Can Be Rotated 90,180,270
Degree Clock-Wise
Features
As ZPL contains two-character mnemonic code and printable characters, it can be programmed in printable
ascii characters as well.
The use of escape sequences or control codes is not permitted types of instruction in ZPL
Format Instructions
Control Instructions
Format Instructions
Format instructions are the blueprint of a label. These instructions define label length, field origin, type of
field, field data, and other information. Format instructions are always receded by the caret (^) character.
E.g. ) ^LH (Label Home) ^LL (Label Length)
^LR (Label Reverse) ^LS (Label Shift)
^JM (Set Dots/Millimeter) ^PM (Mirror Image)
^PO (Print Orientation) ^PF (Slew Dot Rows)
Control Instructions
Control instructions are usually preceded by a tilde (~) character. In most cases, they cause the printer to
take a specific action immediately, such as clearing the memory or feeding a blank label.
E.g. ) ~WC – is used to print a configuration label.
Bar Codes:
Zebra printers can print the following kinds of bar codes:
ANSI Codabar CODABLOCK
Data Matrix Code 11
Code 39 Code 49
Code 93 Code 128 (subsets A, B, and C)
EAN-8 EAN-13
Industrial 2 of 5 Interleaved 2 of 5
LOGMARS MSI
PDF417 UPS Maxi code
Plessey Post Net
Standard 2 of 5 UPC-A
UPC-E UPC/EAN Extensions
Micro-PDF417 QR Code
ZPL II Object Names and Extensions
Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 16
Zebra printer can store objects in the following format and can refer to it later,
.ZPL ZPL II label format (^DF or ^XF)
.FNT fonts in Zebra format (~DB, ~DS, or ^XA)
.GRF Zebra bitmap format (~DG, ^IS, ^IL, ^XG or ^IM)
Referring to an object
~DG Download Graphic Image
^XG Recall Graphic Image
^IS Store format as a graphic image
^IL Load Image
^IM Move Image
^DF Store ZPL II format as text
^XF Recall ZPL II format
^ID Image Delete
^HW Host Directory List
^WD Print Directory
~DB Download Bitmap
~DS Download Scalable Font
Sample ZPL explanation:
The below code will give u a picture of interpretation of ZPL code for
Fixed Text
Variable Bar
Code
Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 17
Code Generated from Bar-One software:
^XA
^DFBOK^FS
^PRC
^LH0,0^FS
^LL609
^BY3,3.0^FO99,344
^B3N,N,100,Y,N^FR^FN999^FS
^FO192,129^A0N,147,129^CI13^FR
^FDInfosys^FS
^FO11,13^GB791,586,4^FS
^XZ
^XA
^XFBOK.ZPL
^FN999^FD&ITB-BAR&^FS
^PQ1,0,1,N
^XZ
^FX End of job
Interpretation of Code
^XA
[^XA - Indicates start of label format.]
^DFBOK^FS
[^DF – Download a format ]
[BOK – actual name of .ZPL file]
[^FS - End of field data.]
^PRC
[^PR – print at rate of C (101.6 mm/sec) ]
^LH0,0^FS
[^LH - Sets label home position at the upper left corner of the label.]
[^FS - End of field data.]
^LL609
[^LL - Sets label length to 609 dots rows along the Y-axis.]
^BY3,3.0^FO99,344^B3N,N,100,Y,N^FR^FN999^FS
[^BY – Barcode field with ratio 3 and height 3.0 ]
[^FO - Set field origin relative to label home.]
[^B3 – Barcode type Code39 with normal orientation and readable value below]
[^FR - Set field (box for serial numbers) to be reverse print as black.]
Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 18
[^FN - Number the data fields]
[999 – referring BOK.ZPL‟s variable from SAP R/3 ITAB-BAR]
[^FS - End of field data.]
^FO192,129^A0N,147^CI13^FDInfosys^FS FOR 147^CL13 USE 23,45^FH
[^FO - Set field origin relative to label home.]
[^A0 - Select default font .0., normal orientation, character height of 147 dots, standard width.]
[^CI – Change to International Font 13]
[^FD - Start of field data.]
[Infosys – actual data]
[^FS - End of field data.]
^FO11,13^GB791,586,4^FS
[^FO - Set field origin relative to label home.]
[^GB – Draw a box with 791 as width and 586 as depth with 4 as width.]
[^FS - End of field data.]
^XZ
[^XZ - Indicates end of label format.]
^XA
[^XA - Indicates start of label format.]
^XFBOK.ZPL^FN999^FD&ITB-BAR&^FS
[^XF – Stored format to merge with variable data.]
[BOK.ZPL – name of stored format.]
[^FN - Number the data fields]
[^FD - Start of field data.]
[&ITB-BAR& - variable from SAP R/3]
[^FS - End of field data.]
^PQ1
[^PQ1 - Set print quantity of 1 label.]
^XZ
[^XZ - Indicates end of label format.]
Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 19
How to Manage the Coordinates
Consider the variable ^FN this represents the field number or the number of data field.
Now, consider the line statement:
^FT16,84^AON,16,24^FH^FN2^FS.
FT : Represents field postions
16 : x coordinate of field number 2
84 : y coordinate of field number 2
A : Represents The Font Size Of The Character.
0N : Default Zero And Normal.
16 : Hieght Of Character
84 : Width Of The Character.
Similarly, for any text field we will have the line statement as:
^FT17,121^AON12,31^FH^FDINFOSYS^FS
FT :Represents field postions
A :Represents the font size of the character.
INFOSYS is the hardcoded text
For creating BOXES we have a command ^GB which means GRAPHICAL BOXES.
^FO0,3^GB606,209,1^FS
FO :Represents field origin position
0,3 :Represents x and y postions respectively.
GB :Represents Graphical Boxes.With Dimensions Width Hieght And thickness.
**************
Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 20
Related Content
http://www.servopack.de/Files/HB/ZPLcommands.pdf
http://www.servopack.de/Files/HB/ZPLbasics.pdf
http://www.zebra.com
OSS Notes
179534 - Label printing with Zebra printers (SAPscript)
315894 - Label printing on thermal (transfer) printers
43423 - Modifying a device type for printing labels
8929 - List of supported printers/device types
http://www.servopack.de/Files/HB/ZPLbasics.pdf
http://www.zebra.com
OSS Notes
179534 - Label printing with Zebra printers (SAP script)
315894 - Label printing on thermal (transfer) printers
43423 - Modifying a device type for printing labels
8929 - List of supported printers/device types
Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script.
SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com
© 2010 SAP AG 21
Disclaimer and Liability Notice
This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not
supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade.
SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document,
and anyone using these methods does so at his/her own risk.
SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or
code sample, including any liability resulting from incompatibility between the content within this document and the materials and
services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this
document.

More Related Content

What's hot

SAP S_4HANA Migration Cockpit - Migrate your Data to SAP S_4HANA.pdf
SAP S_4HANA Migration Cockpit - Migrate your Data to SAP S_4HANA.pdfSAP S_4HANA Migration Cockpit - Migrate your Data to SAP S_4HANA.pdf
SAP S_4HANA Migration Cockpit - Migrate your Data to SAP S_4HANA.pdf
subbulokam
 
SAP Cloud Platform - The Business Platform for the Intelligent Enterprise
SAP Cloud Platform - The Business Platform for the Intelligent EnterpriseSAP Cloud Platform - The Business Platform for the Intelligent Enterprise
SAP Cloud Platform - The Business Platform for the Intelligent Enterprise
SAP Cloud Platform
 
SAP BTP ABAP Environment Series
SAP BTP ABAP Environment SeriesSAP BTP ABAP Environment Series
SAP BTP ABAP Environment Series
Pavan Golesar
 
Chapter 01 user exits
Chapter 01 user exitsChapter 01 user exits
Chapter 01 user exitsKranthi Kumar
 
User exits
User exitsUser exits
User exits
anilkv29
 
SAP System copy
SAP System copySAP System copy
SAP System copy
ashish_bbd
 
Introducing enhancement framework.doc
Introducing enhancement framework.docIntroducing enhancement framework.doc
Introducing enhancement framework.docKranthi Kumar
 
Workbench and customising request
Workbench and customising requestWorkbench and customising request
Workbench and customising request
lakshmi rajkumar
 
Decommissioning with cclm in solution manager sp12
Decommissioning with cclm in solution manager sp12Decommissioning with cclm in solution manager sp12
Decommissioning with cclm in solution manager sp12
Felix Cid Vera
 
Sap fiori tutorial
Sap fiori tutorialSap fiori tutorial
Sap fiori tutorial
Nagendra Babu
 
BADI IMPLEMENTATION.pdf
BADI IMPLEMENTATION.pdfBADI IMPLEMENTATION.pdf
BADI IMPLEMENTATION.pdf
ssuser08365f
 
Introduction to sap
Introduction to sapIntroduction to sap
Introduction to sap
ReshmaGovindan
 
SAP Fiori ppt
SAP Fiori pptSAP Fiori ppt
SAP Fiori ppt
Pushkar Vinchurkar
 
SAP ABAP - Needed Notes
SAP   ABAP - Needed NotesSAP   ABAP - Needed Notes
SAP ABAP - Needed Notes
Akash Bhavsar
 
SAP ABAP CONSULTANT CV
SAP ABAP CONSULTANT CVSAP ABAP CONSULTANT CV
SAP ABAP CONSULTANT CVGini Androse
 
Sap enhancement packages
Sap enhancement packagesSap enhancement packages
Sap enhancement packages
Joyce Maina
 
Sap overview
Sap overviewSap overview
Sap overview
DIVAKAR SINGH
 
Design Patterns (Examples in .NET)
Design Patterns (Examples in .NET)Design Patterns (Examples in .NET)
Design Patterns (Examples in .NET)
Aniruddha Chakrabarti
 
Enhancement framework the new way to enhance your abap systems
Enhancement framework   the new way to enhance your abap systemsEnhancement framework   the new way to enhance your abap systems
Enhancement framework the new way to enhance your abap systemsKranthi Kumar
 

What's hot (20)

SAP S_4HANA Migration Cockpit - Migrate your Data to SAP S_4HANA.pdf
SAP S_4HANA Migration Cockpit - Migrate your Data to SAP S_4HANA.pdfSAP S_4HANA Migration Cockpit - Migrate your Data to SAP S_4HANA.pdf
SAP S_4HANA Migration Cockpit - Migrate your Data to SAP S_4HANA.pdf
 
SAP Cloud Platform - The Business Platform for the Intelligent Enterprise
SAP Cloud Platform - The Business Platform for the Intelligent EnterpriseSAP Cloud Platform - The Business Platform for the Intelligent Enterprise
SAP Cloud Platform - The Business Platform for the Intelligent Enterprise
 
SAP BTP ABAP Environment Series
SAP BTP ABAP Environment SeriesSAP BTP ABAP Environment Series
SAP BTP ABAP Environment Series
 
Chapter 01 user exits
Chapter 01 user exitsChapter 01 user exits
Chapter 01 user exits
 
Badi document
Badi documentBadi document
Badi document
 
User exits
User exitsUser exits
User exits
 
SAP System copy
SAP System copySAP System copy
SAP System copy
 
Introducing enhancement framework.doc
Introducing enhancement framework.docIntroducing enhancement framework.doc
Introducing enhancement framework.doc
 
Workbench and customising request
Workbench and customising requestWorkbench and customising request
Workbench and customising request
 
Decommissioning with cclm in solution manager sp12
Decommissioning with cclm in solution manager sp12Decommissioning with cclm in solution manager sp12
Decommissioning with cclm in solution manager sp12
 
Sap fiori tutorial
Sap fiori tutorialSap fiori tutorial
Sap fiori tutorial
 
BADI IMPLEMENTATION.pdf
BADI IMPLEMENTATION.pdfBADI IMPLEMENTATION.pdf
BADI IMPLEMENTATION.pdf
 
Introduction to sap
Introduction to sapIntroduction to sap
Introduction to sap
 
SAP Fiori ppt
SAP Fiori pptSAP Fiori ppt
SAP Fiori ppt
 
SAP ABAP - Needed Notes
SAP   ABAP - Needed NotesSAP   ABAP - Needed Notes
SAP ABAP - Needed Notes
 
SAP ABAP CONSULTANT CV
SAP ABAP CONSULTANT CVSAP ABAP CONSULTANT CV
SAP ABAP CONSULTANT CV
 
Sap enhancement packages
Sap enhancement packagesSap enhancement packages
Sap enhancement packages
 
Sap overview
Sap overviewSap overview
Sap overview
 
Design Patterns (Examples in .NET)
Design Patterns (Examples in .NET)Design Patterns (Examples in .NET)
Design Patterns (Examples in .NET)
 
Enhancement framework the new way to enhance your abap systems
Enhancement framework   the new way to enhance your abap systemsEnhancement framework   the new way to enhance your abap systems
Enhancement framework the new way to enhance your abap systems
 

Similar to Zebra -bar one label printing

Ds white papers_caa_radebyexample
Ds white papers_caa_radebyexampleDs white papers_caa_radebyexample
Ds white papers_caa_radebyexample
Trần Đức
 
Dynamic variant creation
Dynamic variant creationDynamic variant creation
Dynamic variant creation
young moon woo
 
IBM Rational Rhapsody 8.4 install guide (including Cygwin and obtaining an ev...
IBM Rational Rhapsody 8.4 install guide (including Cygwin and obtaining an ev...IBM Rational Rhapsody 8.4 install guide (including Cygwin and obtaining an ev...
IBM Rational Rhapsody 8.4 install guide (including Cygwin and obtaining an ev...
Fraser Chadburn
 
Let start with GUIXT
Let start with GUIXTLet start with GUIXT
Let start with GUIXT
Kang YAyan
 
A step by-step guide on i doc-ale between two sap servers
A step by-step guide on i doc-ale between two sap serversA step by-step guide on i doc-ale between two sap servers
A step by-step guide on i doc-ale between two sap servers
krishna RK
 
Bar tender manual
Bar tender manualBar tender manual
Bar tender manual
Angelica Martins
 
Interfacing sap - BDC
Interfacing sap - BDC Interfacing sap - BDC
Interfacing sap - BDC
Syam Sasi
 
Version management of abap programs
Version management of abap programsVersion management of abap programs
Version management of abap programs
icatalysts buddy
 
How to write a routine for 0 calday in infopackage selection
How to write a routine for 0 calday in infopackage selectionHow to write a routine for 0 calday in infopackage selection
How to write a routine for 0 calday in infopackage selection
Valko Arbalov
 
ASUG Chicago Chapter SAP Prod Barcoding PPT_Jun2023 b.pdf
ASUG Chicago Chapter SAP Prod Barcoding PPT_Jun2023 b.pdfASUG Chicago Chapter SAP Prod Barcoding PPT_Jun2023 b.pdf
ASUG Chicago Chapter SAP Prod Barcoding PPT_Jun2023 b.pdf
ssuser196b2d1
 
Abap for functional consultants
Abap for functional consultantsAbap for functional consultants
Abap for functional consultants
Mohammad Mousavi
 
SAP Quickviewer
SAP QuickviewerSAP Quickviewer
SAP Quickviewer
otchmarz
 
Bpc 10.0 NW Mass User Management tool
Bpc 10.0 NW Mass User Management toolBpc 10.0 NW Mass User Management tool
Bpc 10.0 NW Mass User Management tool
Shanmugam Veerichetty
 
Rational Rhapsody 8.3 with Cygwin and iFixes (www.executablembse.com)
Rational Rhapsody 8.3 with Cygwin and iFixes (www.executablembse.com)Rational Rhapsody 8.3 with Cygwin and iFixes (www.executablembse.com)
Rational Rhapsody 8.3 with Cygwin and iFixes (www.executablembse.com)
Fraser Chadburn
 
Sap basis installation on win nt oracle 4.6d
Sap basis installation on win nt oracle 4.6dSap basis installation on win nt oracle 4.6d
Sap basis installation on win nt oracle 4.6d
FelipeHernndez75
 
IBM Rational Rhapsody 8.3.1 install guide with Cygwin for Executable MBSE
IBM Rational Rhapsody 8.3.1 install guide with Cygwin for Executable MBSEIBM Rational Rhapsody 8.3.1 install guide with Cygwin for Executable MBSE
IBM Rational Rhapsody 8.3.1 install guide with Cygwin for Executable MBSE
Fraser Chadburn
 
Backup%20 domain%20controller%20(bdc)%20step by-step(1)
Backup%20 domain%20controller%20(bdc)%20step by-step(1)Backup%20 domain%20controller%20(bdc)%20step by-step(1)
Backup%20 domain%20controller%20(bdc)%20step by-step(1)Srinivas Dukka
 
Proyecto de microcontroladores
Proyecto de microcontroladoresProyecto de microcontroladores
Proyecto de microcontroladores
Carlos Molina
 
Sas base programmer
Sas base programmerSas base programmer
Sas base programmer
Aspire Techsoft Academy
 
Installing Rational Rhapsody Designer 8.2 or 8.2.1 for Executable MBSE
Installing Rational Rhapsody Designer 8.2 or 8.2.1 for Executable MBSEInstalling Rational Rhapsody Designer 8.2 or 8.2.1 for Executable MBSE
Installing Rational Rhapsody Designer 8.2 or 8.2.1 for Executable MBSE
Fraser Chadburn
 

Similar to Zebra -bar one label printing (20)

Ds white papers_caa_radebyexample
Ds white papers_caa_radebyexampleDs white papers_caa_radebyexample
Ds white papers_caa_radebyexample
 
Dynamic variant creation
Dynamic variant creationDynamic variant creation
Dynamic variant creation
 
IBM Rational Rhapsody 8.4 install guide (including Cygwin and obtaining an ev...
IBM Rational Rhapsody 8.4 install guide (including Cygwin and obtaining an ev...IBM Rational Rhapsody 8.4 install guide (including Cygwin and obtaining an ev...
IBM Rational Rhapsody 8.4 install guide (including Cygwin and obtaining an ev...
 
Let start with GUIXT
Let start with GUIXTLet start with GUIXT
Let start with GUIXT
 
A step by-step guide on i doc-ale between two sap servers
A step by-step guide on i doc-ale between two sap serversA step by-step guide on i doc-ale between two sap servers
A step by-step guide on i doc-ale between two sap servers
 
Bar tender manual
Bar tender manualBar tender manual
Bar tender manual
 
Interfacing sap - BDC
Interfacing sap - BDC Interfacing sap - BDC
Interfacing sap - BDC
 
Version management of abap programs
Version management of abap programsVersion management of abap programs
Version management of abap programs
 
How to write a routine for 0 calday in infopackage selection
How to write a routine for 0 calday in infopackage selectionHow to write a routine for 0 calday in infopackage selection
How to write a routine for 0 calday in infopackage selection
 
ASUG Chicago Chapter SAP Prod Barcoding PPT_Jun2023 b.pdf
ASUG Chicago Chapter SAP Prod Barcoding PPT_Jun2023 b.pdfASUG Chicago Chapter SAP Prod Barcoding PPT_Jun2023 b.pdf
ASUG Chicago Chapter SAP Prod Barcoding PPT_Jun2023 b.pdf
 
Abap for functional consultants
Abap for functional consultantsAbap for functional consultants
Abap for functional consultants
 
SAP Quickviewer
SAP QuickviewerSAP Quickviewer
SAP Quickviewer
 
Bpc 10.0 NW Mass User Management tool
Bpc 10.0 NW Mass User Management toolBpc 10.0 NW Mass User Management tool
Bpc 10.0 NW Mass User Management tool
 
Rational Rhapsody 8.3 with Cygwin and iFixes (www.executablembse.com)
Rational Rhapsody 8.3 with Cygwin and iFixes (www.executablembse.com)Rational Rhapsody 8.3 with Cygwin and iFixes (www.executablembse.com)
Rational Rhapsody 8.3 with Cygwin and iFixes (www.executablembse.com)
 
Sap basis installation on win nt oracle 4.6d
Sap basis installation on win nt oracle 4.6dSap basis installation on win nt oracle 4.6d
Sap basis installation on win nt oracle 4.6d
 
IBM Rational Rhapsody 8.3.1 install guide with Cygwin for Executable MBSE
IBM Rational Rhapsody 8.3.1 install guide with Cygwin for Executable MBSEIBM Rational Rhapsody 8.3.1 install guide with Cygwin for Executable MBSE
IBM Rational Rhapsody 8.3.1 install guide with Cygwin for Executable MBSE
 
Backup%20 domain%20controller%20(bdc)%20step by-step(1)
Backup%20 domain%20controller%20(bdc)%20step by-step(1)Backup%20 domain%20controller%20(bdc)%20step by-step(1)
Backup%20 domain%20controller%20(bdc)%20step by-step(1)
 
Proyecto de microcontroladores
Proyecto de microcontroladoresProyecto de microcontroladores
Proyecto de microcontroladores
 
Sas base programmer
Sas base programmerSas base programmer
Sas base programmer
 
Installing Rational Rhapsody Designer 8.2 or 8.2.1 for Executable MBSE
Installing Rational Rhapsody Designer 8.2 or 8.2.1 for Executable MBSEInstalling Rational Rhapsody Designer 8.2 or 8.2.1 for Executable MBSE
Installing Rational Rhapsody Designer 8.2 or 8.2.1 for Executable MBSE
 

Recently uploaded

GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
sonjaschweigert1
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
Octavian Nadolu
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Zilliz
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
ControlCase
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
DianaGray10
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
Pixlogix Infotech
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
Pierluigi Pugliese
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
Alpen-Adria-Universität
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
SOFTTECHHUB
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Aggregage
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
Matthew Sinclair
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems S.M.S.A.
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
mikeeftimakis1
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
DianaGray10
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
Kumud Singh
 

Recently uploaded (20)

GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...A tale of scale & speed: How the US Navy is enabling software delivery from l...
A tale of scale & speed: How the US Navy is enabling software delivery from l...
 
Artificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopmentArtificial Intelligence for XMLDevelopment
Artificial Intelligence for XMLDevelopment
 
Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...Building RAG with self-deployed Milvus vector database and Snowpark Container...
Building RAG with self-deployed Milvus vector database and Snowpark Container...
 
PCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase TeamPCI PIN Basics Webinar from the Controlcase Team
PCI PIN Basics Webinar from the Controlcase Team
 
UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6UiPath Test Automation using UiPath Test Suite series, part 6
UiPath Test Automation using UiPath Test Suite series, part 6
 
20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website20 Comprehensive Checklist of Designing and Developing a Website
20 Comprehensive Checklist of Designing and Developing a Website
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024By Design, not by Accident - Agile Venture Bolzano 2024
By Design, not by Accident - Agile Venture Bolzano 2024
 
Video Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the FutureVideo Streaming: Then, Now, and in the Future
Video Streaming: Then, Now, and in the Future
 
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
Goodbye Windows 11: Make Way for Nitrux Linux 3.5.0!
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Generative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to ProductionGenerative AI Deep Dive: Advancing from Proof of Concept to Production
Generative AI Deep Dive: Advancing from Proof of Concept to Production
 
20240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 202420240607 QFM018 Elixir Reading List May 2024
20240607 QFM018 Elixir Reading List May 2024
 
Uni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdfUni Systems Copilot event_05062024_C.Vlachos.pdf
Uni Systems Copilot event_05062024_C.Vlachos.pdf
 
Introduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - CybersecurityIntroduction to CHERI technology - Cybersecurity
Introduction to CHERI technology - Cybersecurity
 
UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5UiPath Test Automation using UiPath Test Suite series, part 5
UiPath Test Automation using UiPath Test Suite series, part 5
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
Mind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AIMind map of terminologies used in context of Generative AI
Mind map of terminologies used in context of Generative AI
 

Zebra -bar one label printing

  • 1. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 1 Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script. Applies to: ABAP. For more information, visit the ABAP homepage. Summary: This Article is intended for all those Abapers who are interested in Label Printing through Sap-Scripts. It explains how to use. The scripts, the software needed and all other relevant requirements in detail. The last part explains the major concern in a Label that is adjusting the coordinates. Author: Daljeet Singh Kohli Company: Infosys Technologies limited Created on: 12 August 2010 Author Bio Daljeet Singh Kohli works for Infosys Technologies Limited on ABAP module of SAP.
  • 2. Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 2 Table of Content Overview:......................................................................................................................................................3 Activities .......................................................................................................................................................3 Select fonts for the text fields: ....................................................................................................................3 Mandatory Installation ...................................................................................................................................3 I) Installation of SAP R/3 Zebra Device Types and Codepages ..................................................................3 1.1) Install a Zebra Codepage (S9162.CPA)................................................................................................................3 1.2) Install the Zebra Driver (ZLB_ZEB.PRI)................................................................................................................3 2) Using the SAP R/3 Zebra Device Types with Output devices / Print Queues ..........................................5 Barone .........................................................................................................................................................6 Converting the File of .LBL Format to .ITF Format....................................................................................10 Uploading labels from BAR-ONE into SAP R/3 Layout sets / forms..............................................................13 Creating the SAP-Script ..............................................................................................................................14 Learning ZPL Programming ........................................................................................................................15 Features..................................................................................................................................................15 Format Instructions .....................................................................................................................................15 Bar Codes:..................................................................................................................................................15 Sample ZPL explanation:.........................................................................................................................16 Code Generated from Bar-One software:.................................................................................................17 Interpretation of Code..............................................................................................................................17 How to Manage the Coordinates .................................................................................................................19 Related Content..........................................................................................................................................20 OSS Notes ..............................................................................................................................................20 Disclaimer and Liability Notice.....................................................................................................................21
  • 3. Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 3 Overview: IF You as an Abaper want to print labels (shipping or bar code labels) on a special printer as per the client requirement. You can create a label using an external design program which is in an otf format and then print it from a sap-script form.. Activities ... CREATE THE LABEL WITH A DESIGN PROGRAM: Use The Design Program Bar-One Tool For Sap R/3 Label Printing Of The Manufacturer Zebra. DEFINE THE R/3 FORM FIELDS: Variable Fields Are Those From Which Data Is To Be Fetched On Later , Hard coding And Other Fields Are Constants Download the Print File: Export the File with the Print Command From The Design . Program: As Shown In the diagrams Below . Select fonts for the text fields: Upload the Print File to the sap-script Form: Upload the print file to a sap-script standard text. 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. Create an Output Device: Define an output device for label printing. which depends on the configuration of client Mandatory Installation I) Installation of SAP R/3 Zebra Device Types and Codepages 1.1) Install a Zebra Codepage (S9162.CPA) Program RSTXCPAG is used to upload the codepage file into the SAP printing system. a) Type in the codepage, i.e. 9162, for Character set number field b) Select the File system: GUI field c) Select Upload (file-> R/3) option d) Select the Update/delete when uploading 1.2) Install the Zebra Driver (ZLB_ZEB.PRI) Program RSTXSCRP is used to upload the device type definition file into the SAP printing system. 1) Select the Device type option 2) Enter the device type, i.e. “ZLB_ZEB” for Object name 3) Type in “IMPORT” for Mode (EXPORT/IMPORT) 4) Select From/on frontend (or File system: GUI on older releases)
  • 4. Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 4 The pop-up dialog text box labeled “Import from a Local File” prompts for the device type definition file and its location.
  • 5. Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 5 2) Using the SAP R/3 Zebra Device Types with Output devices / Print Queues a) Initiate the Spool Administration program, SPAD. Select the Output DeviceOption. b) Press the Change icon. c) Allocate the Output Device name. You may also allocate a short name d) Select the Device Type, i.e. ZLB_ZEB e) Enter Location and Message if required f) Ensure Host spool access method is set as option F g) Type in __DEFAULT for Host printer h) Press the save icon Now SAP is ready to send print to your Zebra Label Printer.
  • 6. Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 6 Barone „BAR-ONE for R/3‟ is Label designing software, supplied by Zebra which supports variable text, barcode and graphics fields. The available data types are; Time, Date, Linked Field and R/3® Variable Field, are listed when creating any new field or editing any existing field. Once you save your template, File -> Create format for my SAP Business suite -> Include objects in the SAP-Script file If any permanent logo ->then choose only check option, Include Logos -> select filename and location. .ITF file is generated. After opening the bar one/zebra printer suit for my sap Click on create a new label. Then click on finish button.
  • 7. Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 7 We Get a Blank screen for creating a Label. Where we have options for text, barcode, rectangle, pictures etc….. 1).Text contains: fixed text, variable text, date and time fields. On clicking FIXED TEXT
  • 8. Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 8 And writing any fixed text like…….we get. And writing any Variable Text like……. we get. The variable is to be coded between &….&
  • 9. Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 9 This is what we get after inserting any variable text.. 2).Barcode contains all the same field as above. On clicking on fixed text we get Barcodes of Fixed Text. Similarly, we can do for the variable BARCODE. The above file is saved in an lbl format.
  • 10. Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 10 Converting the File of .LBL Format to .ITF Format Click on open recently used labels-select your label---finish. You get your previously created label, Click on export above and let the label get exported.
  • 11. Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 11 Click on NEXT. Next again…………
  • 12. Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 12 Give your location for saving it in itf format. Click on next and now click on cancel, You will get an ITF format layout. NOTE: Whenever you see the barcode and anything colored in red. That is an error. It says in most of the times that the variable has eluded from the given Area. Please Adjust it and it will be fine. And others like rectangle and pictures etc…… are there.
  • 13. Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 13 Which can be used……as explained above. Uploading labels from BAR-ONE into SAP R/3 Layout sets / forms 1) Create a standard text with transaction so10. 2) At the “Change Standard Text: Request”, select Text->Upload from the main menu. 3) Select the ITF and press the Transfer button. 4) A pop-up dialog text box labeled “Import ITF file” prompts for ITF File and its location. 5) Then press select icon 3 times and copy the text to the internal SAP clipboard. GOTO SO10 Transaction---create a new text---Text--Upload You will get the below screen….. Select ITF from it, and click on OK. You will get a Pop-Up for selecting the location of your itf file format, which is your BAR ONE Layout. Once you are done with this your code in SO10 looks something like this.
  • 14. Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 14 Creating the SAP-Script Important: While creating a new script, ensure that your margins are 0, Paper is DINA3. You may have problems with page breaks being inserted automatically and corrupt graphics if you do not use these setting. Note: Zebra printers do not need multiple windows. They only need a single “Main Window”. Now paste the copied clipboard in the main window text elements. Note: Do Not Use Any Other Sap-Script Commands Along With The ZPL Codes. Once the forms are activated, the labels are ready for printing. -------------
  • 15. Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 15 Learning ZPL Programming 1). ZPL ii commands sent to a zebra printer helps you in creating a variety of labels from the simple to the very complex ones. 2).The Labels can be a Combination of Text, Variables Constants Bar Codes and Graphics. 3). Through Zpl-2 Commands, We Can Print Fields in Horizontal Orientation and Can Be Rotated 90,180,270 Degree Clock-Wise Features As ZPL contains two-character mnemonic code and printable characters, it can be programmed in printable ascii characters as well. The use of escape sequences or control codes is not permitted types of instruction in ZPL Format Instructions Control Instructions Format Instructions Format instructions are the blueprint of a label. These instructions define label length, field origin, type of field, field data, and other information. Format instructions are always receded by the caret (^) character. E.g. ) ^LH (Label Home) ^LL (Label Length) ^LR (Label Reverse) ^LS (Label Shift) ^JM (Set Dots/Millimeter) ^PM (Mirror Image) ^PO (Print Orientation) ^PF (Slew Dot Rows) Control Instructions Control instructions are usually preceded by a tilde (~) character. In most cases, they cause the printer to take a specific action immediately, such as clearing the memory or feeding a blank label. E.g. ) ~WC – is used to print a configuration label. Bar Codes: Zebra printers can print the following kinds of bar codes: ANSI Codabar CODABLOCK Data Matrix Code 11 Code 39 Code 49 Code 93 Code 128 (subsets A, B, and C) EAN-8 EAN-13 Industrial 2 of 5 Interleaved 2 of 5 LOGMARS MSI PDF417 UPS Maxi code Plessey Post Net Standard 2 of 5 UPC-A UPC-E UPC/EAN Extensions Micro-PDF417 QR Code ZPL II Object Names and Extensions
  • 16. Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 16 Zebra printer can store objects in the following format and can refer to it later, .ZPL ZPL II label format (^DF or ^XF) .FNT fonts in Zebra format (~DB, ~DS, or ^XA) .GRF Zebra bitmap format (~DG, ^IS, ^IL, ^XG or ^IM) Referring to an object ~DG Download Graphic Image ^XG Recall Graphic Image ^IS Store format as a graphic image ^IL Load Image ^IM Move Image ^DF Store ZPL II format as text ^XF Recall ZPL II format ^ID Image Delete ^HW Host Directory List ^WD Print Directory ~DB Download Bitmap ~DS Download Scalable Font Sample ZPL explanation: The below code will give u a picture of interpretation of ZPL code for Fixed Text Variable Bar Code
  • 17. Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 17 Code Generated from Bar-One software: ^XA ^DFBOK^FS ^PRC ^LH0,0^FS ^LL609 ^BY3,3.0^FO99,344 ^B3N,N,100,Y,N^FR^FN999^FS ^FO192,129^A0N,147,129^CI13^FR ^FDInfosys^FS ^FO11,13^GB791,586,4^FS ^XZ ^XA ^XFBOK.ZPL ^FN999^FD&ITB-BAR&^FS ^PQ1,0,1,N ^XZ ^FX End of job Interpretation of Code ^XA [^XA - Indicates start of label format.] ^DFBOK^FS [^DF – Download a format ] [BOK – actual name of .ZPL file] [^FS - End of field data.] ^PRC [^PR – print at rate of C (101.6 mm/sec) ] ^LH0,0^FS [^LH - Sets label home position at the upper left corner of the label.] [^FS - End of field data.] ^LL609 [^LL - Sets label length to 609 dots rows along the Y-axis.] ^BY3,3.0^FO99,344^B3N,N,100,Y,N^FR^FN999^FS [^BY – Barcode field with ratio 3 and height 3.0 ] [^FO - Set field origin relative to label home.] [^B3 – Barcode type Code39 with normal orientation and readable value below] [^FR - Set field (box for serial numbers) to be reverse print as black.]
  • 18. Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 18 [^FN - Number the data fields] [999 – referring BOK.ZPL‟s variable from SAP R/3 ITAB-BAR] [^FS - End of field data.] ^FO192,129^A0N,147^CI13^FDInfosys^FS FOR 147^CL13 USE 23,45^FH [^FO - Set field origin relative to label home.] [^A0 - Select default font .0., normal orientation, character height of 147 dots, standard width.] [^CI – Change to International Font 13] [^FD - Start of field data.] [Infosys – actual data] [^FS - End of field data.] ^FO11,13^GB791,586,4^FS [^FO - Set field origin relative to label home.] [^GB – Draw a box with 791 as width and 586 as depth with 4 as width.] [^FS - End of field data.] ^XZ [^XZ - Indicates end of label format.] ^XA [^XA - Indicates start of label format.] ^XFBOK.ZPL^FN999^FD&ITB-BAR&^FS [^XF – Stored format to merge with variable data.] [BOK.ZPL – name of stored format.] [^FN - Number the data fields] [^FD - Start of field data.] [&ITB-BAR& - variable from SAP R/3] [^FS - End of field data.] ^PQ1 [^PQ1 - Set print quantity of 1 label.] ^XZ [^XZ - Indicates end of label format.]
  • 19. Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 19 How to Manage the Coordinates Consider the variable ^FN this represents the field number or the number of data field. Now, consider the line statement: ^FT16,84^AON,16,24^FH^FN2^FS. FT : Represents field postions 16 : x coordinate of field number 2 84 : y coordinate of field number 2 A : Represents The Font Size Of The Character. 0N : Default Zero And Normal. 16 : Hieght Of Character 84 : Width Of The Character. Similarly, for any text field we will have the line statement as: ^FT17,121^AON12,31^FH^FDINFOSYS^FS FT :Represents field postions A :Represents the font size of the character. INFOSYS is the hardcoded text For creating BOXES we have a command ^GB which means GRAPHICAL BOXES. ^FO0,3^GB606,209,1^FS FO :Represents field origin position 0,3 :Represents x and y postions respectively. GB :Represents Graphical Boxes.With Dimensions Width Hieght And thickness. **************
  • 20. Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 20 Related Content http://www.servopack.de/Files/HB/ZPLcommands.pdf http://www.servopack.de/Files/HB/ZPLbasics.pdf http://www.zebra.com OSS Notes 179534 - Label printing with Zebra printers (SAPscript) 315894 - Label printing on thermal (transfer) printers 43423 - Modifying a device type for printing labels 8929 - List of supported printers/device types http://www.servopack.de/Files/HB/ZPLbasics.pdf http://www.zebra.com OSS Notes 179534 - Label printing with Zebra printers (SAP script) 315894 - Label printing on thermal (transfer) printers 43423 - Modifying a device type for printing labels 8929 - List of supported printers/device types
  • 21. Zebra/bar One Label Printing through Scripts and Adjusting the Coordinates VAI a SAP-Script. SAP COMMUNITY NETWORK SDN - sdn.sap.com | BPX - bpx.sap.com | BOC - boc.sap.com | UAC - uac.sap.com © 2010 SAP AG 21 Disclaimer and Liability Notice This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document.