Skip to content
EDI 852 — EDI TransactionPublished Jun 23, 2026 · Updated Nov 4, 2026

EDI 852 Product Activity Data: Sell-Through and Replenishment Guide

EDI 852 Product Activity Data explained: XQ, LIN, ZA and SDQ segments, the activity codes for sold, on hand and on order, store-level examples, and how suppliers use it.

The EDI 852 is how a retailer tells a supplier what is actually selling, store by store. A purchase order tells you what the buyer wants to receive. The 852 tells you what consumers bought, what is left on the shelf and what is already on order, so you can see a stock-out coming before the next PO arrives, or spot a store sitting on product that is not moving.

This guide covers what the 852 reports, the segments and activity codes, two live examples (a weekly store-level report and a DC report), how suppliers use it for replenishment and vendor-managed inventory, and the mistakes that make 852 data misleading.

What Is an EDI 852?

An EDI 852 is the Product Activity Data transaction set defined by the ASC X12 standards body, used to send inventory, sales and other product activity information from one party to another, typically from a retailer or distributor to its supplier. It travels in functional group PD (the GS01 value).

Authoritative references for 852 work:

Who sends it? The buyer: a retailer reporting store and DC data, or a distributor reporting its own sales and stock of your products.

When is it sent? On a schedule set by the partner, most often weekly, sometimes daily. Each 852 covers the period in its XQ segment.

Why does it matter? It is the closest thing to point-of-sale data most suppliers get. Replenishment, VMI, forecasting and promotion analysis all run on it.

What the 852 Reports

Each item can carry several activity types, each a different number:

  • Quantity sold in the period: the sell-through.
  • Quantity on hand: stock at the store or DC at the end of the period.
  • Quantity on order: units on open purchase orders, not yet received.
  • Quantity received, returned, out of stock, transferred and others, where the retailer tracks them.

Which activities a retailer sends, and whether it reports by store, by DC or in total, is set out in its 852 guide.

Interactive Example: Weekly Sell-Through and On Hand by Store

A home goods retailer sends its weekly 852 for 26 October to 1 November. For each item, one ZA per activity (QS sold, QA on hand and available, QP on order) is followed by an SDQ that breaks the quantity out for stores 0012, 0027 and 0031. The stove sold 24 units across three stores with only 5 left, two stores at one or zero, and 30 on order.

Use the Plain English tab for a readable summary, or click any segment to break it down element by element.

Live exampleRetail BuyerEDI 852

852 Weekly Sell-Through and On Hand by Store

A retailer's weekly 852 for 26 Oct to 1 Nov: for each item, ZA QS (sold), QA (on hand and available) and QP (on order) activity, with per-store quantities for stores 0012, 0027 and 0031 in SDQ

Document
852 Product Activity Data
From / to
NORTHGATE → CEDARPEAK
Segments
30
Interchange date
Nov 2, 2026

Raw EDI (X12)

1
ISA*00* *00* *ZZ*NORTHGATE *ZZ*CEDARPEAK *261102*0400*U*00401*000852001*0*P*:~
2
GS*PD*NORTHGATE*CEDARPEAK*20261102*0400*852001*X*004010~
3
ST*852*0001~
4
XQ*H*20261026*20261101~
5
N9*IA*V-44710~
6
N1*BY*NORTHGATE HOME STORES*92*NGHS~
7
N1*SU*CEDAR PEAK OUTDOOR CO*92*V-44710~
8
LIN*1*UP*088123400204*VN*CP-TENT-2P~
9
ZA*QS~
10
SDQ*EA*92*0012*6*0027*4*0031*2~
11
ZA*QA~
12
SDQ*EA*92*0012*9*0027*3*0031*7~
13
ZA*QP~
14
SDQ*EA*92*0012*0*0027*6*0031*0~
15
LIN*2*UP*088123400211*VN*CP-STOVE-1~
16
ZA*QS~
17
SDQ*EA*92*0012*11*0027*8*0031*5~
18
ZA*QA~
19
SDQ*EA*92*0012*1*0027*0*0031*4~
20
ZA*QP~
21
SDQ*EA*92*0012*12*0027*12*0031*6~
22
LIN*3*UP*088123400228*VN*CP-PAD-RG~
23
ZA*QS~
24
SDQ*EA*92*0012*3*0027*0*0031*2~
25
ZA*QA~
26
SDQ*EA*92*0012*14*0027*12*0031*10~
27
CTT*3~
28
SE*26*0001~
29
GE*1*852001~
30
IEA*1*000852001~

Human-Readable

Interchange

Sender ID(ZZ)NORTHGATE
Receiver ID(ZZ)CEDARPEAK
Date261102
Time0400
Standards IDU
Version00401
Control Number000852001
Acknowledgment RequestedNo
UsageProduction
Included Groups (IEA01)1

Functional Group

Functional IDPDPD
SenderNORTHGATE
ReceiverCEDARPEAK
Date20261102
Time0400
Control Number852001
Agency CodeX
Version004010
Transactions1
Reported Transaction Count (GE01)1

Transaction 852

Product Activity Data
Transaction Type852
Control Number0001
Segments, ST to SE26
Count in SE0126 (matches)

Segment Detail

XQReporting Date/Action
XQ01Transaction Handling CodeH
XQ02Reporting Start Date20261026
XQ03Reporting End Date20261101
N9Reference Identification
N901Reference Identification QualifierIA
N902Reference IdentificationV-44710
N1Party Identification
N101Entity CodeBY
N102NameNORTHGATE HOME STORES
N103ID Qualifier92
N104ID CodeNGHS
N1Party Identification
N101Entity CodeSU
N102NameCEDAR PEAK OUTDOOR CO
N103ID Qualifier92
N104ID CodeV-44710
LINItem Identification
LIN01Assigned ID1
LIN02ID QualifierUP
LIN03Product ID088123400204
LIN04ID QualifierVN
LIN05Product IDCP-TENT-2P
ZAProduct Activity Reporting
ZA01Activity CodeQS
SDQDestination Quantity
SDQ01Unit of MeasureEA
SDQ02ID Code Qualifier92
SDQ03Location ID 10012
SDQ04Quantity 16
SDQ05Location ID 20027
SDQ06Quantity 24
SDQ07Location ID 30031
SDQ08Quantity 32
ZAProduct Activity Reporting
ZA01Activity CodeQA
SDQDestination Quantity
SDQ01Unit of MeasureEA
SDQ02ID Code Qualifier92
SDQ03Location ID 10012
SDQ04Quantity 19
SDQ05Location ID 20027
SDQ06Quantity 23
SDQ07Location ID 30031
SDQ08Quantity 37
ZAProduct Activity Reporting
ZA01Activity CodeQP
SDQDestination Quantity
SDQ01Unit of MeasureEA
SDQ02ID Code Qualifier92
SDQ03Location ID 10012
SDQ04Quantity 10
SDQ05Location ID 20027
SDQ06Quantity 26
SDQ07Location ID 30031
SDQ08Quantity 30
LINItem Identification
LIN01Assigned ID2
LIN02ID QualifierUP
LIN03Product ID088123400211
LIN04ID QualifierVN
LIN05Product IDCP-STOVE-1
ZAProduct Activity Reporting
ZA01Activity CodeQS
SDQDestination Quantity
SDQ01Unit of MeasureEA
SDQ02ID Code Qualifier92
SDQ03Location ID 10012
SDQ04Quantity 111
SDQ05Location ID 20027
SDQ06Quantity 28
SDQ07Location ID 30031
SDQ08Quantity 35
ZAProduct Activity Reporting
ZA01Activity CodeQA
SDQDestination Quantity
SDQ01Unit of MeasureEA
SDQ02ID Code Qualifier92
SDQ03Location ID 10012
SDQ04Quantity 11
SDQ05Location ID 20027
SDQ06Quantity 20
SDQ07Location ID 30031
SDQ08Quantity 34
ZAProduct Activity Reporting
ZA01Activity CodeQP
SDQDestination Quantity
SDQ01Unit of MeasureEA
SDQ02ID Code Qualifier92
SDQ03Location ID 10012
SDQ04Quantity 112
SDQ05Location ID 20027
SDQ06Quantity 212
SDQ07Location ID 30031
SDQ08Quantity 36
LINItem Identification
LIN01Assigned ID3
LIN02ID QualifierUP
LIN03Product ID088123400228
LIN04ID QualifierVN
LIN05Product IDCP-PAD-RG
ZAProduct Activity Reporting
ZA01Activity CodeQS
SDQDestination Quantity
SDQ01Unit of MeasureEA
SDQ02ID Code Qualifier92
SDQ03Location ID 10012
SDQ04Quantity 13
SDQ05Location ID 20027
SDQ06Quantity 20
SDQ07Location ID 30031
SDQ08Quantity 32
ZAProduct Activity Reporting
ZA01Activity CodeQA
SDQDestination Quantity
SDQ01Unit of MeasureEA
SDQ02ID Code Qualifier92
SDQ03Location ID 10012
SDQ04Quantity 114
SDQ05Location ID 20027
SDQ06Quantity 212
SDQ07Location ID 30031
SDQ08Quantity 310
CTTTransaction Totals
CTT01Line Item Count3
1 functional group1 transactionControl #000852001Valid

Interactive Example: Distribution Center Activity

The same retailer also reports its DC. Here the reporting location is in the header (N1*RL) and each quantity sits in ZA02 instead of an SDQ: units withdrawn to stores (QW), on hand (QA), on order (QP) and received (QR) for the week.

Live exampleRetail BuyerEDI 852

852 Distribution Center Activity Report

A DC-level 852 with the reporting location in N1 RL and quantities in ZA02: units withdrawn to stores (QW), on hand and available (QA), on order (QP) and received (QR) for the week

Document
852 Product Activity Data
From / to
NORTHGATE → CEDARPEAK
Segments
19
Interchange date
Nov 2, 2026

Raw EDI (X12)

1
ISA*00* *00* *ZZ*NORTHGATE *ZZ*CEDARPEAK *261102*0400*U*00401*000852002*0*P*:~
2
GS*PD*NORTHGATE*CEDARPEAK*20261102*0400*852002*X*004010~
3
ST*852*0002~
4
XQ*H*20261026*20261101~
5
N1*RL*NORTHGATE DC 6020*92*6020~
6
N4*COLUMBUS*OH*43217*US~
7
LIN*1*UP*088123400204*VN*CP-TENT-2P~
8
ZA*QW*96*EA~
9
ZA*QA*184*EA~
10
ZA*QP*240*EA~
11
ZA*QR*120*EA~
12
LIN*2*UP*088123400211*VN*CP-STOVE-1~
13
ZA*QW*210*EA~
14
ZA*QA*36*EA~
15
ZA*QP*480*EA~
16
CTT*2~
17
SE*15*0002~
18
GE*1*852002~
19
IEA*1*000852002~

Human-Readable

Interchange

Sender ID(ZZ)NORTHGATE
Receiver ID(ZZ)CEDARPEAK
Date261102
Time0400
Standards IDU
Version00401
Control Number000852002
Acknowledgment RequestedNo
UsageProduction
Included Groups (IEA01)1

Functional Group

Functional IDPDPD
SenderNORTHGATE
ReceiverCEDARPEAK
Date20261102
Time0400
Control Number852002
Agency CodeX
Version004010
Transactions1
Reported Transaction Count (GE01)1

Transaction 852

Product Activity Data
Transaction Type852
Control Number0002
Segments, ST to SE15
Count in SE0115 (matches)

Segment Detail

XQReporting Date/Action
XQ01Transaction Handling CodeH
XQ02Reporting Start Date20261026
XQ03Reporting End Date20261101
N1Party Identification
N101Entity CodeRL
N102NameNORTHGATE DC 6020
N103ID Qualifier92
N104ID Code6020
N4Geographic Location
N401CityCOLUMBUS
N402State/ProvinceOH
N403Postal Code43217
N404CountryUS
LINItem Identification
LIN01Assigned ID1
LIN02ID QualifierUP
LIN03Product ID088123400204
LIN04ID QualifierVN
LIN05Product IDCP-TENT-2P
ZAProduct Activity Reporting
ZA01Activity CodeQW
ZA02Quantity96
ZA03Unit of MeasureEA
ZAProduct Activity Reporting
ZA01Activity CodeQA
ZA02Quantity184
ZA03Unit of MeasureEA
ZAProduct Activity Reporting
ZA01Activity CodeQP
ZA02Quantity240
ZA03Unit of MeasureEA
ZAProduct Activity Reporting
ZA01Activity CodeQR
ZA02Quantity120
ZA03Unit of MeasureEA
LINItem Identification
LIN01Assigned ID2
LIN02ID QualifierUP
LIN03Product ID088123400211
LIN04ID QualifierVN
LIN05Product IDCP-STOVE-1
ZAProduct Activity Reporting
ZA01Activity CodeQW
ZA02Quantity210
ZA03Unit of MeasureEA
ZAProduct Activity Reporting
ZA01Activity CodeQA
ZA02Quantity36
ZA03Unit of MeasureEA
ZAProduct Activity Reporting
ZA01Activity CodeQP
ZA02Quantity480
ZA03Unit of MeasureEA
CTTTransaction Totals
CTT01Line Item Count2
1 functional group1 transactionControl #000852002Valid

Put the two reports side by side and you can see the whole chain: the DC shipped 210 stoves to stores in the week, stores sold 24 in the three stores shown, and the DC has 36 left with 480 on order.

852 Structure at a Glance

AreaSegmentNameUsageNotes
HeaderSTTransaction Set HeaderMandatoryST01 = 852
HeaderXQReporting Date/ActionMandatoryAction code and the period covered
HeaderXPOPreassigned Purchase Order NumbersOptionalPO numbers the buyer assigns in advance, in some VMI programs
HeaderN9Reference IdentificationOptionalVendor number, department, program
Header N1 loopN1 to PERName, address, contactOptionalParties, and the reporting location (RL) when not using SDQ
Detail LIN loopLINItem IdentificationMandatory, repeatsOne per item
LIN loopCTP, PO4, AMTPrice, pack, amountsOptionalRetail price, pack size, sales dollars where sent
ZA loopZAProduct Activity ReportingMandatory in each LIN, repeatsOne per activity type
ZA loopSDQDestination QuantityOptional, repeatsQuantities by store or location
ZA loopG95, DTMPerformance requirements, datesOptionalRarely used
SummaryCTTTransaction TotalsRequired when LIN data is sentNumber of LIN items
SummarySETransaction Set TrailerMandatorySegment count and control number

Two rules from the X12 notes shape every 852: the reporting location comes either from N1 with code RL or from SDQ, not both, and each item's quantity goes either in ZA02 or in SDQ.

Key Segments Explained

XQ: Reporting Date/Action

XQ*H*20261026*20261101~
ElementNameExampleWhat it means
XQ01Transaction Handling CodeHH notification only. Some VMI programs use other codes from the same list, such as F (plan and submit suggested purchase orders) or G (plan orders and ship product)
XQ02Date20261026Reporting date, or the start of the period
XQ03Date20261101End of the period, when a range is reported

Always store the period with the data. Two weekly files with overlapping dates usually mean a resend, not two weeks of sales.

LIN: Item Identification

LIN*1*UP*088123400204*VN*CP-TENT-2P~

LIN01 is the line number, followed by qualifier and ID pairs: UP UPC, VN vendor item number, and often the retailer's own item number. Match on the identifier the retailer leads with, and keep a cross-reference for the rest.

ZA: Product Activity Reporting

ZA*QW*210*EA~
ElementNameExampleWhat it means
ZA01Activity CodeQWWhich activity (see the table below)
ZA02Quantity210The quantity, when not broken out in SDQ
ZA03Unit of MeasureEARequired whenever ZA02 is sent
ZA04Date/Time QualifierType of date for this activity, where used
ZA05DateThe date
ZA06, ZA07Reference qualifier and IDA related reference, such as a PO

The ZA01 activity codes suppliers see most, from X12 element 859:

CodeMeaning
QSQuantity sold
Q1Quantity sold (net)
QACurrent inventory quantity available for shipment or sale
OHGross quantity on hand
QPQuantity on order, not yet received
QRQuantity received
QIQuantity in transit
QOQuantity out of stock
QCQuantity committed
QHQuantity damaged or on hold
QUQuantity returned by consumer
QWQuantity withdrawn from warehouse inventory
QTAdjustment to inventory quantity
LSLost sales

Note that these are a different code list from the 846's QTY01. In an 852, QA means on hand and available; in an 846 QTY01, QA means quantity approved. Map each document with its own list.

SDQ: Destination Quantity

SDQ*EA*92*0012*11*0027*8*0031*5~
ElementNameExampleWhat it means
SDQ01Unit of MeasureEAUnit for every quantity in the segment
SDQ02Identification Code Qualifier92How the locations are coded. 92 means assigned by the buyer, so these are the retailer's store numbers
SDQ03, SDQ04Location and quantity0012, 11Store 0012 sold 11
SDQ05 to SDQ22Further pairs0027, 8, 0031, 5Up to ten locations per segment
SDQ23Location IdentifierAn area within the locations, such as a back room, where used

An SDQ belongs to the ZA above it. When a retailer has more than ten stores to report, it repeats the SDQ. A large chain's weekly 852 can run to many thousands of segments, so load it into a table rather than reading it by eye.

CTT: Transaction Totals

CTT01 is the number of LIN items. Check it against what you loaded; a short count usually means a truncated file.

How Suppliers Use the 852

  1. Spot stock-outs early. Compare each store's on-hand with its weekly sales. Two weeks of cover or less, with nothing on order, is a store that will run out.
  2. Plan replenishment. In vendor-managed inventory, the supplier sets order quantities from sales, on-hand and on-order against agreed safety stock and reorder points. Depending on the program, the supplier suggests the order or the retailer issues an 850 based on it.
  3. Forecast. Store-level sales history is the input to demand forecasting and to judging whether a promotion worked.
  4. Find slow stores. High on-hand with low sales points to a store with too much stock or poor shelf placement.
  5. Reconcile. Units the DC withdrew should roughly equal what stores received. A persistent gap is shrink or a reporting error.

EDI 852 vs 846, 867 and EDIFACT SLSRPT

DocumentUsually sent byWhat it reports
852 Product Activity DataRetailer or distributorActivity over a period at the buyer: sold, on hand, on order, by item and location
846 Inventory Inquiry/AdviceSupplier or warehouseA snapshot of stock the sender holds and can ship
867 Product Transfer and Resale ReportDistributorWho the distributor resold your product to, often for chargebacks and rebates
947 Warehouse Inventory Adjustment Advice3PLIndividual adjustments to stock, with reasons
EDIFACT SLSRPTRetailerThe EDIFACT sales data report used by UK and European retailers

The short version: the 846 describes supply, the 852 describes demand. The 867 tells you who bought from your distributor; the 852 tells you how fast it sold.

Common 852 Mistakes

MistakeWhat goes wrongPrevention
Reading ZA01 with the 846 code listOn hand read as approved quantity, or ignoredMap 852 activity codes from element 859
Ignoring SDQ02Store numbers matched to the wrong listKeep the retailer's store list, keyed by the qualifier it uses
Summing ZA02 and SDQ togetherQuantities counted twiceTake the quantity from one or the other, never both
Overlapping periodsA resent week counted as new salesKey data by retailer, item, location and XQ dates; replace on resend
Mixed unitsEaches compared with casesConvert to one unit using the retailer's pack data
Missing items treated as zero salesItems look dead when they were just not reportedDistinguish "not in file" from "reported zero"
Unmatched identifiersLines dropped on loadCross-reference retailer item numbers to your SKUs before the first file

852 Implementation Checklist

  • Get the retailer's 852 guide: activities sent, store or DC level, cadence, identifiers
  • Confirm how locations are sent (N1*RL or SDQ) and get the store list
  • Map ZA01 codes from element 859
  • Build a load that keys data by item, location and period, and replaces resends
  • Decide who reviews the data each week and what triggers action
  • Acknowledge each 852 with a 997 as agreed
  • Compare the first few weeks against the retailer's portal reports, if it has one

Where OrderSync Fits

The 852 tells you what to send. The replenishment orders that follow still have to be entered, and they arrive as EDI 850s and 875s, emails, PDFs and spreadsheets. OrderSync reads orders in any format, matches customers, items and units to your catalog, and outputs valid X12 or clean data for your ERP.

To read an 852 you have received, paste it into the free EDI inspector for a segment-by-segment breakdown with a plain-English summary. For the wider picture, see inventory visibility and reporting and our grocery EDI requirements guide, or book a 15-minute walkthrough to see your own orders processed.

Frequently Asked Questions

What is an EDI 852 used for?

The 852 reports product activity from a retailer or distributor to a supplier: units sold, on hand and on order, by item and often by store, for a set period. Suppliers use it to see sell-through, plan replenishment and run vendor-managed inventory.

What is the ZA segment in an EDI 852?

ZA is Product Activity Reporting. ZA01 is the activity code, such as QS quantity sold, QA quantity on hand and available, or QP quantity on order. ZA02 and ZA03 carry the quantity and unit, unless the quantity is broken out by store in an SDQ segment.

What is the SDQ segment in an EDI 852?

SDQ is Destination Quantity. It lists up to ten location and quantity pairs for the ZA activity above it, such as the units sold in each store. SDQ02 says how the locations are coded, for example 92 for numbers assigned by the buyer.

What is the difference between an EDI 852 and an EDI 846?

The 846 reports a stock position, usually the supplier's available inventory. The 852 reports activity at the buyer over a period: what sold, what is on hand and what is on order. The 846 is about supply; the 852 is about demand.

Does an EDI 852 authorize a shipment?

No. The 852 is a data report with no instruction to ship. In replenishment and VMI programs, a purchase order, either issued by the retailer or suggested by the supplier under the program's rules, is what authorizes the shipment.

How often is an EDI 852 sent?

On the partner's schedule, most often weekly and sometimes daily. Each 852 covers the period in the XQ segment, and store-level files can be large because they report every item for every store.

James Darby
Last updated: 11/4/2026

Related Resources