Zebra Barcode Printer - Null handling script in ZPL

Development SAPscript/ Smartforms

Moderators: Snowy, thx4allthefish, YuriT, Gothmog

Post Reply
LIMSadmin77
Posts: 1
Joined: Mon Jul 08, 2013 4:45 pm

Zebra Barcode Printer - Null handling script in ZPL

Post by LIMSadmin77 » Mon Jul 08, 2013 4:55 pm

Hello,

I am hoping someone can help me write a script in Zebra Programming Language (ZPL) to help with null handling. I have set up variables on a label which pull in attribute values from the available tokens. When the attribute value is null, the label is automatically inserting 'N/V' onto the label.

I would prefer for the variable to appear as a blank field on the label when the attribute value is null in the system. Does anyone know if this is this possible? Is there a ZPL script I can use to display nothing on the label for a null value rather than an 'N/V'?

Thank you.

Rich
Posts: 7116
Joined: Thu Oct 31, 2002 4:47 pm
Location: Liverpool
Contact:

Re: Zebra Barcode Printer - Null handling script in ZPL

Post by Rich » Tue Jul 09, 2013 2:07 am

Whilst this is probably in the wrong forum, and I will probably be castigated for giving you a sensible answer in the GD, why not change any variable that has null values to space before you print the label ?
Regards

Rich

Image
Abap KC:http://www.richard-harper.me.uk/Kb
SFMDR:http://www.se37.com

VLozano
Posts: 5142
Joined: Mon Sep 13, 2004 8:17 am
Location: Idiocity
Contact:

Re: Zebra Barcode Printer - Null handling script in ZPL

Post by VLozano » Tue Jul 09, 2013 2:12 am

Rich, you are banned from the GD forum until your next visit here.

LIMSadmin77, there is a board for printing outputs (SAPScript, Smartforms and so).

Hobbes, stop eating my sandwitches, I told you they are not tuna sandwitches.
Tuly Idiots
Because we know we are part of the problem

Baz
Posts: 4746
Joined: Fri Nov 08, 2002 5:54 am
Location: He's out there! somewhere!!!!
Contact:

Re: Zebra Barcode Printer - Null handling script in ZPL

Post by Baz » Tue Jul 09, 2013 2:21 am

moved to SAPScript/Smartforms forum!
Baz

AsPiRiNg tUlY iDiOt Image

http://www.catb.org/~esr/faqs/smart-questions.html

Image

check out my Podcasts http://dj-baz.podomatic.com

Gothmog
Posts: 1952
Joined: Wed Sep 12, 2007 4:46 am
Location: Probably not home

Re: Zebra Barcode Printer - Null handling script in ZPL

Post by Gothmog » Tue Jul 09, 2013 2:27 am

How are you printing this label? I can't think of a SAP case that would fit your post - especially considering the null values.
68 74 74 70 3a 2f 2f 74 69 6e 79 75 72 6c 2e 63 6f 6d 2f 62 64 6f 37 6d 77 67

Rich
Posts: 7116
Joined: Thu Oct 31, 2002 4:47 pm
Location: Liverpool
Contact:

Re: Zebra Barcode Printer - Null handling script in ZPL

Post by Rich » Mon Aug 05, 2013 9:26 am

VLozano wrote:Rich, you are banned from the GD forum until your next visit here.

LIMSadmin77, there is a board for printing outputs (SAPScript, Smartforms and so).

Hobbes, stop eating my sandwitches, I told you they are not tuna sandwitches.
Doh!

And I missed the opportunity Vic.

Sandwitches are Women that cast spells with Sand in Brysons favourite place so I doubt that you would want to eat them any way.

Sandwiches are two bits of bread slapped around some sort of filling. (Crisps and Mayo is a good one).
Regards

Rich

Image
Abap KC:http://www.richard-harper.me.uk/Kb
SFMDR:http://www.se37.com

Post Reply