| 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 |
| Implementing System | SAP S/4HANA |
|---|---|
| Invoked by | Standard Ariba Guided Buying Integration via CIG |
| Business Process Reference | 03.04.05.01. Manage Indirect Receipts |
A receipt is an acknowledgment of the goods that have arrived. The receiving process starts when an order has been sent to a supplier and the supplier ships goods in exchange. When the shipment arrives, the person who receives those items, submits a receipt to acknowledge that the items have indeed arrived.
Negative receipt can also be created in Ariba Guided Buying to reverse some received quantity because of incorrect shipment or manual errors.
This document describes S/4HANA System inbound interface for sending goods receipt information from Ariba Guided Buying to S/4HANA System for POs received in Ariba Guided Buying. Goods receipt data 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) and loaded in S/4HANA as GR material document.
Buyers using the Ariba Guided Buying integrated with S/4HANA System can create receipts in S/4 Hana. Creation of Receipt in S/4 Hana is handled by the standard integration between Ariba Guided Buying and S/4 Hana
The following steps explain how a receipt export integration event works:
The format of the messages that are sent through the web services from Ariba Buying to S/4HANA System and the format of the expected responses from S/4HANA System are defined in WSDL files (Web Service Description Language). These files furthermore contain details about the web service end points like URLs and port numbers.
The export of data through web services is always initiated by Ariba Buying. Once a transaction has been completed in Ariba Buying, it immediately sends out a SOAP message to the configured web service end point.
The CIG transforms that SOAP message and passes the data from that message in the right format to the S/4HANA System backend. The S/4HANA System then returns either a success or error message (including error details) to the CIG. This reply from the S/4HANA System is finally sent back to Ariba Guided Buying as SOAP message through web services.
Ariba web services are only used for exporting transactional data from the Ariba Guided Buying and sending it (via CIG) to the corresponding S/4HANA System.
. The following Receipt web service integration events will be used:
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. The receipts are being exported to S/4HANA with this event and the CIG document type is- ReceiptExportRequest.
Reply message for Receipt creation is not in scope of this FS and separate FS covers the reply message
Process Flow Diagram

Step | Description | Comment |
|---|---|---|
1 | Ariba Guided Buying generates a SOAP message based on configuration | |
2 | Ariba Guided Buying sends it to CIG, using the URL designated in Event Configuration | |
3 | CIG translates the data into SAP acceptable format and sends it to the Cloud Connector | |
4 | The Cloud Connector then transmits the information to the S/4HANA system based on the configuration. | |
5 | Data is created using RFC/Business Application Programming Interface (BAPI) and the response (success or failure) is sent back to CIG, which again transforms the data and sends it back to Ariba Guided Buying through the web services channel. | |
6 | The response is then updated in Ariba Guided Buying. |
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.
The following table lists operations for the integration tasks and end point types needed:
Ariba Integration Task | End Point Type | Interface Name |
Export Receipts 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. Project must be published and set to "in testing" in order for transactions to be used
CIG Custom Routing
Project definition in CIG configuration is repeated for every backend S/4 system [ at the moment there's a plan for Global, US and China S/4 backends ]. In CIG → My Configurations → Custom Routings there's a definition for
| Direction | Inbound |
| Action | Replace SystemID |
| Document Type |
|
| Xpath |
|
| Action Value | respective SystemID based on the Company Code value |
CIG Addon Configuration
Configuration for CIG addon is consolidated in one place and should be completed in the logical order of the menu items. In the S/4 instance, navigate to SPRO → SAP Reference IMG →SAP Customizing Implementation Guide → Integration with Other SAP Components → Managed Gateway for Spend&Network for Buyer
Logical order of the menu is as following :
| Parameter Name | Value [ TEST ] | Value [ PROD ] |
|---|---|---|
| Technical Settings.Target System Settings.Host | http://integration.eu.managedgateway.cloud.sap | |
| Technical Settings.Target System Settings.Path Prefix | /cxf/receiveERPMD | /cxf/receiveERPMD |
| Login And Security User | P007937 | P007937 |
| Login And Security Password | <confidential> | <confidential> |
Not Applicable
Not Applicable
Standard mappings are a subject to change and are not linked in this documentation, latest excel sheet can be downloaded from CIG → Resources → Implementation Guides → Mapping Specs → Ariba Buyer
Each of the mapping contain basic field mapping from SOAP message into RPC structure with a basic logic explained in the pseudo code
Web Service is triggered based on the state of the source document. Once Receipt is fully approved it is send as SOAP message to the backend system. Message is triggered in the asynchronous way, meaning the web service doesn't wait for the reply from S/4, but consider success if reply 200 is received from CIG.
At this moment, no customisations are agreed on and extension to the standard WSDL data structure for any of the Goods Receipt flows is not needed
At this moment, standard transformation as referenced above is in place. In a case of any custom field is needed, custom field will be mapped in the CIG to the predefined custom field structure in the SAP
Each flow triggers an Ariba specific BAPI, which serves as a wrapper over SAP standard BAPI. On top of it, there's BAdl that can be used to handle customisations if needed. It's called before the data structure is passed to the standard SAP BAPI for processing.
| Flow | Ariba CIG BAPI | Standard BAPI called | Available BAdl |
|---|---|---|---|
| Receipt Create | ARBCIG_GOODS_RECEIPT_CREATE | BAPI_GOODSMVT_CREATE | ARBCIG_GR_CREATE |

Interface Dependency
Not Applicable
Not Applicable
Not Applicable
Not Applicable
| Ariba Guided Buying | Integration events → Data Import Export → Web Service Status →
| In the event of failure of communication between Ariba Guided Buying a CIG, error message can be found here. Notification about the failure can be send to the admin of the system |
| CIG | Transaction Tracker
| Transactions are stored for 30 days. Each transaction is referenced by the PO ID and the payloads, one received from Ariba and one sent to S/4 instance can be downloaded |
| S/4 system | SRT_MONI | details of the inbound web service in the event of failure, the exception can be found in here |
Interface Reporting
Not Applicable
Not Applicable
Not Applicable
Taking into account we target for 50-100 Pos a day, assume half of the POs are Materials - target for Receipts created a day would be 25-50
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.
If any errors occur for Goods Receipt, the instance goes into “Rejected” state and the buyers are being requested to create another instance.
Test Conditions and Expected Results
| ID | Condition | Expected Results |
|---|---|---|
| Create Receipt in Ariba Guided Buying | Receipt should flow from Ariba Guided Buying to S/4HANA via CIG. Receipt is carbon copied in S/4HANA and the status is updated in Ariba Guided Buying. | |
| Create multiple partial receipts in Ariba Guided Buying. | Partial receipts should flow from Ariba Guided Buying to S/4HANA via CIG without any issues. Partial Receipt is carbon copied in S/4HANA and the status is updated in Ariba Guided Buying. In S/4, receipt entry is created with a correct movement type - 101 | |
| Check Negative Receipt in Ariba Guided Buying. | Negative receipt flows from Ariba Guided Buying to S/4HANA via CIG. Carbon copied in S/4Hana and the status is updated in Ariba Guided Buying. In S/4, receipt entry is created with a correct movement type - 102 |
| Package Name | Parent Package |
|---|---|
Other Development Objects
| Object Type | Object Name | Purpose/High Level Logic | Design Rationale Reference |
|---|---|---|---|