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_IDwithNEW_ITEM-EXT_SCHEMA_TYPE(for exampleUNSPSC).
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
BXand quantity in boxes.
Common problems
| Symptom | Likely cause |
|---|---|
| Requisition rejected: "unknown unit" | Your unit code is not mapped in the buyer's system |
| Totals off by a factor of 100 | Price unit or pack size mismatch |
| All lines routed to the wrong approver | Generic or missing classification |
| Decimal errors in SAP | Too many decimals, or comma vs point |