SAP BTP, Kyma Runtime Samples

May 26, 2026 ยท View on GitHub

REUSE status

This project contains sample applications for building extensions using lambdas and microservices on SAP BTP, Kyma runtime.

The samples are implemented in multiple languages and demonstrate various Kyma runtime features and use case scenarios. Developers should be able to refer to these samples and implement their own business scenarios.

kyma-runtime

Requirements

Running various samples requires access to the Kyma environment. There are also other sample-specific requirements that you can find in the Prerequisites section of each sample. An overview of prerequisites is available in the prerequisites directory.

Samples

๐Ÿš€ Jumpstart your Kyma journey by using these samples to build event and api based extensions in your favorite technology. We have grouped the samples focusing on their content "center of gravity". But maybe there is more in there, so it is always worth taking a look at all of them ๐Ÿ˜Ž

Tip

If you are using Visual Studio Code, you can open each of the samples as a dedicated workspace. You find the corresponding file in the workspaces directory.

SAP TechEd

YearRepositoryDescriptionReferences
2021DEV261 - Build Extensions with SAP BTP, Kyma RuntimeThis is a full setup including many other SAP BTP Services and a CI/CD setup with the respective SAP BTP service.Recording no longer available

Sample Applications

NameDescriptionReferences
Java-based extension with API exposed via MicrogatewayThis sample demonstrates how to build and deploy a Java-based microservice as an extension and expose the API-
Java-based microservice as an Event Trigger using CloudEvents SDKThis sample demonstrates how to build and deploy a Java-based microservice as an Event Trigger using the CloudEvents SDK-
Scala AKKA HTTP based extesnsion with API exposed via MicrogatewayThis sample demonstrates how to build and deploy a Scala Based Akka-HTTP microservice as an extension and expose the API-
Sample deploying a websocket based extension on KymaThis sample demonstrates using websockets with Kyma when building extensions and applications-
ASP.NET-based extension with API exposed via MicrogatewayThis sample demonstrates how to build and deploy an ASP.NET-based microservice as an extension and expose the API-
ASP.NET-based (.NET 6.0) extension with Minimal API exposed via MicrogatewayThis sample demonstrates how to build and deploy an ASP.NET Core-based microservice as an extension leveraging the minimal web API functionality and exposing the API-

CX Extensions

NameDescriptionBlog Post
C4C UI extensibilityThis sample shows a Cloud for Customer extension including an Angular UI-
Sample SAP Customer Data Cloud ExtensionThis example includes a Kyma serverless function as cdc-extension exposed as an SAP Customer Data Cloud Extension endpointPost
Sample SAP Customer Data Cloud WebhookThis example includes a Kyma serverless function as cdc-subscription-webhook exposed as an SAP Customer Data Cloud Webhook endpoint-
Sample SAP Customer Data Platform ExtensionThis example includes a Kyma Serverless Function as cdp-extension exposed as an SAP Customer Data Platform Extension endpointPost
SAP Sales Cloud address completionCorrects the address for an account update or create in SAP Sales Cloud-
Product Review Sentiment Analysis with SAP Commerce CloudAutomated sentiment analysis and content moderation for customer product reviews in SAP Commerce Cloud-
Order Validation with SAP Commerce CloudAutomated order validation with external fraud check service running SAP BTP, Kyma runtime

S/4HANA Extensions

NameDescriptionReferences
S/4HANA Nodejs SAP Cloud SDK ExampleThis sample provides a Serverless Function configured to call the Material Stock API provided by S/4HANA using the SAP Cloud SDK-

Frontend Samples

NameDescriptionReferences
React frontend MS SQLThis sample provides a frontend React UI application configured with the sample Order APIs-
Deploy the SAPUI5 Frontend in SAP BTP, Kyma RuntimeThis sample provides a frontend SAPUI5 application configured with the sample Order APIs-

CAP

NameDescriptionReferences
From Zero to CAP on KymaStarting from scratch, build a CAP application and deploy it to Kyma runtime
Build and Deploy a Multitenant CAP Application to KymaA simple end-to-end sample to demonstrate building and deploying a multitenant CAP application on Kyma

SAP Cloud SDK

NameDescriptionReferences
SAP Cloud SDK Java Client Certificate AuthenticationThis sample shows how to connect to an external system secured with Client Certificate Authentication using SAP Cloud SDKPost

Utilities

NameDescriptionReferences
Secret from CF Service KeyThis sample shows how to create a Kubernetes secret from a Cloud Foundry service key-

SAP HANA Cloud

NameDescriptionReferences
HANA Cloud NodeJS APIThis sample demonstrates how SAP HANA Cloud can be utilized within the Kyma runtime-
GeoServer for a geospatial middleware over HANA CloudThis sample provides a GeoServerinstance with the plugin for SAP HANA Connectivity-

PostgreSQL

NameDescriptionReferences
Deploy a Go PostgreSQL API Endpoint in SAP BTP, Kyma RuntimeThis sample provides a Golang API endpoint for communication with an PostgreSQL databaseTutorial
Use and Seed SAP BTP PostgreSQL in SAP BTP, Kyma RuntimeThis sample demonstrates how to seed the PostgreSQL database with sample schema and data using a Kubernetes JobTutorial

Advanced Scenarios

NameDescriptionReferences
Connectivity: Accessing a Workload in SAP BTP, Kyma Runtime From the Corporate NetworkThis sample shows how to access a workload in Kyma from the corporate network using SAP BTP, Connectivity.
Redis and Kyma FunctionsThis sample provides a Redis deployment and two serverless functions that interact with itTutorial
gRPC PythonThis sample demonstrates gRPC connectivity-
Next.js app with Kyma eventing & Go backend connected to SAP HANA Cloud databaseThis sample provides a tutorial for a conference registration app using Next.jsPost
Data Backup and RestoreThis sample demonstrates performing a backup and restore for a stateful application where data is stored using Persistent Volume Claim.-
Query LDAP Users on on-premiseThis sample queries the LDAP users from an on-premise LDAP Server via SAP Connectivity proxy-
Deploy Highly Available WorkloadsThis sample demonstrates deploying highly available workloads in Kyma runtime-
Running GPU Workload in a Kyma ClusterThis sample demonstrates how to set up and run GPU-accelerated workloads on Kyma runtime, including AI image generation-
Power of serverless with SAP BTP, Kyma runtime.This sample demonstrates how to leverage the latest features of Kyma functions with SAP HANA Cloud and SAP librariesPost
KEDA Cron based scalerThis sample demonstrates how to leverage KEDA Cron scaler for efficient scaling strategies.-
SAP Cloud LoggingThis sample explains how to integrate SAP Cloud Logging with Kyma runtime and ship logs, metrics, and traces.-

Authentication and Authorization

NameDescriptionReferences
Sample to extend SAP Cloud for Customer with user propagationThis sample provides details on how a user propagation flow can be achieved when extending SAP Cloud for Customer(C4C) via IAS-
Sample to extend SAP Cloud for Customer with user propagation via XSUAAThis sample demonstrates how a user propagation flow can be achieved when extending SAP Cloud for Customer(C4C) via XSUAA-
App Reverse Proxy with OIDC Authentication MiddlewareThis sample provides a reverse proxy feature which dispatches requests to other microservices running in Kyma-
Standalone approuter on SAP BTP, Kyma runtimeThis sample demonstrates deploying a standalone app router on Kyma runtime and using it to securely expose microservices and functions-
Principal Propagation to an On-Premise SystemThis sample provides details on how a principal propagation flow can be achieved when extending an on-premise system using SAP BTP, Kyma runtime-
Configure Auth0 as IDP for Kyma accessThis sample provides details on how Auth0 can be configured as an Identity Provider for accessing Kyma runtime-

Updates on SAP BTP, Kyma runtime based on Open Source Kyma 2.0

An overview blog post about updates on SAP BTP, Kyma runtime based on Open Source Kyma 2.0 is available here: A long-awaited update for Kyma runtime

NameDescriptionReferences
In-Cluster EventsSample that walks you through how to set up and test the in-cluster eventingPost
Installing a custom componentSample that installs and uses Dapr as Custom Component on Kyma-
Extending on-premise systems via Kyma runtimeSample that walks you through how to connect an on-premise systemPost
Hands-on for DSAG Technlology Days 2022Hands-on which combines an event-based setup with on-premise connectivity

Resources

There are also further resources that allow you to dive into the topic of Kyma:

How to get in touch with us?

If you want to get in touch with us, here you go:

GitHub

Twitter

Known Issues

The samples are provided on an "as-is" basis. Currently, there are no known issues for the sample projects.

Get Support

The samples are provided "as-is". There is no guarantee that raised issues will be answered or addressed in future releases. For more information, visit SAP Community, especially our Kyma topic page and ask a question, or contact your SAP contact to get support. In case you observe any defect in the product usage itself, kindly use the SAP Product Support channel and raise an incident adequately for the defects observed.

Contributing

Please refer to the contributing guidelines

Code of Conduct

Please note that we have a code of conduct. Please follow it in all your interactions with the project.

License

Copyright (c) 2022 SAP SE or an SAP affiliate company. All rights reserved. This project is licensed under the Apache Software License, version 2.0, except as noted otherwise in the LICENSE file.