Conclusion first: in an edi 940 945 warehouse shipping order setup, most failures are not transmission failures. They are field alignment failures. The 940 is the instruction a shipper or brand sends to the warehouse: ship this, to this address, this way, by this time. The 945 is the warehouse's answer after the fact: this is what actually shipped, on which carrier, under which tracking number. If those two messages disagree on quantity, unit, or line number, everything downstream — the 856 advance ship notice, invoicing, inventory deduction — inherits the error.
I have seen this exact pit three times, and all three times it started the same way: someone copied the 850 purchase order mapping, renamed it 940, and called it done. A 940 is not an 850. The 850 describes a commercial transaction between buyer and seller. The 940 describes a physical execution task inside a warehouse. Ship-to details, carrier and service level, pick requirements, whether partial shipment is allowed — the WMS acts on what the 940 says, and only on what it says. If the 940 is vague, the warehouse either guesses or stops.
What the 940 decides, what the 945 proves
The 940 carries the order reference, the ship-to party, line items with quantities and units, and the requested carrier and ship-by time. The 945 carries the result: quantity actually shipped per line, the carrier actually used, tracking numbers, carton count, weight, and the actual ship date and time.
The mistake I keep finding is treating the 945 as an echo of the 940. It is not an echo; it is evidence. The moment your mapping simply mirrors requested quantities into the confirmation, you have built a system that reports what was asked instead of what happened. Reconciliation will pass right up until a human opens a carton.
The 856 adds another layer of confusion. Both the 856 and the 945 say "it shipped," but they serve different readers. The 856 describes packing structure so the receiver can plan the inbound check. The 945 is what the shipper's system uses to deduct inventory and close the order. A correct 945 with a wrong 856 still gets you a receiving dispute. A correct 856 with a wrong 945 leaves inventory hanging open. They must both be generated from the same shipment event, not pulled from two different tables with two different update timings.
Two go-lives that went sideways
Case one: New Jersey, 2023, a home-goods 3PL I was helping onboard. The shipper sent 940 line items in cases — one line meant 10 cases of 24 units. The warehouse WMS held inventory in eaches. The interface conversion skipped the unit qualifier entirely and read "10" as 10 units. The pick was short by 230 units. Then the 945 went back reporting 10, the shipper's system read it in cases, and deducted 240 units from inventory. The next morning's cycle count was chaos and the floor stopped for half a day while we traced it. Nobody made a careless mistake at a scanner. The test orders used for validation happened to be single-unit items, so the unit mismatch never surfaced until the first real order.
Case two: Shenzhen, 2024, a cross-border warehouse with a partial shipment problem. A 940 asked for 50 units. Only 42 were available that day, so the warehouse shipped 42 and held 8 for replenishment. The 945 reported only the 42 shipped and said nothing about the balance. The shipper's system treated silence as completion and auto-closed the order. When the remaining 8 units shipped two days later, there was no open order to attach them to. Staff created a manual order, the tracking number never matched the customer notification, and the complaint that followed was the first anyone heard of it. One line on the go-live checklist — "how do we report a partial?" — would have prevented the whole chain.
The field alignment table I refuse to skip
| Checkpoint | In the 940 | In the 945 | What breaks if it drifts |
|---|---|---|---|
| Order reference | Unique shipper order number | Same number returned unchanged | Confirmation posts to the wrong order |
| Line number | Every line numbered | Actuals reported per same line number | Line-level shortages hide inside correct totals |
| Quantity and unit | Quantity plus unit (each/case) | Shipped quantity in the same unit | Inventory deduction off by a pack-size multiple |
| Unshipped balance | Partial shipment allowed or not | Balance quantity plus reason | System closes an incomplete order |
| Carrier and tracking | Requested carrier and service | Actual carrier and tracking number | Wrong service billed, delivery promise wrong |
| Cartons and weight | Usually not preset | Actual carton count and total weight | Freight estimates and month-end disputes |
| Ship timing | Latest ship-by time | Actual ship date and time | No evidence for service-level reviews |
Line numbers deserve emphasis. Plenty of mappings validate only at order level: totals match, release the message. But a five-line order can ship two units short on one line and two over on another and still total correctly. If the 945 does not carry line-level actuals, that error sails through and is discovered by the receiver with a carton open — which is the most expensive possible moment to discover it.
Acknowledgement timing and the duplicate trap
Beyond the 940/945 pair itself sits the functional acknowledgement, the receipt confirmation that says "your message arrived and parsed." It has to go back within the window your trading partner agreement specifies — check that document rather than assuming a number. During peak, I have watched warehouse interface queues back up so acknowledgements went out the next day. The shipper's system concluded the 940 never arrived and resent it. The warehouse received two identical 940s and picked the order twice.
The defence is not a careful operator eyeballing order numbers. It is idempotency at the interface layer: order reference plus sender identity as the duplicate key, with a hard block and an alert when a repeat arrives. Then split your monitoring into three intervals — 940 received to warehouse task created, task created to pick start, shipment complete to 945 delivered — and alert on each separately. When someone says "we never got the 945," the answer is usually that the confirmation is sitting in a queue while the freight left hours ago. Check queues before you accuse the floor.
The night-before checklist
- Run five real historical orders through the 940, never hand-made test data. Include a multi-line order, a full-case order, and one with a known shortage.
- Walk every line's quantity and unit against the WMS inventory unit, in the room, and write the conversion into the mapping document. Verbal agreements do not count.
- Stage a partial shipment: order 50, ship 42. Confirm the 945 reports both the shipped quantity and the open balance with a reason.
- Send the same 940 twice. If the system does not block the duplicate, you are not going live.
- Pick one shipped order at random and match the 945's carrier and tracking number against the physical label.
- Test the ugly path: a 940 containing an item code the warehouse does not carry. The system must reject it loudly. Silent drops are the worst failure mode in EDI.
- Confirm the 856 and the 945 are generated from the same shipment record. Two sources of truth will eventually disagree in public.
The counterintuitive call
Shippers often demand the fastest possible 945 — minutes after shipment. I push clients the other way: trigger the 945 on the carrier's first acceptance scan, not on label printing. A printed label is not a shipped order. In peak season, labels get printed for freight that misses the carrier cutoff and spends the night on the dock. If the 945 already fired at print time, the shipper's system shows "shipped," the customer watches a tracking number that does not move for a day, and the complaint volume is worse than if the confirmation had arrived a few honest hours later. In the 940/945 pair, accuracy beats speed every time, and speed is usually what go-live pressure sacrifices first.
One last operational note: version the 940/945 mapping document together with the trading partner agreement. When the shipper upgrades their system or the warehouse changes its WMS, rerun the whole checklist. Do not assume the old mapping survived. I have seen this pit three times, and every time the post-mortem started with the words "but nothing changed." Two hours of field checking the night before go-live is cheaper than two weeks of reconciliation arguments after it.
By Lin Xiao, WMS Implementation Consultant







