Source ownership and row grain
How to Read an EDI 940 Warehouse Shipping Order
Follow physical W05, LX, and W01 evidence before interpreting qualified warehouse structures.
Start with the envelope and exact ST01=940 identity, then locate W05. Resolve the supported release from the transaction's envelope context, preserve physical source order, and treat values as source evidence rather than proof of warehouse execution.
Read W05 as order identity
W05 carries the order-purpose code, depositor order number, purchase-order reference, and other qualified identity. Long identifiers and leading zeros are lexical strings. Do not convert 001234567890 into a number or trim it, because its representation may be meaningful. Tested generic release handling covers 004010, 004030, and 005010; an absent, conflicting, or unsupported release remains explicit.
Understand the exact Smart Mapping grain
An ITEM row represents one physical W01. An LX_ONLY row represents a physical LX interval that owns no W01. A SUMMARY row is a bounded fallback only when the transaction contains neither LX nor W01. This is not simply one row per LX. Provenance fields retain file, envelope, transaction, and source-index identity so multi-file and multi-transaction input cannot silently bleed context.
Keep product mechanisms distinct
The positional W0103 UPC case code has its own field. Qualified W01 product-ID pairs use qualifier/value companions and remain ordered occurrences. A qualifier can identify a buyer part, vendor part, UPC form, or another supported mechanism; the converter does not label every identifier as a universal UPC or SKU. Incomplete pairs and unknown qualifiers can be reported as generic data-quality findings.
Keep five quantity mechanisms separate
W01 item quantity, SDQ destination quantity, QTY qualified quantity, W20 packing observations, and W76 transaction-summary evidence are separate. Their lexical values and unit or qualifier context are preserved. They are not interchangeable shipment quantities and are not added into one total. In particular, W76 values are source-reported transaction-summary evidence, not independently verified totals.
Trace contextual collections
Review party, N9 reference, G62 date/time, contact, NTE note, G69 description, W66 transportation instruction, packing, equipment, route, rail, MAN marks, and quantity collections in source order. Smart Mapping serializes repeats as compact collection JSON. Raw Mode remains a separate physical segment view. Continue with the field reference, validation guide, export guide, or EDI Parser.