Sub topic 9
Choosing a BTP runtime for your extension
This chapter assumes you know what a side-by-side extension is, why it depends only on released APIs, and the basics of services and tenants. It compares the three SAP BTP runtimes you can pick for the extension's code.
Why the runtime choice matters
A side-by-side extension is an application that runs outside SAP S/4HANA. It reads and writes data through released APIs. The runtime is the environment that hosts this application. It affects your language, your tooling, how you scale, and how much you operate yourself.
The runtime does not change the clean core rule. An extension on any runtime stays clean as long as it uses only released APIs and events.
The three options
- Cloud Foundry environment. A platform-as-a-service. You push an application and bind services to it. The platform handles containers, routing, and restarts. It supports Node.js, Java, and other languages through buildpacks.
- Kyma environment. A managed Kubernetes cluster with SAP additions. You package your code as container images and deploy them. You control more, and you also manage more.
- ABAP environment. Also called Steampunk or SAP BTP ABAP Environment. You write ABAP Cloud code that runs on a separate ABAP system on BTP. It is a different mechanism from developer extensibility inside S/4HANA.
| Criterion | Cloud Foundry | Kyma | ABAP environment |
|---|---|---|---|
| Main languages | Node.js, Java | Any language in a container | ABAP Cloud |
| Packaging | Application bundle and MTA | Container image and Helm or YAML | Software component |
| Operational effort | Low | Higher | Low |
| Typical team | Full-stack or Java/JS developers | Teams with Kubernetes skills | ABAP developers |
| Event-driven fit | Good | Strong | Good |
How to decide
Start from your team and your requirements, not from the technology.
- Skills. An ABAP team that must build a side-by-side app can stay productive in the ABAP environment. A JavaScript or Java team fits Cloud Foundry.
- Control. If you need custom containers, many small services, or Kubernetes-native tooling, choose Kyma. Otherwise the extra operational work is rarely worth it.
- Framework. The SAP Cloud Application Programming Model (CAP) runs on Cloud Foundry and Kyma. The remote service code in this tutorial uses CAP, so it targets those two.
- Reuse. If you already operate a Kyma cluster or a Cloud Foundry space, reuse it before adding another.
What stays the same
The connection pattern is the same on every runtime. The application calls a destination, and the Destination service resolves the host and credentials. The next chapters use this pattern.
The CAP configuration from the Topic Spine does not name a runtime:
{
"cds": {
"requires": {
"API_BUSINESS_PARTNER": {
"kind": "odata-v2",
"model": "srv/external/API_BUSINESS_PARTNER",
"credentials": {
"destination": "S4HC_BP",
"path": "/sap/opu/odata/sap/API_BUSINESS_PARTNER"
}
}
}
}
}The same fragment works on Cloud Foundry and Kyma. Only the deployment descriptor and the service binding mechanism differ.
Common mistakes
- Choosing Kyma because it sounds modern, then lacking the people to run it.
- Choosing the ABAP environment to avoid learning a new language, then using it for a UI-heavy or event-heavy app that suits CAP better.
- Treating the runtime as permanent. Keep business logic in CAP services and use released APIs, so a move later stays possible.
Exercise
Your team has strong Node.js skills, no Kubernetes experience, and needs a CAP service that reads business partners from S/4HANA. Which runtime do you pick, and why?
Show answer
Cloud Foundry. CAP runs there, the platform handles containers and restarts, and the team does not need Kubernetes skills. Kyma would add operational work with no requirement that justifies it.