Fix SAP OCI 4.0 40-char description & index gap errors.
SAP SRM and S/4HANA OCI 4.0 strictly cap NEW_ITEM-DESCRIPTION[n] at 40 characters and require contiguous 1-based [1..N] indices. Violate either rule and SAP drops cart lines silently.
# FAILS SAP OCI 4.0: index starts at [0], description is 62 chars, comma price! NEW_ITEM-DESCRIPTION[0]=Cut-resistant nitrile industrial safety gloves level D size 9 NEW_ITEM-PRICE[0]=14,50 NEW_ITEM-UNIT[0]=PIECE
# VALID SAP OCI 4.0: 1-based [1], <= 40 chars + LONGTEXT, dot decimal, UN/CEFACT NEW_ITEM-DESCRIPTION[1]=Cut-resistant nitrile gloves level D L NEW_ITEM-LONGTEXT_1:132[]=Cut-resistant nitrile industrial safety gloves level D size 9 NEW_ITEM-PRICE[1]=14.50 NEW_ITEM-UNIT[1]=PR NEW_ITEM-MATGROUP[1]=46181504
Root Causes & Permanent Fix
Description exceeds 40 chars (OCI 4.0)
Move the full product title to NEW_ITEM-LONGTEXT_<n>:132[] and truncate NEW_ITEM-DESCRIPTION[n] cleanly to ≤ 40 characters.
0-based indexing or missing numbers
Never start at [0]. If a user removes item 2 from their cart, re-index remaining lines [1], [2], [3] before POSTing to HOOK_URL.
Missing PRICEUNIT or dot decimal
Always send NEW_ITEM-PRICEUNIT[n]=1 and format decimals with a dot (14.50), never a comma.
Frequently Asked Questions
Does SAP OCI 5.0 lift the 40-character description limit?
SAP OCI 5.0 expands description handling, but many S/4HANA and SRM buyers still run OCI 4.0 field mappings. Keeping DESCRIPTION ≤ 40 chars + LONGTEXT ensures universal compatibility.
How can I test my SAP OCI fields right now?
Paste your NEW_ITEM-* lines into Maillon's free cXML & SAP OCI Validator — it automatically checks 40-char limits, contiguous indices, and UN/CEFACT units.