The GS1-128 barcode is an international coding standard for data representation in logistics environments. It was previously known as the EAN-128 barcode. This standard is used to encode commercial and logistics units along with their associated information in supply chains.

The GS1-128 follows a structure based on Application Identifiers (AI) which allow the information contained on the label to be classified. These identifiers are numerical prefixes that indicate the data they precede and its structure.

GS1-128 barcode construction in F&O Axazure
GS1-128 barcode construction in F&O Axazure

BarcodeEAN128 class

En Dynamics 365 Finance & Operations es posible codificar este estándar gracias a la clase BarcodeEAN128.

GS1-128 barcode construction in F&O Axazure

The class contains methods that allow you to create a GS1-128 barcode instance, add Application Identifiers, and encode and decode according to the standard.

GS1-128 barcode construction in F&O Axazure
GS1-128 barcode construction in F&O Axazure
GS1-128 barcode construction in F&O Axazure
GS1-128 barcode construction in F&O Axazure

Example of the construction of standard GS1-128 barcode

An example of constructing a GS1-128 barcode in X++ using the item (GTIN) and batch AIs would be as follows:

GS1-128 barcode construction in F&O Axazure
GS1-128 barcode construction in F&O Axazure

Important!
To get the barcode in human readable format used the barcodeStrHR method of the parent Barcode class..

GS1-128 barcode construction in F&O Axazure

The BarcodeEAN128 class has 36 Application Identifiers defined while the GS1-128 standard includes more than 80 AIs. For this reason, we may need to define additional AIs in a class extension.

GS1-128 barcode construction in F&O Axazure

After defining a new Application Indicator, it is necessary to code the method that adds it to the barcode.

GS1-128 barcode construction in F&O Axazure
GS1-128 barcode construction in F&O Axazure

Example of the construction of GS1-128 barcode with added AIs

Below is an example of a GS1-128 barcode created in X++ using AIs defined in the standard class for the item and lot and an AI defined in the class extension for the customer reference.

GS1-128 barcode construction in F&O Axazure
GS1-128 barcode construction in F&O Axazure

I hope you liked it and I hope you find it useful, see you next time!

About the Author: Adrián Camargo

GS1-128 barcode construction in F&O Axazure
D365FO TECH

Do you want to share?