Shared Top Border

Enterprise Resource
Planning Portal

 

Advertise | Founder BLOG

ERPGenie.COM ABAP Tips and Tricks Database

THE ultimate
ERP website

 

Forums | Vote for us |

Google    Other Search Options

Home arrow Tips and Tricks arrow SAPScript / Smart forms arrow Printing Barcode without Script
Printing Barcode without Script PDF Print E-mail
User Rating: / 1
PoorBest 
Written by zebra.com   
Friday, 02 March 2007
Here is typical ZPL code for a label without use of SAPScript.
Note the other example uses field numbers (^FN) to tie the data with field placeholders in the SAPScript.
Device type is usually LB_ZEB, unless you need to support CJK characters, then just use ASCIIPRI.
ASCIIPRI will usually work except some graphics will get messed up if codepage 850 isn't used (LB_ZB is 850).
This example has no graphics. concatenate '^FV' ctl-desc01 '^FS' into w_string.
write: / '^XA^PON^MMT'.
perform ut_write_offset_as_required.
write:
/ '^FO0,0^GB609,406,2,2^FS',
/ '^FO35,043^A0N,39,39' no-gap, zfs-matnr,
/ '^FO35,083^BY2,2.4,40^B3N,65,N,N,N' no-gap, zfs-matnr,
/ '^FO35,134^A0N,28,28^FDNOKIA CODE', ctl-desc01, '^FS',
/ '^FO35,164^BY2,3,40^B3N,65,N,N,N' no-gap, w_string,
/ '^FO35,214^A0N,28,28^FDNOKIA TYPE', ctl-kdmat, '^FS',
/ '^FO35,244^B3N,65,N,N,N' no-gap, zfs-kdmat,
/ '^FO35,294^A0N,28,28^FDSerial No.^FS',
/ '^FO235,294^A0N,28,28' no-gap, ser-serial_sole,
/ '^FO35,324^B3N,65,N,N,N' no-gap, ser-serial_sole,
/ '^FO00,374^A0N,20,20^FB609,1,,C^FD', ctl-datecode_ppppmmmyy,
'^FS',
/ '^FO010,374^A0N,16^FD', ldef-abbrev, '^FS'.
perform wrt_pq_number_of_copies using ctl-curr_lblcnt. "^PQ
ZPL Programming manual is available at zebra.com
 
< Prev   Next >

Google Search

Google Ads

Shared Bottom Border

Contact Us | Polls | Add URL | Contribute | Privacy | Terms | Feedback

Discussion Forum | BLOG | Consultants: Post your resume | Companies: Advertise on ERPGenie.COM | Post Job
Financials Consultant | Consultant Review | Gallia Consulting | Supply Chain Project | SAP Financials Forum
GenieHoldings.COM, Inc. | Genie Press | WorkflowGenie | ESAGenie | ERPTopSites | ABAP Tips and Tricks | SAP Solutions Database

EDIGenie | Searching Survivor