Cette page n'est pas encore disponible en Français ; vous lisez la version anglaise.

UNSPSC classification and units of measure in punchout

The two fields that break most first punchout tests.

cXML et OCI Intermédiaire 1 min de lecture Relu le 27 nov. 2026

Two fields cause a surprising share of failed punchout tests: classification and unit of measure.

Classification

Procurement systems use a commodity code on each line to pick the accounting, approval route and spend category. The most common scheme is UNSPSC (United Nations Standard Products and Services Code), an 8-digit hierarchical code (segment, family, class, commodity).

  • cXML: <Classification domain="UNSPSC">44103103</Classification> inside ItemDetail.
  • OCI: NEW_ITEM-MATGROUP[n] (the buyer's material group) and, in newer setups, NEW_ITEM-EXT_CATEGORY_ID with NEW_ITEM-EXT_SCHEMA_TYPE (for example UNSPSC).

Some buyers want their own material groups instead of UNSPSC. Agree a mapping table per customer.

Tip: classify at the commodity (8-digit) level where you can. A generic code like "office supplies" sends every line to the same approver.

Units of measure

cXML expects codes from the UN/CEFACT recommendation 20 list, such as EA (each), BX (box), PK (pack), CS (case), KGM (kilogram), MTR (metre). OCI sends a unit that must match the buyer's SAP unit codes (often ISO codes, sometimes customer-specific).

Price units and pack sizes

  • If you sell screws per 100, either price per piece or use OCI's NEW_ITEM-PRICEUNIT (and in cXML, PriceBasisQuantity) so the buyer's system calculates correctly.
  • Be consistent: "box of 12" priced per box with unit BX and quantity in boxes.

Common problems

SymptomLikely cause
Requisition rejected: "unknown unit"Your unit code is not mapped in the buyer's system
Totals off by a factor of 100Price unit or pack size mismatch
All lines routed to the wrong approverGeneric or missing classification
Decimal errors in SAPToo many decimals, or comma vs point