Home/OCI PunchOut
Protocol overviewOCI PunchOut
OCI, the Open Catalog Interface, is the SAP standard for connecting a procurement system to an external supplier catalog. It is used by SAP SRM, SAP ERP (MM) and SAP S/4HANA. This page describes how an OCI session works and the data returned to the buyer.
- SAP SRM
- SAP ERP (MM)
- SAP S/4HANA
- OCI 4.0 and 5.0
Session flow
How an OCI session works
Catalog call
The buyer selects your catalog in SAP. The browser opens your catalog URL with the configured parameters, including the return address HOOK_URL.
Authentication
Your store validates the login parameters and opens a session under the buyer’s account.
Shopping
The buyer selects products at their contract pricing.
Cart return
On transfer, the cart is posted to HOOK_URL as form fields and appears in the SAP shopping cart.
Inbound parameters
The catalog call structure
The buyer’s SAP administrator defines the catalog as an external web service with a call structure: a list of parameters appended to your catalog URL. Typical parameters are a username and password, together with the SAP-supplied return address.
HOOK_URL is added by SAP at runtime. It is the address to which the cart must be returned and is different for every session. The parameters ~OkCode, ~target and ~caller are returned unchanged with the cart so that SAP can place the items in the correct shopping cart.
Catalog call (illustrative)
https://your-store.com/punchout/oci ?USERNAME=buyer-007 &PASSWORD=******** &HOOK_URL=https://sap.buyer.example/sap/bc/gui/... &~OkCode=ADDI &~target=_top &~caller=CTLG
Cart return
The NEW_ITEM fields
Each line item is returned as a group of fields with the same index. These are the fields most commonly required by buyers.
| Field | Content |
|---|---|
| NEW_ITEM-DESCRIPTION[n] | Item description |
| NEW_ITEM-QUANTITY[n] | Quantity |
| NEW_ITEM-UNIT[n] | Unit of measure, as an ISO code expected by the buyer’s SAP system |
| NEW_ITEM-PRICE[n] | Unit price |
| NEW_ITEM-CURRENCY[n] | Currency code |
| NEW_ITEM-PRICEUNIT[n] | Number of units to which the price applies |
| NEW_ITEM-LEADTIME[n] | Delivery lead time in days |
| NEW_ITEM-VENDORMAT[n] | Supplier part number |
| NEW_ITEM-MATGROUP[n] | Material group or classification code |
| NEW_ITEM-LONGTEXT_n:132[] | Extended description |
| NEW_ITEM-CUST_FIELD1[n] to 5 | Custom fields agreed with the buyer |
Comparison
OCI compared with cXML
| OCI | cXML | |
|---|---|---|
| Used by | SAP SRM, SAP ERP (MM), S/4HANA | SAP Ariba, Coupa, Jaggaer, Oracle, Workday and most cloud platforms |
| Session start | Browser opens the catalog URL with parameters | Server-to-server XML request, then a browser redirect |
| Cart return | HTML form post to HOOK_URL | PunchOutOrderMessage XML document |
| Purchase orders | Not part of the standard | OrderRequest |
| Invoices and ship notices | Not part of the standard | InvoiceDetailRequest and ShipNoticeRequest |
Takeoff PunchOut
OCI capabilities included
Login verification
OCI logins can be verified against a shared secret defined per buyer.
Field mapping
Product attributes are mapped to OCI fields, including custom fields required by a specific buyer.
Units of measure per buyer
Each buyer receives the unit codes its SAP system expects, configured without code changes.
B2B account assignment
Buyers are assigned to their company account on login, so company pricing and catalogs apply.
Embedded sessions
The catalog can be displayed within the buyer’s procurement frame where the SAP configuration requires it.
Session logging
Every login and cart transfer is logged with the full request and response.
FAQ
Frequently asked questions
What does OCI stand for?
Open Catalog Interface. It is the SAP standard for connecting SAP procurement applications to external catalogs.
What is HOOK_URL?
The return address generated by SAP for each session. The supplier’s catalog posts the cart to this address when the buyer transfers it.
Which OCI versions are in use?
OCI 4.0 is the most widely deployed. OCI 5.0 adds further fields and is used by newer SAP releases.
Can OCI transmit purchase orders?
No. OCI covers the catalog session and cart return only. Purchase orders are delivered by whichever method the buyer’s SAP system is configured to use.
Is OCI priced separately from cXML?
No. Both protocols are included in every Takeoff PunchOut plan.
Ready to become PunchOut-enabled?
Tell us which commerce platform you operate and which procurement systems your customers use. Our team will respond with a recommended approach and pricing.