Troubleshooting

OCI prices or quantities arrive out by a factor of ten

The basket transfers and SAP shows 1250.00 where the shopper chose 12.50, or a quantity of 1000 where they ordered 1. Some lines are right and some are not.

Short answer

This is a number format problem. SAP describes this exact symptom — price or quantity multiplied or divided by 10, 100 or 1000 — against NEW_ITEM-PRICE and NEW_ITEM-QUANTITY. Send plain numbers: digits, a full stop as the decimal separator, no thousands separator, no currency symbol. Never pass a value that has been formatted for display in the shopper’s locale.

Causes, most likely first

Ordered by how often each one turns out to be the culprit, not by how interesting it is. Work down the list.

  1. A comma is used as the decimal separator

    How to confirm: The failures follow the locale of your site or the shopper’s browser. A German or French storefront formats 12.50 as 12,50, and the value posted is the displayed string.

    Fix: Format OCI values with a fixed, locale-independent formatter. Take them from the raw number, not from the page.

  2. A thousands separator is included

    How to confirm: Only lines over 1000 are wrong. 1,250.00 is read with the comma as a decimal mark, or the separator is dropped in a way that shifts the decimal.

    Fix: Omit grouping separators completely. No reader of the field needs them.

  3. More decimal places than the order can hold

    How to confirm: Cheap items priced to four or five decimals arrive rounded, sometimes to zero. SAP notes that a catalogue price can carry more decimals than the purchase order price field keeps.

    Fix: Price small items per hundred or per thousand using NEW_ITEM-PRICEUNIT, so the price itself needs no more than two decimals.

  4. A fractional quantity on a unit that does not allow one

    How to confirm: Quantities like 2.5 for a unit SAP defines without decimal places are rejected or rounded. The same quantity in a unit that permits decimals passes.

    Fix: Send whole quantities for count units such as EA and PCE, and agree with the buyer which units may carry decimals.

If it is not on your side

Send the buyer the exact field values you posted for one wrong line, copied from the browser’s developer tools rather than from your code. If the value is a plain decimal with a full stop and SAP still misreads it, the conversion is on their side and their SAP team can trace it.

Check the document itself

Before chasing “OCI prices or quantities arrive out by a factor of ten” further, paste the cXML or OCI payload into our free tester. It runs in your browser and reports the structural problems buyers reject on. The interactive demo plays the whole round trip from the buyer's seat.

Open the tester Play the demo

Related questions

Does the shopper’s SAP language setting matter?

It changes how SAP displays numbers to that user, which is why two users can see the same value differently. What you send should not change with it — one fixed format for every user.

Why are only some lines wrong?

Because only some values contain a separator. A price of 12 has nothing to misread; 12.50 and 1,250 do. Lines with whole-number prices and quantities under 1000 pass every time.

Rather not be the one debugging this?

A free PunchOut shop runs the PunchOut round trip for you: upload from Excel, test it, invite your buyer.

Start free Send us the error