Sub topic 14
SAP BTP for side-by-side extensions and integration
This chapter assumes you know the three editions, the three extensibility models (in-app, developer, side-by-side), and the clean core principle from earlier chapters. It covers what SAP Business Technology Platform (BTP) adds and when to use it.
What side-by-side means
SAP BTP is SAP's platform-as-a-service. A side-by-side extension is an application that runs on BTP, outside the S/4HANA system. It talks to S/4HANA only through released interfaces such as OData APIs and business events. It does not touch S/4HANA tables or code.
This keeps the S/4HANA core clean in every edition. Upgrades do not break the extension as long as the released APIs stay stable. The extension can also be released on its own schedule.
Where it applies
Side-by-side extensibility works in all three editions. Its weight differs:
| Edition | Role of BTP |
|---|---|
| Public Edition | Main route for larger custom apps, because classic modifications are not allowed |
| Private Edition | Preferred for new extensions, alongside classic options kept for existing code |
| On-premise | Optional, and often used to prepare for a later move to the cloud |
In Public Edition, communication arrangements and communication scenarios control which APIs an external app may call. In Private Edition and on-premise, a Cloud Connector usually links BTP to a system behind the customer's firewall.
Building blocks
- Runtimes. Cloud Foundry and Kyma host custom apps. The ABAP environment lets ABAP developers write ABAP Cloud code in a separate system.
- SAP Cloud Application Programming Model (CAP). A framework for building services in Node.js or Java.
- SAP Integration Suite. Connects S/4HANA to other systems with prebuilt integration content.
- Event-driven messaging. Business events from S/4HANA, such as a changed sales order, reach BTP through an event broker.
- SAP Build. Low-code tools for apps and process automation.
- Destination and Connectivity services. Store endpoints and credentials so apps do not hard-code them.
How a call flows
Choosing side-by-side
Use a side-by-side extension when one of these holds:
- The logic needs its own lifecycle, scaling, or user group, for example a supplier portal.
- The extension combines data from S/4HANA and other systems.
- You want the same extension to survive a move between editions.
- Your team works in non-ABAP languages.
Prefer in-app or developer extensibility when the logic must run inside the same transaction as S/4HANA. A custom validation during posting is one example. A remote call adds latency and a failure point, so a side-by-side app cannot take part in the core's database transaction.
Common errors
- Calling unreleased APIs. An API that works in a test system may be unavailable in Public Edition. Check the SAP Business Accelerator Hub for release status.
- Chatty integration. Fetching one record per call is slow. Use
$filter,$select, and$expand, or react to business events instead of polling. - Hard-coded credentials. Use destinations and the platform's credential store.
- Ignoring licensing. BTP services are metered separately. Estimate usage before you commit to a design.
Exercise
A company on Public Edition wants a portal where suppliers update delivery dates, and the data must also be joined with a third-party logistics system. Which extensibility model fits, and how does the portal read S/4HANA data?
Show answer
Side-by-side extensibility on SAP BTP fits. The portal runs on BTP, for example as a CAP app, and reads S/4HANA data through released OData APIs. A communication arrangement in Public Edition allows the access, and the Destination service holds the endpoint and credentials. BTP can also reach the logistics system, which in-app extensibility could not do.