Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Barcode usage in SAP Scripts for Zebra/Printronix Printers

Former Member
0 Kudos

Hi all,

I am modifying the sapscript for Goods receipt slip. I have completed the layout and field displays according to the template structure.

Now i have to do Barcode equivalent for eg. Purchase order (EBELN) and what i did was :

i used Standard SAP Barcode Character Format (ZC128 - code 128 horizontal) with the Character Format tags like <BC>&MSEG-EBELN&</>

I have to generate Barcode with capability of Zebra/Printronix printers and the standardized printer model - Zebra 105SL and Printronix T5000.

so what should i do to achieve this..?(Barcode compatible to these printer models) or whether my approach is correct?

Iam open to your suggestions.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Karthik,

Yeah when you are using Zebra Printer for Printing Labels the Barcode will also be given in ITF files itself. You won't be doing anything else. You just have to past the ZPL code in the main window of the SAP Script.

Thanks & Regards,

YJR.

3 REPLIES 3

Former Member
0 Kudos

Karthik-

I believe the Zebra model to which you are sending the output is expecting a Zebra Print Language file (ZPL).

We use that model of printer, and we use a software package called Bar-One for R/3 which allows you to design a label with variable. You can then generate ZPL that can be placed in the SAPScript form. It looks something like this:

/:NEW-PAGE

/ ^XA

/ DFRETURN-2FS

/ ^PR2

/ LH0,0FS

/ ^LL609

/ ^MD0

/ ^PW812

/ ^MNY

/ LH0,0FS

/ FO380,358A0N,37,33CI13FRFN999FS

/ FO56,308A0N,37,33CI13FRFN998FS

/ FO328,127A0N,43,43CI13FRFB171,5,0,LFN997^FS

/ BY3,3.0FO169,23B3N,N,88,N,YFRFN997FS

/ FO492,242A0N,37,33CI13FRFN996FS

/ FO643,312A0N,37,33CI13FRFN995FS

/ FO607,438A0N,37,33CI13FRFN994FS

/ BY2,3.0FO518,488B3N,N,112,N,YFRFN994FS

/ FO184,188A0N,37,33CI13FRFB442,1,0,CFN993^FS

/ FO244,436A0N,37,33CI13FRFN992FS

/ BY2,3.0FO36,488B3N,N,108,N,YFRFN992FS

/ FO56,356A0N,37,33CI13FRFDDelivery Number:FS

/ FO286,242A0N,37,33CI13FRFDArticle Status:FS

/ FO50,434A0N,37,33CI13FRFDSales Order:FS

/ FO516,436A0N,37,33CI13FRFDItem:FS

/ FO16,282GB777,0,4^FS

/ ^XZ

/:NEW-PAGE

/ ^XA

/ ^XFRETURN-2.ZPL

/ FN999FD&LABEL-EBELN&^FS

/ FN998FD&LABEL-LFDAT&^FS

/ FN997FD&LABEL-MATNR&^FS

/ FN996FD&LABEL-MSTAE&^FS

/ FN995FD&LABEL-POSITION&^FS

/ FN994FD&LABEL-POSNR&^FS

/ FN993FD&LABEL-TXZ01&^FS

/ FN992FD&LABEL-VBELN&^FS

/ ^PQ1,0,1,N

/ ^XZ

/ ^FX End of job

Hope this helps in your quest.

Regards,

Mark S.

0 Kudos

Thanks for your valuable suggestions but iam still not sure how to do that.

For eg. I have the following fields to show up in barcodes:

In the Header Window:

1. Reciept Slip Nr. : <BC>&MKPF-MBLNR&&MSEG-ZEILE&</>

In the Main Window:

1. PO number : <BC>&MSEG-EBELN&</>

2. PO line : <BC>&MSEG-EBELP&</>

3. Storage Location : <BC>&MARC-LGPRO&</>

4. Material No. : <BC>&MSEG-MATNR&</>

so, now how to paste the ZPL code for header and main window and where to get this ZPL code (i mean the ITF files)

and i hope till now we never used Zebra printer and we dont have the software package (Bar-One).

Now is it possible for you to provide me the ZPL code equivalent for the header and main windows

and steps to implement it. Do i need to say my people to buy the sofware..?

Thanks in Advance.

Former Member
0 Kudos

Hi Karthik,

Yeah when you are using Zebra Printer for Printing Labels the Barcode will also be given in ITF files itself. You won't be doing anything else. You just have to past the ZPL code in the main window of the SAP Script.

Thanks & Regards,

YJR.