Access the Kyma environment and start creating extensions for SAP systems using Functions.
You can extend a given SAP system in the Kyma environment with “Functions” that are based on the Function custom resource. Functions are simple code snippets that you can run without provisioning or managing servers. They implement the exact business logic you define in their code.
Most of the linked tutorials contain steps that you can perform both on the Kyma Dashboard and in the terminal after downloading the kubeconfig file with the cluster configuration.
Follow these steps to get familiar with Functions and learn how to use them.
-
Connect the SAP system you want to extend (Extending SAP Customer Experience Products in the Kyma Environment).
-
Register an SAP system in the SAP BTP Cockpit.
-
Assign the system to a formation for proper API access.
-
Pair the integration token with the system.
-
Create an instance of the system in the Kyma environment.
-
-
Choose a Namespace in your cluster and create a simple Function that returns the “Hello World!” message (Create an inline Function).
-
Expose a sample Function outside the cluster, to an unsecured or secured endpoint.
For more details on the available security options in Kyma, see Configure Authorization (OAuth2, JWT).
-
Configure your Function to react to events (Trigger a workload with an event).
To subscribe to events with Kyma, you must create a Subscription including the following parameters:
-
Application name: The name of the external Application connected to Kyma runtime. Typically, it starts with
mp-*
. This name can be found in the UI under Integration > Applications. It must be bound to the Namespace. -
Event name: The event name depends on your CX solution:
- SAP Commerce Cloud - for custom events, check the configuration of your Destination Target for the Kyma runtime
- SAP Field Service Management
- SAP Sales Cloud / SAP Service Cloud - you can check the event specification in Event Notification Monitoring.
-
Event version: v1 for legacy events or v2 for CloudEvents
Your Function must be error-free, or else event loss could occur. If you are facing problems, check the Kyma Troubleshooting documentation.
-