Product Information
Creating Custom APIs in SAP S/4HANA Cloud, Public Edition
SAP S/4HANA Cloud, public edition is a ready-to-run cloud ERP that delivers the latest industry best practices and continuous innovation. In the 3 System Landscape, SAP now provides powerful capabilities that allow developers to develop cloud-ready and upgrade safe extensions by combining the benefits of custom ABAP code, with the required characteristics for cloud readiness.
SAP now offers new capabilities for integration using the developer extensibility (ABAP environment) offered in the 3 System Landscape to allow customers to create custom APIs using released ABAP objects.
Refer to the following information for more details:
We have created a tutorial to help you guide through the process of creating such an custom inbound API. Please review the same under Creating Custom Inbound API in SAP S/4HANA Cloud, public edition
In this tutorial you will learn –
- How to identify objects to be consumed
- How to create a projection view
- How to create a behavior definition for the CDS projection
- How to create a service definition
- How to create a service binding
- How to create a communication scenario and to test the API
We would like to invite you to explore the API Hub as shown below to identify the business objects released for developer extensibility and create your own custom API.
For more examples on different types extensibility which is available in S/4HANA Cloud, Public edition, refer SAP Extensibility Explorer.
The SAP help ABAP Restful Programming Help provides more information on ABAP Restful Application Programming.
For more information on SAP S/4HANA Cloud. Review the SAP S/4HANA Cloud Topic Page
If you have questions about SAP S/4HANA Cloud, public edition, you can ask questions on the Answers Page
Read and follow other SAP S/4HANA Cloud blog posts
Please follow profile to be alerted on future blogs from me.
Does it apply for Embedded Steampunk (on-prem) as well?
Yes, this should work in developer extensibility of SAP S/4HANA as well though the API hub doesn't currently provide a listing of the supported business objects and so you will have to find it from the development environment.
Great one profile ! Keep sharing
-Saumi
How am I only finding this now?
Awesome blog and tutorial.
Thank you
Hi Dennis,
Thanks for the blog. I had a query with regards to developer/on-stack extensibility.
We see a list of legacy objects that have 'released' successor (substitution) object recommendations, as also seen in Note#3088062. While this list is helpful for on-stack developments, however most of those substitution objects are 'non-extensible' in context of Developer Extensibility.
For example, there are many traditional BAPIs that are recommended to be substituted with released BDEF or DDLS objects; (example - I_JOURNALENTRYTP for BAPI_ACC_DOCUMENT_POST) however they are mostly non-extensible, meaning any custom field extensions to the legacy object, cannot be handled via the released successor/substitution objects. Also checked in the SAP data sources like ARS_ADT_API_FLTR in latest S/4HANA 2022 system - which says there are only 20 released objects that are extensible (tagged - EXTEND_IN_CLOUD_DEVELOPMENT).
As custom field extensions are quite common customer use-cases, wanted to understand what is the recommended alternative for such scenarios? Is the 'Tier-2' approach suggested here until more released APIs are enabled for custom extensions in Developer Extensibility? Kindly advise.
Warm Regards,
S Sen
Hi Dennish,
Your blog is very help full and i appreciated your effort.
Can you please advice me for side by side extensibility with API communication for SAP S/4HANA Cloud( Public).
Ex- How to connect and simulate the API sales order and SAP S/4HANA Cloud( Public) through BTP.
Hi Pesala,
In the case of BTP, we recommend you to consider using Business Application studio (SAP Business Application Studio | SAP Help Portal) as it make it easy to consume an API and also to post requests as well.
Regards,
Dennis