| Status | |
|---|---|
| Owner | RUIZ SOMOZA-ext, Carolina |
| Stakeholders | |
| Jira Request ID | |
| Jira Development ID |
| Implementing System | S/4HANA |
|---|---|
| Invoked by/Invokes | |
| Business Process Reference | 06.10.01.01. Manage 3PL Warehouse Interfaces |
This Functional Specification describes the Inbound Delivery Interface between SAP S/4HANA and CPI using SAP standard OData API API_INBOUND_DELIVERY_SRV_0002.
The interface covers all Inbound deliveries created or updated in S/4HANA that are relevant for transmission to 3PL systems.

1 | Delivery created/updated in S/4HANA | |
2 | S/4 raises an internal event. | |
3 | System checks the 3PL assignment table | To determine if the interface is active and retrieve the 3PL assigned |
4 | System checks the DELIVERIES_3PL table | To determine if the delivery type, shipping point and event is relevant for transmission |
5 | Relevant event is published to SAP Event Mesh | If previous steps are successful |
6 | CPI consumes the event and retrieves full delivery using API | CPI will also get the 3PL partner from the 3PL assignment table for routing purposes |
7 | S/4 updates Monitoring Table | Using System date and time |
8 | 3PL consumes and executes warehouse processes. |
N/A
ERP-865 - 3PL Warehouse interface - Inbound acknowledgements - System Interface FS in Progress For tracing the transmission in the monitoring table
The table defined in this development should be checked within this development
ERP-845 - 3PL Configuration Application FS in Progress 3PL assignment and activation table
To detail the security requirements for processing this object, any data integrity issues associated with the object and the teams that will be responsible for processing the object, i.e. authorization/roles required to who can execute the interface, encryption requirement, etc.
N/A
N/A
APIs to be consumed:
API_INBOUND_DELIVERY_SRV_0002Inbound deliveries will be relevant for transmission only for specific shipping points (the ones related to a 3PL), delivery types and at certain event.
This criteria may change between 3PLs so a custom table is needed to save this parameters and should be checked by Event Mesh before publishing the event for consumption. This table (DELIVERIES_3PL) is described in the FS ERP-984 3PL Warehouse Interface - Outbound Delivery Interface to Cloud Integration Suite and will be part of ERP-845 - 3PL Configuration Application FS.
API_INBOUND_DELIVERY_SRV_0002 will be consumed if the criteria described in the Processing logic section is met
The following information should be retrieved for the document (LIKP-VBELN) using the following services:
Retrieve Single Inbound Delivery Including All Inbound Delivery Items
Example
GET <host>/sap/opu/odata/sap/API_INBOUND_DELIVERY_SRV;v=2/A_InbDeliveryHeader(DeliveryDocument='180000247')?$expand=to_DeliveryDocumentItem HTTP/1.1| Parent | Field | Description | Mandatory (Y/N) | Data Type |
|---|---|---|---|---|
Processing Logic
1) Every time a new event is raised from a Delivery document, it should be published for transmission if the following criteria is met:
2) If previous step is successful, an entry should be logged into the monitoring table to trace the correct transmission to the 3PL. This table is detailed in ERP-865 - 3PL Warehouse interface - Inbound acknowledgements - System Interface FS in Progress .
DOC_TYPE=DELIVERY
DOC_ID= LIKP-VBELN
DATE_SENT = System date
TIME_SENT = System time
If an entry exists for the DOC_TYPE, it should be updated with the current DATE_SENT and TIME_SENT.
Delta or Full Load Requirements
Please describe change tracking requirements, i.e. transferring only delta, or always full load
Monitoring will be handled by and
Document texts will be in the language of the source document.
N/A
N/A
Around 10 docs / DAY
N/A
Error handling should be don at AIF level, if there is an error sending the data to the 3PL, the interface should be retriggered.
Please provide some guidance and/or test data to help the developer unit test the interface. Please include both positive and negative testing (to validate error situations handling)
The developer will need to test repeatedly, so where appropriate provide instructions to reverse the actions performed so the test may be run again, or explain how to create new input data to the test. In particular, the developer will need logons for test users representing the various roles within the approval process.
| ID | Condition | Expected Results |
|---|---|---|
| 1 | Inbound delivery creation (relevant Inb del type) | Event is published and consumed according to the custom table entries |
| 2 | Inbound delivery update | Event is published and consumed based on the custom table entries. |
| 3 | Inbound delivery deletion | Event is published and consumed. |
| 4 | Inbound delivery creation/update (not relevant in custom table) | Event is not published |
| 5 | Inbound delivery created for a non relevant shipping point | Event is not published |
The solution must be tested in conjunction with the developments listed in the Dependencies section. End-to-end validation will include the participation of the relevant 3PL partners to ensure the completeness of the inbound delivery transmission flow across S4 HANA, middleware, and target logistics platforms.
| Package Name | Parent Package |
|---|---|
Other Development Objects
| Object Type | Object Name | Purpose/High Level Logic | Design Rationale Reference |
|---|---|---|---|
Insert links and references to other documents which are relevant when trying to understand this decision and its implications. Other decisions are often impacted, so it's good to list them here with links. Attachments are also possible but dangerous as they are static documents and not updated by their authors.
