Blog

Mobile Barcode Scanning & GS1-128 Lot Tracking Architecture in Dynamics 365 Business Central WMS

High-velocity food, medical device, and 3PL warehouses cannot rely on manual keyboard entry for lot numbers and expiration dates. A single transposed digit during receiving breaks FEFO picking and FSMA 204 / FDA 21 CFR Part 11 traceability. Parsing GS1-128 Application Identifiers (AIs) directly inside mobile warehouse scanning workflows solves this at the receiving dock.

1. Anatomy of a GS1-128 Barcode in Business Central

A single GS1-128 scan encodes multiple data elements using standardized Application Identifiers: (01) GTIN-14 Item Identifier, (10) Lot/Batch Number, (17) Expiration Date (YYMMDD), and (37) Case Quantity. Instead of four separate manual scans, one trigger pull populates the entire Business Central Warehouse Receipt and Item Tracking Line.

2. AL Parser Pattern for GS1-128 Application Identifiers

procedure ParseGS1Barcode(RawScan: Text; var GTIN: Code[20]; var LotNo: Code[50]; var ExpDate: Date)
begin
    // Extract AI (01) 14-digit GTIN, AI (17) YYMMDD Expiry, and AI (10) Lot Number
    if StrPos(RawScan, '(01)') > 0 then
        GTIN := CopyStr(RawScan, StrPos(RawScan, '(01)') + 4, 14);
    if StrPos(RawScan, '(17)') > 0 then
        ExpDate := ParseYYMMDD(CopyStr(RawScan, StrPos(RawScan, '(17)') + 4, 6));
end;

3. Directed Put-Away & FEFO Pick Validation

Once parsed, Business Central Directed Put-Away assigns the pallet to a temperature-appropriate zone and bin ranking. During outbound wave picking, the RF handheld verifies both the Bin Code and the earliest-expiring Lot No., dramatically mitigating mis-picks and perishable shrinkage.

Modernize Your Warehouse Barcode & WMS Stack

Explore our complete Business Central WMS guide or schedule a warehouse architecture review.

Connect with Allgrow Technologies

100% Free · No Obligation

Need an Objective Architecture or Code Assessment?

Discuss your Dynamics 365, Business Central, or Power Platform environment in a free 30-minute session with our senior engineers.

Get a Free 30-Minute Review →
Chat on WhatsApp