Skip to Content
Technical Articles
Author's profile photo Tushar Shukla

Decode EAN 128 barcode with more than 64 Char in EWM

Introduction 

Barcodes play important role in supply chain and  they are used to encode information such as Batch no, Serial no, product numbers in  a visual, machine-readable form.

Warehouse workers use EWM RF transactions to perform warehouse operations like picking, packing, putaway, replenishment, Counting etc. The EWM RF framework supports EAN 128 bar code types for identification and verification purposes.   SAP EWM provides standard function modules to encode various information into single barcode string and decode barcode string containing information into individual fields such as Batch, Product no etc.

In this blog post we will discuss  – how to decode the barcode string having more than 64 characters in SAP EWM using standard EAN 128 decoding function module.

EAN128 Barcode Configuration

Extended Warehouse Management > Mobile Data Entry > Maintain Bar Code Specification

EAN128%20Setting

EAN128 Setting

 

SAP RF transactions use function module /SCWM/EAN128_DECODE to decode the barcode string.

Most of the RF transactions have barcode input field more than 100 char, but /SCWM/BARCODE length is restricted to 64 char, so if the target field is after 64 char, that part will be not decoded properly.

We will be using barcode below barcode string for testing:

]C110LOT23456789^]21SN1234567890123456^]1120010115220101^]00123456789123456789

Barcode AI mapping with Fields

AI Field  Desc.
00 EXIDV HU
10 CHARG Batch
11 HSDAT Date of Production
15 VFDAT Expiration Date
21 SERID Serial No

Possible solution : Build a wrapper FM with below logic and call the wrapper FM in the standard or custom RF transactions.

  1. Check the barcode string length
  2. If length is greater than 64 char, split the string into multiple part such that AI and data part is kept together.  Add the barcode prefix at the start of each line.
  3. Append the spilt parts to the IT_BARCODE import parameter and call the standard FM /SCWM/EAN128_DECODE

 

Let’s take the sample input string.

]C110LOT23456789^]21SN1234567890123456^]1120010115220101^]00123456789123456789

Barcode string is split into two parts and added to the IT_BARCODE string.

Output:

Conclusion: We could address the limitation of barcode decoding with the possible approach discussed in this blog.

Additional Information:

https://help.sap.com/viewer/3d97bec9bf1649099384bb8167df3cf2/9.5.0.2/en-US/4d4fa477c9c20c7ae10000000a42189c.html?q=ean%20128

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

For any RF related query, please post your query to EWM Radio Frequency forum.  https://answers.sap.com/tags/382876162660666448662353059935346

 

Regards

Tushar Shukla

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Nazeer Shaik
      Nazeer Shaik

      Thanks Tushar!

      Great article on EWM Barcode limitations and possibilities !