| Status | |
|---|---|
| Owner | The person responsible for driving this decision and documenting it. Type @ to mention people by name |
| Stakeholders | The business stakeholders involved in making, reviewing, and endorsing this decision. Type @ to mention people by name |
| Jira Request ID | |
| Jira Development ID |
| Parameter | Value |
|---|---|
| Application System (Source) | Ariba Guided Buying |
| Application System ( Target) | S/4HANA |
| Business Process Reference |
Purchase orders are automatically generated in the Ariba Guided Buying when a requisition is fully approved. The purchase order is exported to S/4HANA as soon as it is fully approved in Ariba Guided Buying.
Ariba Guided Buying supports purchase order export tasks. The purchase order export feature allows exporting purchase orders from Ariba Guided Buying to S/4HANA via via SAP Integration Suite, Managed Gateway for Spend Management and SAP Business Network (formerly known as Cloud Integration Gateway) through Cloud Connector. Exporting purchase orders, when using CIG channel occur in real-time. This interface is triggered when the Purchase Orders are created and fully approved in Ariba Guided Buying and are ready to be sent to S/4HANA.
End-to-end integration via CIG is achieved using Cloud Connector. The format of the messages that are sent through CIG via Cloud Connector from Ariba Guided Buying to S/4HANA and the format of the expected responses from S/4HANA are defined in WSDL files (Web Service Description Language).
CIG receives and consumes the PO data. CIG maps the web service XML to the required RFC structure by S/4HANA and CIG sends the PO data to S/4HANA through Cloud Connector.
S/4HANA then returns either a success or error message (including error details) to Ariba Guided Buying via CIG.
This document describes S/4HANA System inbound interface for sending purchase order information from Ariba Guided Buying to S/4HANA System. Purchase Order from Ariba Guided Buying will be exported to S/4HANA System via SAP Integration Suite, Managed Gateway for Spend Management and SAP Business Network (formerly known as Cloud Integration Gateway).
The following Purchase Order web service integration events (and the corresponding document types) will be used to export PO creation, changes and cancellation:
Document Type in CIG - PurchaseOrderExportRequest
Document Type in CIG - PurchaseChangeOrderExportRequest
Document Type in CIG - PurchaseCancelOrderExportRequest
There will be no scheduled task of data transmission as data is transferred in real-time. Each submission of transactional data from Ariba Buying to the S/4HANA System requires a response from the receiving S/4HANA system that the data was successfully received and imported, or details about the error that occurred during the import.
Process Flow Diagram

PO Create
| Step | Description | Comment |
|---|---|---|
| 1 | Purchase Requisition (PR) is created and fully approved in Ariba Guided Buying. PR status is updated from “Approved” to “Ordering”. Purchase Order (PO) data is automatically created and sent to S/4HANA via CIG through Cloud Connector. PO Data is sent to CIG in XML format. | |
| 2 | CIG receives and consumes the PO data. CIG maps the web service XML to the required RFC structure by S/4HANA and sends the data to S/4HANA through Cloud Connector. | |
| 3 | In S/4HANA, the RFC/BAPI is executed. The PO data is created, and RFC/BAPI will return a response message back to CIG with SAP record ID of the document. The response message includes the S/4HANA ERP Order ID when PO is successfully created in S/4HANA; otherwise, error response is sent back to Ariba Guided Buying via CIG. | |
| 4 | CIG consumes the response message, converts to Web Service message and push to Ariba Guided Buying. | |
| 5 | Ariba Guided Buying consumes the WS message and updates the status of the transactional document. When a success response message is received from S/4HANA:
When an error response message is received from S/4HANA The PR status is updated from “Ordering” to “Composing”, a new version of the PR is created, and S/4HANA error details are reflected on the PR comments in Ariba Guided Buying. |
PO Change
| Step | Description | Comment |
|---|---|---|
| 1 | Purchase Order (PO) change is submitted and fully approved in Ariba Guided Buying. PO status is updated from “Ordered” to “Ordering”. PO change data is automatically created and sent to S/4HANA via CIG through Cloud connector. PO Data is sent to CIG in XML format. | |
| 2 | CIG receives and consumes the PO data. CIG maps the web service XML to the required RFC structure by S/4HANA and sends the data to S/4HANA through Cloud Connector. | |
| 3 | In S/4HANA, the RFC/BAPI is executed. The PO change data is posted, and RFC/BAPI will return a response message back to CIG with SAP record ID of the document. The response message includes the S/4HANA ERP Order ID when PO is successfully changed/updated in S/4HANA; otherwise, error response is sent back to Ariba Guided Buying via CIG. | |
| 4 | CIG consumes the response message, converts to Web Service message and push to Ariba Guided Buying. | |
| 5 | Ariba Guided Buying consumes the WS message and updates the status of the transactional document. When a success response message is received from S/4HANA:
When an error response message is received from S/4HANA: The PR status is updated from “Ordering” to “Composing”, a new version of the PR is created, and S/4HANA error details are reflected on the PR comments in Ariba Guided Buying. |
PO Cancel
Step | Description | Comment |
|---|---|---|
1 | Purchase Order (PO) is canceled in Ariba Guided Buying. PO status is updated from “Ordered” to “Canceling”. PO cancelation is automatically sent to S/4HANA via CIG through Cloud Connector. PO Data is sent to CIG in XML format. | |
2 | CIG receives and consumes the PO cancel data. CIG maps the web service XML to the required RFC structure by S/4HANA and sends the data to S/4HANA through Cloud Connector. | |
3 | In S/4HANA, the RFC/BAPI is executed. The PO Cancel data is posted, and RFC/BAPI will return a response message back to CIG with SAP record ID of the document. The response message includes the S/4HANA ERP Order ID when PO is successfully canceled in S/4HANA; otherwise, error response is sent back to Ariba Guided Buying via CIG. | |
4 | CIG consumes the response message, converts to Web Service message and push to Ariba Guided Buying. | |
5 | Ariba Guided Buying consumes the WS message and updates the status of the transactional document. The PR and PO status is updated from “Canceling” to “Canceled”. |
The following are the Security and Authorization considerations for this interface:
Ariba Configuration
Ariba Web Services enables exchange of data between Ariba Guided Buying and other systems, such as S/4HANA System, for real-time data integration.
Ariba Web Services provide integration tasks that send and receive SOAP messages for web services. An integration task requires an end point for the logical communication channel used by the web service. An end point consists of the URL and authentication information that controls access to the end point. There are two types of end points: inbound and outbound. Inbound end points are used when the task is initiated by the S/4HANA system. Outbound end points are used when the task is initiated by the Ariba Guided Buying.
Here, the Web Services channel provides real-time integration of Ariba Buying with S/4HANA system using SAP Integration Suite, Managed Gateway for Spend Management and SAP Business Network.
Configure the purchase order integration, change purchase order integration, and close purchase order integration between SAP Ariba Procurement solutions and SAP ERP or SAP S/4HANA.
Ariba Integration Task | End Point Type | Interface Name |
Export Purchase Orders Asynchronously | Outbound | CIG |
Export Change Purchase Orders Asynchronously | Outbound | CIG |
Export Cancel Purchase Orders Asynchronously | Outbound | CIG |
For purchase orders and change purchase orders, enable Application.Procure.AllowAttachmentToERP and Application.Ordering.AllowOrderAttachmentToERP parameters.
To control the file formats that can be attached to purchase orders in Ariba, use the parameter Application.Approvable.AllowedAttachmentExtensions. File formats that are not specified cannot be used as attachments. This parameter is useful for restricting file formats (such as EXE files) that might violate company security policies.
The following table lists operations for the integration tasks and end point types needed:
Ariba Integration Task | End Point Type | Interface Name |
Export Purchase Orders Asynchronously | Outbound | CIG |
Export Change Purchase Orders Asynchronously | Outbound | CIG |
Export Cancel Purchase Orders Asynchronously | Outbound | CIG |
CIG Configuration
Project setup is required in CIG to cover product type Ariba Procurement. One project is required per system ID of the backend S/4 system. With respect to Purchase Order Create and Change, there's additional setting in the Cross Reference → Parameter section where the set of parameters have to be maintained
| PurchaseOrderExportRequest | PurchaseOrderChangeExportRequest | |
|---|---|---|
| Service Text ID | LTXT | LTXT |
| Header Text ID | F01 | F01 |
| SAP Document Type | TBD | N/A |
| Item Text ID | F01 | F01 |
| SAP CC Document Type | TBD | N/A |
| SAP Framework Order DocType | TBD | N/A |
Project must be published and set to "in testing" in order for transactions to be used
CIG Addon Configuration
Configuration for CIG addon is consolidated in one place and should be completed in the logical order of the menu items.
Not Applicable
Not Applicable
| Field | Description |
|---|---|
The following fields will be used to provide the required information for this interface:
| Field | Description |
|---|---|
| Source Table | API or Portlet Name | Source Field | Required (Y/N) | Description | Target Field | API or Portlet Name | Target Field | Required (Y/N) | Description | Rule Type | Rule Instruction |
|---|---|---|---|---|---|---|---|---|---|---|---|
Processing within Middleware
Not Applicable
Interface Dependency
For CIG integration, this success/failure notification is sent in real time as web service response to the original request.
Interface Reporting
There are no specific reporting requirements. Ariba Buying analytical reports give users access to information from multiple sources, such as purchase orders, requisitions and receipts. Reports display data from these sources on a pivot table, which users can manipulate to see different scenarios for the data. Pivot tables allow users to filter, slice, and drill down into the information as needed to see broad patterns and relationships, summary information, and detail at the same time.
Ariba Buying includes a set of pre-packaged reports designed to help analyze the organization’s procurement and activities.
Not Applicable
Not Applicable
There are no specific performance requirements or considerations related to this interface.
The S/4HANA System integration provides reliable data exchange between Ariba Guided Buying through CIG. However, in some cases, the integration event on the Ariba Guided Buying cannot recover automatically and must report the error to the appropriate administrator. When an error occurs, the integration event on the Ariba Buying System does the following:
An administrator can monitor the errors using the transaction code, SRT_MONI.
Test Conditions and Expected Results
| ID | Condition | Expected Results |
|---|---|---|
Create requisition in Ariba Guided Buying and fully approve. PO creation in S/4HANA successfully | Purchase Order should flow from Ariba Guided Buying to S/4HANA via CIG. PO is created in S/4HANA and returns a response to Ariba Guided Buying that includes the ERP PO ID. The PR and PO is updated with the ERP Order ID from S/4HANA. PR and PO status is updated from “Ordering” to “Ordered” in Ariba Guided Buying. | |
| Create requisition in Ariba Guided Buying and fully approve. PO creation in S/4HANA unsuccessful | Purchase Order should flow from Ariba Guided Buying to S/4HANA via CIG. PO is not successfully created in S/4HANA and an error response is sent to Ariba Guided Buying. The PR status is updated from “Ordering” to “Composing”, a new version of the PR is created, and S/4HANA error details are reflected on the PR comments in Ariba Guided Buying. | |
Change requisition in Ariba Guided Buying and fully approve Change PO successful in S/4HANA | Changed Purchase Order should flow from Ariba Guided Buying to S/4HANA via CIG. S/4HANA returns a response message to Ariba Guided Buying. The response message includes the S/4HANA ERP Order ID when PO is successfully changed/updated in S/4HANA The new version of the PR and PO status is updated from “Ordering” to “Ordered” in Ariba Guided Buying. | |
Change requisition in Ariba Guided Buying and fully approve. Change PO unsuccessful in S/4HANA | Changed Purchase Order should flow from Ariba Guided Buying to S/4HANA via CIG. S/4HANA returns an error response message to Ariba Guided Buying. The PR status is updated from “Ordering” to “Composing” in Ariba Guided Buying, a new version of the PR is created, and S/4HANA error details are reflected on the PR comments in Ariba Guided Buying. | |
Cancel PO in Ariba Guided Buying | Canceled Purchase Order should flow from Ariba Guided Buying to S/4HANA via CIG. The PR and PO status is updated from “Canceling” to “Canceled” in Ariba Guided Buying. |
| Package Name | Parent Package |
|---|---|
Other Development Objects
| Object Type | Object Name | Purpose/High Level Logic | Design Rationale Reference |
|---|---|---|---|