Skip to Content
Technical Articles
Author's profile photo Mohit Bansal

SAP S/4HANA In-App Extensibility with Real Time Business Scenario : Standard API Extensions and Integrations with Third Party Systems

One of the most common Business requirement  in various SAP Projects is real time integration with commonly  used Business Context data with Third Party Systems such as:

  • Product Master
  • Sales Order
  • Business Partner etc..

And common requirement in almost every integration scenario is posting / reading of data in above Business context along with few CUSTOM fields.

While working in S/4HANA Projects, Always first design approach came in mind why not to use:

“Standard S/4HANA API with In-App Extensibility”  ” Every time It really worked like a Charm”

“Complete technical Solution were ready for testing in just couple days, Many thanks to S/4HANA with  In-App Extensibility and of course API Hub “ 😊

Bye Bye, Complex development and Let’s utilize power of S/4HANA with In-App extensibility and speed up our development  with standard API and integrate with any third party system😊

Business Requirement

Business wants to create Product, Sales Order data  in SAP S/4HANA  system and call will be made from third party system.

An example perspective, Product creation Standard S/4HANA with below custom Fields 


Development Architecture and Technical Solution

High Level Development Flow

Here is the typical Development Steps

  • Identity the Business Context i.e., Material Master, Customer, Sales Order
  • Check for Standard API in API Hub
  • Extend Standard API with Fiori Extensibility Cockpit
  • Added Custom fields via Custom Fields and Logic App
  • API ready to consume by CPI with custom fields
  • Fields are added in API CDS & BAPI and ready for consumption 😊

Let’s build step by step complete technical solution 


Step1 : Identify the “Right Business Context and Right API”

As, We want to extend the Product then Business Context is Product and API is A_Product

  • Visit the API HUB, select product S/4HANA and find the API
  • Check the relevant API and find the respective end points for document posting, for example product creation
  • Register the API in S/4HANA  /  Gateway System


Step 2 :  API Extension using the S/4HANA Extensibility cockpit

S/4HANA Extensibility Cockpit

Step3: Create Custom fields via “Custom Field and Logic”

Steps 4: Expose the custom fields for API( CDS A_Product) and BAPI for Product create.


Custom Fields are exposed for API and BAPI


Push “Publish” in the bottom-right of the screen.





Cool. We are done…..Let’s do the testing with POSTMAN  and create Product and custom fields are available


I have also quickly created the Fiori App consuming the “EXTENDED API END Point”  A_Product , just to show case how easy to create Fiori Elements based on the top of extended API..


Again Bye bye, Complex  technical development and Let’s utilize power of S/4HANA with In-App Extensibility  and speed up our development  with standard API and integrate with any third party system😊



Mohit Bansal



Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Marco Beier
      Marco Beier

      Great post! Nice high-level overview on the development workflow including a nice example and how simple things can be nowadays. 🙂

      Author's profile photo Mohit Bansal
      Mohit Bansal
      Blog Post Author

      Thanks Marco.Good to see, you liked it.

      Author's profile photo kausalya saiprasad
      kausalya saiprasad

      Hi Mohit,

      Thanks for the great blog. I am newly exploring this area.

      Can you please help me understand whether the new custom field is added to API in SAP API business hub or to the on premise system API?

      Just to explain my question further, Can I find the newly added custom field to be consumed in my Fiori app if the data source for the Fiori app is from SAP API business hub instead of on premise system?


      Data source as SAP API business hub