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.


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

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.




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:


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

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.

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


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.


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