The Open Catalog Interface (OCI) is SAP's standard for connecting its procurement systems to external catalogs. SAP SRM uses it, and so does SAP S/4HANA when a requester adds items from an external catalog. Where cXML exchanges XML documents, OCI uses plain HTTP parameters and form fields.
1. The login
The SAP system opens the supplier's catalog URL with parameters defined in its catalog call structure, for example:
https://shop.supplier.example/oci/login?USERNAME=buyer01&PASSWORD=...&HOOK_URL=https%3A%2F%2Fsrm.buyer.example%2F...&~OkCode=ADDI&~TARGET=_top&~CALLER=CTLG
- USERNAME / PASSWORD (or other agreed parameters) identify the buyer account.
- HOOK_URL is generated by the SAP system at run time and is where the cart must be posted back. Never hard-code it.
- ~OkCode, ~TARGET and ~CALLER are standard OCI parameters to send back unchanged.
2. Shopping
As with cXML, the supplier signs the user in, shows customer pricing and replaces checkout with "transfer cart".
3. Returning the cart
The supplier renders a form that POSTs to the HOOK_URL, with one set of fields per item, indexed [1], [2] and so on:
<form action="{HOOK_URL}" method="post" target="_top">
<input type="hidden" name="NEW_ITEM-DESCRIPTION[1]" value="Toner cartridge black">
<input type="hidden" name="NEW_ITEM-QUANTITY[1]" value="4">
<input type="hidden" name="NEW_ITEM-UNIT[1]" value="EA">
<input type="hidden" name="NEW_ITEM-PRICE[1]" value="590.00">
<input type="hidden" name="NEW_ITEM-CURRENCY[1]" value="INR">
<input type="hidden" name="NEW_ITEM-VENDORMAT[1]" value="TN-2420">
<input type="hidden" name="NEW_ITEM-MATGROUP[1]" value="44103103">
<input type="hidden" name="NEW_ITEM-LONGTEXT_1:132[]" value="High-yield black toner, 3,000 pages">
<input type="hidden" name="~OkCode" value="ADDI">
<input type="hidden" name="~TARGET" value="_top">
<input type="hidden" name="~CALLER" value="CTLG">
</form>
<script>document.forms[0].submit();</script>
The full list is in our OCI field reference. Note the unusual format of the long text field, NEW_ITEM-LONGTEXT_<index>:132[], and the CUST_FIELD1 to CUST_FIELD5 fields for agreed custom data.
Versions
OCI 4.0 is the version most suppliers implement. OCI 5.0 added features such as item hierarchies, mass upload of catalog data and real-time checks; support depends on the SAP product and release.
What OCI does not cover
OCI is only about the catalog and cart. Purchase orders, confirmations, ship notices and invoices travel separately: commonly as IDocs or EDI, through SAP Business Network as cXML, or by email. Plan the order side from the start: see orders and invoices.
Typical pitfalls
- Field lengths: SAP truncates long values (descriptions are short), so put details in the long text.
- Units of measure must map to the buyer's SAP units.
- Decimal separators and price units (
NEW_ITEM-PRICEUNIT) for items priced per 100 or per 1,000. - The form must target the right frame (
_top) or the cart opens inside the catalog window.