EDI 947 warehouse inventory adjustment advice: W15, W19 and reason codes
An EDI 947 is a warehouse inventory adjustment advice. A warehouse, such as a 3PL, sends it to the owner of the goods to say that a quantity or status in the inventory records has changed. If your 3PL tells you about damaged pallets or count corrections by email, the 947 is the structured message built for that job.
What is an EDI 947?
Stedi’s 947 reference says the transaction set “can be used to inform a warehouse/depositor of a quantity or status change to inventory records.” It also covers internal adjustments between a warehouse and a depositor. Stedi lists it as a Draft Standard for Trial Use in X12 release 4010.
Orderful’s 947 guide describes the common case: the 3PL sends it “whenever they need to report an inventory change that isn’t tied to a shipment or receipt.” It adds that some adjustments are standalone, meaning they are not tied to a sales order or transfer order. Its examples include damage in the warehouse, shrinkage, cycle count corrections, returns and reclassification between inventory categories.
Compare it with other messages:
- An 846 inventory advice reports what is on hand.
- A 940 warehouse shipping order tells the warehouse to ship.
- A 947 reports why a quantity or status moved, outside of normal shipping.
Which segments does a 947 need?
Per Stedi’s 4010 page, these are mandatory:
| Segment | What it does |
|---|---|
| ST | Starts the transaction set |
| W15 | Warehouse adjustment identification |
| N1 | Name of a party, in a header loop that repeats up to 100 times |
| W19 | Warehouse adjustment item detail, in a detail loop that can repeat |
Optional segments include N9 for references, NTE for notes, G62 for dates, AMT for a monetary amount and further name loops. Stedi lists SE, the trailer, as optional in its table. Real files normally close with SE, so check your partner’s guide.
What does the W15 segment carry?
The W15 segment, per Stedi’s W15 page, provides “identifying numbers and dates and other basic data” for the set.
- W15-01 is the date, in CCYYMMDD format. It is mandatory.
- W15-02 is an adjustment number assigned by the warehouse.
- W15-03 is an adjustment number assigned by the depositor.
- W15-04 to W15-06 are optional purpose, transaction type and action codes.
Stedi notes a syntax rule: if W15-02 or W15-03 is present, the other is required. Use the adjustment number to match the advice to your own records and to any questions you send back.
What does the W19 segment carry?
W19 is the detail. Per Stedi’s W19 page, it designates “those items that were adjusted.” Key elements:
- W19-01 is the quantity or status adjustment reason code. It is mandatory.
- W19-02 is the credit/debit quantity, the number of units. It is mandatory.
- W19-03 is the unit of measure. It is mandatory.
- W19-04 or W19-05/06 identify the product. Stedi says at least one of the UPC case code (W19-04) or the product ID pair is required.
- W19-09 is an optional warehouse lot number.
- W19-16 is an optional inventory transaction type code.
Stedi’s W19 page does not say how a decrease is shown. It names W19-02 “Credit/Debit Quantity”, so ask your partner how they show direction, for example by sign or by the reason code.
What do the reason codes mean?
The reason code is element 181. Stedi’s code list has 48 entries. A few that matter to order teams:
| Code | Meaning |
|---|---|
| 04 | Receipt Less Than Previously Reported |
| 05 | Product Put on Hold |
| 06 | Book Adjustment Decrease |
| 07 | Product Dumped or Destroyed |
| 54 | Receipt Greater Than Previously Reported |
| 55 | Product Taken Off Hold |
| 56 | Book Adjustment Increase |
| AA | Physical Count |
| AU | Damaged in Facility |
| AV | Damaged in Transit |
| AW | Product Recall |
| AY | Receipt Error |
| CR | Customer Returned Inventory |
The list also has codes for accounting errors, stock number changes, ownership changes, donations and samples. Some entries, such as the tank-bottom code BD, come from other industries and will rarely show up in a distribution flow.
W19-16 uses a separate list (element 529). It includes AD (Inventory Adjustment - Decrease), DM (Damaged), PA (Physical Inventory Adjustments), QU (Hold/Quarantined Inventory) and RC (Receipts).
Agree with your warehouse which ones you will use.
Source stedi.com
How can an order team review a 947?
- Match the adjustment number. Log W15-02 and W15-03 and tie them to your inventory record.
- Read the reason code. A physical count (AA) and a damaged-in-facility (AU) code lead to different next steps. One may need a recount, the other a claim.
- Check units. Compare W19-03 with your item master. A mismatch such as cases against each can create a false variance (practical advice, not a rule from the standard).
- Look at open orders. If a decrease touches stock already promised to customers, an exception is needed. A person decides whether to substitute, split or notify the customer.
- Review the pattern. Repeated adjustments on one item or one dock door point to a process problem.
Practical risks to watch for (these are not rules from the standard):
- Mixed reasons in one file. Orderful notes that in its NetSuite connector all lines must map to the same account, so a 3PL whose reason codes map to different accounts should split the 947 by code. Your own system may have a similar limit.
- No order reference. Orderful says item matching depends on an order reference, so lines without one may not match.
- Positive adjustments. Orderful’s connector disables them by default, since most 3PL adjustments are reductions. Decide how you want gains handled.
- Late advice. An adjustment sent days after the event can leave your available stock wrong in between.
- Acknowledgment confusion. A 997 only confirms the file arrived, not that the adjustment is right.
Frequently asked questions
Is a 947 the same as an 846?
No. An 846 reports a stock position. A 947 reports a change and the reason for it.
Who sends the 947?
Usually the warehouse or 3PL, to the owner of the goods. Stedi’s description also allows internal adjustments between the two.
Does every 3PL send 947s?
No. Some use portals or email. Ask your 3PL which messages it supports.
Where Dockmend fits
Dockmend is being built to help operations teams read warehouse adjustment messages, compare them with open orders and flag the ones a person needs to review. It is still being built, and we have not announced support for any specific EDI network or message. Start your free trial
This guide is general information, not legal or professional advice. EDI details vary by trading partner, version and implementation guide, so check your partner’s before you build or change anything.