QTY
Quantity. The EDIFACT segment that says how much: how much ordered, delivered, invoiced, in stock — always qualified.
Definition
The QTY segment, per UN/EDIFACT D.96A, is used "to specify a pertinent quantity". Its structure boils down to a single mandatory composite:
- 010 — C186 (QUANTITY DETAILS), mandatory:
- 6063 Quantity qualifier (an..3, M) — UNCL 6063:
21ordered,12despatch quantity,47invoiced quantity,59backorder quantity,113minimum order quantity. - 6060 Quantity (n..15, M) — the numerical value.
- 6411 Measure unit qualifier (an..3, C) — unit (UNCL 6411):
PCEpiece,KGMkilogram,LTRlitre,CTcarton.
Origin
QTY is one of the three most frequent line segments alongside LIN and
PRI. Its current structure dates back to D.93A. ediverse.io archives
D.96A at trsdqty.htm. The GS1 EANCOM subset typically
mandates QTY+21 in ORDERS, QTY+12 in DESADV,
QTY+47 in INVOIC.
Example in context
Ordered quantity of 24 pieces:
Reads as: qualifier 21 (Ordered quantity), value
24, unit PCE (piece).