Supply Chain Management Blogs by Members
Learn about SAP SCM software from firsthand experiences of community members. Share your own post and join the conversation about supply chain management.
cancel
Showing results for 
Search instead for 
Did you mean: 
tushar_shukla
Active Participant
6,010
Introduction 

In this blog post we will discuss how to configure and implement the EAN128 barcode Application Identifier mapping in EWM.

Application Identifiers (AIs) are prefixes used in barcodes to define the meaning and format of data attributes. 2D barcodes can hold multiple fields/data elements(e.g. Product, Batch, Serial no etc. ). AI are required to identify the data elements.

Reference: https://www.gs1.org/sites/default/files/docs/barcodes/GS1%20Application%20Identifiers.pdf

I would not go in details about EAN128 implementation in EWM,  please check blog EAN128/GS128 EWM details   to get basic understanding.

Business Scenario: During goods receipt of products, company wants to capture the Country of Origin(COO). 2D barcode contains the  COO along with other details like Product, Batch, quantity etc.

As per GS128 definition COO is mapped to AI 422 and its length is 3 char. Country code needs to be specified according to ISO 3166 standard.


https://www.gs1.org/docs/barcodes/GS1_General_Specifications.pdf

https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes

Solution:  AI 422 implementation is not provided by standard EWM.

Add the configuration for AI 422

Configuration:   Extended Warehouse Management > Mobile Data Entry > Maintain Bar Code Specification > Data Description

 


AI 422 Config


BADI Implementation for mapping :  Create an implementation for BADI  /SCWM/EX_RF_BARC_INIT  and add the AI 422 mapping code in method INIT of BADI implementation class.
METHOD /scwm/if_ex_rf_barc_init~init.
DATA: ls_ai_rel TYPE /scwm/e128_ai_relation.
ls_ai_rel-ai = '422'.
ls_ai_rel-aisub = '0'.
ls_ai_rel-aiusage = '3'.
ls_ai_rel-field = 'WELAN'.
ls_ai_rel-unitfield = ''.
INSERT ls_ai_rel INTO TABLE ct_ean128_ai_relation.
ENDMETHOD.

Testing : Let's test the sample barcode string with EWM EAN128 barcode decode Function module /SCWM/EAN128_DECODE

Barcode String : ]C110LOT23456789^]21SN1234567890123456^]422USA


Input Barcode String


Output:


Conclusion:

Country of Origin(COO) barcode data element is mapped to output structure field.

We can similarly map other fields for which standard EAN 128 is not available.

Thanks for reading, please feel free to leave any comments or questions below.

 

Regards

Tushar Shukla

 
1 Comment
Labels in this area