New User? Sign Up  |  Sign In  |  Help
Barcode support and
tutorials from IDAutomation
and the community.
Click for the BBB Business Review of this Computers Hardware, Software & Services in Tampa FL
Resolved Questions

GS1-128 Separator after Fixed Length AI

We are a bit confused about fixed-length and variable-length GS1 AIs.

Our GS1-128 barcode should encode the following data:

(02)12345678910111(10)1234(37)25

When we scan the barcode (lower-ASCII enabled and in the Free Barcode ASCII Decoder), it scans as:

0212345678910111<GS>101234<GS>3725

From my understanding, I believe it should be:

0212345678910111101234<GS>3725

Here is the code we use:
(
if Not IsNull({@TUCTrim}) then
"~21202" &
Replace(Replace(ToText({@TUCTrim}),".00",""),",","")
) &
(
if Not IsNull({@LotBatchNo}) then
"~21210" &
{@LotBatchNo}
) &
(
if Not IsNull({TRANSPORT_PACKAGE_LABEL_REP.QUANTITY}) then
"~21237" &
Replace(Replace(ToText({TRANSPORT_PACKAGE_LABEL_REP.QUANTITY}),".00",""),",","")
)


If I change this:

if Not IsNull({@LotBatchNo}) then
"~21210" &
{@LotBatchNo}

To this:

if Not IsNull({@LotBatchNo}) then
"10" &
{@LotBatchNo}


The barcode text is no longer correct. Am I doing something wrong?

Operating System: Windows

Application: Crystal Reports

11-26-15     8.3 year(s) ago    

  Report Abuse

 

James

Best Answer

In general, GS1 stipulates that besides the leading Application Identifier (AI), the fixed-length AIs should come next (without parentheses or use tilde identifiers*), then the variable-length AIs go at the very end.

General GS1-128 Example:
This example is not accurate as to which AIs as variable or fixed-length. It serves as an example of encoding GS1-128 AIs.

AIs:
• 01 – fixed
• 02 – fixed
• 03 – variable

The above AIs are in bold:
• *Tilde Method: ~21201444025555~212036666
• *Parentheses Method: (01)444025555(03)6666

Review the above link and example, then pattern your data to match.

Applies to:
Code 128 Barcode Font Package
IDAutomation Barcode Font Encoders

When generating GS1 symbols, IDAutomation recommends testing the result with the Barcode Decoder App which parses out GS1 data to verify proper encoding.

Posted 8.3 year(s) ago

(0)
(0)
  Report Abuse
 
Find Interesting
 
Email to Others
 
Bookmark
 
Subscribe to Answer Alert
No comments yet.     Be the first to comment.
Other Answers (2)
The standard suggests variable-length AIs are to be at the end, with a special character (what the <GS> is) separating each variable-length AI onwards.

The human-readable text (HR) is supposed to read parentheses around each AI, whether or not it is variable or fixed, but this is just the text representation of the barcode, not what is actually encoded in the barcode itself.

We generally recommend that the HR be added as a separate text field (in your report interface) under the barcode.

Posted 8.3 year(s) ago

(0)
(0)
   Report Abuse
Unless I am reading the standard wrong - no parentheses would be needed at the (03) part in your example:

I think this should be correct (I may be reading the standard wrong):

~21201444025555036666

In addition, does that mean we need to create a different string to pass to the human-readable text? Most people would expect the human-readable text to look like this:

(01)444(02)5555(03)6666

Posted 8.3 year(s) ago

(0)
(0)
   Report Abuse
Email this question link to friends
You must enter an email address, if name is entered or vice-versa for each friend.
Friend #1 -
Friend #2 -
Friend #3 -
Friend #4 -
Friend #5 -
  Your comment on this question
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must starts with "http://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always starts with " http:// ")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 Characters are allowed. Current Count: 0
  Your comment on this answer
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allow you to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must start with "http://" or "https://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always start with "http://" or "https://")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 characters are allowed. Current Count: 0

You may answer and comment on any thread according to the Terms and Conditions.

 © Copyright 2021 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us
Training Videos on YouTube Join us on Google Plus Join us on LinkedIn Follow us on Twitter Like us on Facebook