Member-only story
Step By Step to call SAP S/4HANA API through SAP Cloud for Customer ABSL Language
This article explains how to create custom enhancements in the SAP Cloud for Customer system using Cloud Application Studio for custom development, by calling an API from SAP S/4HANA to facilitate interaction between two SAP systems.
The scenario for system interaction is as follows: In the Sales Order detail page of the SAP Cloud for Customer (hereinafter referred to as C4C) system, a new custom button labeled “Trigger Delivery” is created. Upon clicking this button, it invokes an API exposed by SAP S/4HANA to trigger the delivery process on the SAP S/4HANA system side.
Below are the specific implementation steps.
(1) First, develop an API in S/4HANA that takes a Sales Order ID passed from the SAP Cloud for Customer, reads its line items, and then calls SAP S/4HANA’s delivery creation function to create delivery orders for these line items.
Searching with the keyword S/4HANA Outbound Delivery, we quickly find the corresponding BAPI name: BAPI_OUTB_DELIVERY_CREATE_SLS.