EDI 852 product activity data: what it reports and who uses it
An EDI 852 is a product activity data message. A distributor, warehouse or retailer sends it to a trading partner to say how much product sold, how much is on hand and how much is on order. It is transaction set 852 in the X12 standard. For a supplier, it is a way to see demand and stock at the next link in the chain without waiting for the next purchase order.
What is an EDI 852?
Stedi’s 852 reference for release 4010 says the set can be used “by a distributor, warehouse, or retailer to advise a trading partner” about product activity. It adds that this data “enables a trading partner to plan and ship, or propose inventory replenishment quantities.”
So the 852 flows from the party holding the stock to the party that supplies it. It is not an order. An 850 purchase order asks for goods. An 852 reports what happened to goods already in the channel.
Versions differ. This guide follows the 4010 release on Stedi’s page. Check the version and implementation guide your trading partner uses.
Which segments does an 852 need?
Per Stedi’s 4010 page, these are mandatory:
| Segment | What it does |
|---|---|
| ST | Starts the transaction set |
| XQ | Reporting date and action to be taken |
| LIN | Item identification, inside each item loop |
| ZA | Product activity reporting, inside the item loop |
| SE | Ends the transaction set |
The header can also carry optional XPO (preassigned purchase order numbers), N9 (reference numbers) and PER (a contact) segments. An N1 loop names the parties. Stedi notes the reporting location is required, given either by N101 code RL or by the SDQ segment, and the two are mutually exclusive.
Each item sits in a LIN loop that can repeat up to 999,999 times. Optional segments there include CTP (pricing), PO4 (item physical details), PAL (pallet information) and QTY. The CTT segment is optional in general, but Stedi says it is required when you send LIN loop data. CTT01 counts the LIN segments, and the hash total in CTT02 is not used.
- 1Header (ST, XQ)
- 2Reporting location (N1 or SDQ)
- 3Item (LIN)
- 4Activity and quantity (ZA)
- 5Totals (CTT, SE)
A simplified view of the 4010 structure. Partners' guides vary.
What do the XQ and ZA segments say?
The XQ segment, per Stedi’s XQ page, exists “to specify reporting date and action to be taken.” Its elements are:
- XQ01 is a transaction handling code. It is mandatory.
- XQ02 is a date in CCYYMMDD format. It is mandatory.
- XQ03 is an optional second date. For a date range, XQ02 is the start date and XQ03 is the end date.
The XQ01 code tells the receiver what to do with the data. Stedi’s code list for element 305 includes F (Plan and Submit Suggested Purchase Order(s)), G (Plan Order(s) and Ship Product) and H (Notification Only). That list has 23 codes in all. Agree with your partner which one they use and what you are expected to do about it.
The ZA segment, per Stedi’s ZA page, is for “activity details concerning product being reported.” Its elements are:
- ZA01 is the activity code. It is mandatory.
- ZA02 is the quantity, and ZA03 is its unit of measure. If one is present, the other is required.
- ZA04 and ZA05 are an optional date qualifier and date.
- ZA06 and ZA07 are an optional reference qualifier and reference.
Stedi’s LIN loop notes say a quantity for the item is required, given either in ZA02 or in the SDQ segment, which splits a quantity by destination.
What do the activity codes mean?
ZA01 is where the 852 gets its meaning. These come from Stedi’s list for element 859. The page lists 39 codes, and these are some of them:
| Code | Meaning |
|---|---|
| QS | Quantity Sold |
| QP | Quantity On Order, Not Yet Received |
| QT | Adjustment to Inventory Quantity |
| QU | Quantity Returned By Consumer |
| QA | Current Inventory Quantity Available for Shipment or Sale |
| QD | Additional Demand Quantity |
| QR | Quantity Received |
| QE | Ending Balance Quantity |
| QC | Quantity Committed |
| QF | Quantity In-bond |
Stedi describes QE as the closing inventory quantity for the current reporting period, and QC as quantity reserved for orders not yet shipped. QA is the quantity currently available to be sold or shipped.
One line can therefore carry several facts about the same item: sold this week, on hand now, on order and not yet received. Each fact is its own ZA segment.
How can an order team use an 852?
- Know the reporting window. Read XQ02 and XQ03. A weekly total and a daily total are not comparable.
- Match the item. Use the LIN identifiers to tie the data to your own item master. A mismatch here means the numbers go to the wrong product.
- Check the unit of measure. ZA03 may say cases when you plan in each.
- Compare sold and on hand. Sales rising while available stock falls is a reason for a person to look at replenishment.
- Follow the agreed action. If the handling code asks you to plan and submit suggested purchase orders, a person should review those suggestions before they go out.
- Keep the history. Store each report so you can see trends and settle questions later.
What goes wrong with 852 data?
These are practical risks, not rules from the standard:
- Partial feeds. Your partner reports only some locations or some items. Ask what is covered.
- Late files. A report that arrives days after the reporting date describes stock that has already moved.
- Different meaning of “available.” QA and QE are not the same number. Read the partner’s guide before you plan against either.
- Treating it as an order. Unless your agreement says so, an 852 is information. It does not commit anyone to buy.
- No acknowledgment. A 997 functional acknowledgment tells you whether the file was received and passed syntax checks. It says nothing about whether the counts are right.
Frequently asked questions
Is an 852 the same as an 846 inventory advice?
No. The 846 is an inventory advice, which covers stock availability. The 852 can report sales, receipts and returns as well as stock, from a distributor, warehouse or retailer to a trading partner. Partners sometimes use both, so follow their guide.
Who sends the 852?
Per Stedi, a distributor, warehouse or retailer sends it to a trading partner.
Can an 852 trigger purchase orders?
It can be used to plan and propose replenishment quantities, according to Stedi. Whether it triggers anything depends on the agreement between the partners.
Where Dockmend fits
Dockmend is being built to help operations teams read inventory and sales data from customers and flag unusual changes for a person 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.