The main intent of this scenario is to complement an existing business process in an SAP solution – currently SAP S/4HANA with additional business process steps. This involves adding major logic and additional data and goes beyond simple UI changes.
This application showcases:
- Building applications on SAP Business Technology Platform (SAP BTP) using SAP Cloud Application Programming Model (CAP)
- Consuming events from SAP S/4HANA on-premise using SAP Event Mesh
- Consuming REST APIs from SAP S/4HANA on-premise using SAP BTP Platform Connectivity Service
- Building and deploying a function in SAP BTP Kyma Runtime, Serverless
A business scenario is used to showcase how to build a SAP S/4HANA on-premise extension application on SAP BTP, Kyma runtime.
John, who is an employee of Business Partner Validation Firm iCredible, which is a third-party vendor of ACME Corporation, would like to get notifications whenever new Business Partners are added in the SAP S/4HANA backend system of ACME Corporation. John would then be able to review the Business Partner details in his extension app. He would proceed to visit the Business Partner’s registered office and do some background verification. John would then proceed to update or validate the verification details into the extension app. Once the details are verified, the Business Partner gets activated in the SAP S/4HANA system of ACME Corporation.
The scenario covers:
-
Custom extension application that works independently from SAP S/4HANA
-
Changes in SAP S/4HANA communicated via events in real time to extension application
-
Compute intensive processing available on demand (using serverless)
-
Vendor personnel needs access to only custom app
The Business Partner Validation application is developed using CAP and runs on the SAP BTP, Kyma runtime. It consumes platform services like SAP Event Mesh, SAP HANA and Connectivity. The events occuring in SAP S/4HANA on-premise are inserted into the SAP Event Mesh queue. The application running in Kyma is notified on events, consumes them from the queue and inserts the event data into the SAP HANA database. The Business Partner Validation Application uses SAP S/4HANA REST API's to read additional Business Partner Data from the SAP S/4HANA system. in a next step, the Business Partner Validation App uses an event-driven approach as well by firing events that get consumed by Serverless Function which posts the relevant business partner data to SAP S/4HANA on-premise system using SAP S4/HANA OData api's.
- SAP S/4HANA on-premise system
- SAP BTP account
- Node.js
- kubectl command line tool
- Visual Studio Code
- cds-dk
- SQLite
- Docker
- Get the required tools as mentioned in the CAP documentation
The application requires the following set of Entitlements and Quotas in the SAP BTP cockpit:
Service | Plan | Number of Instances |
---|---|---|
SAP HANA Schemas & HDI Containers | hdi-shared | 1 |
SAP HANA Cloud | tools | Subscription |
SAP HANA Cloud | hana | 1 |
Event Mesh | default | 1 |
Kyma runtime | 1 | |
Connectivity Service | connectivity_proxy | 1 |
Launchpad Service | standard | Subscription |
- Configure Your Global Account and Subaccounts in SAP BTP
- Configure Command Line Tool kubectl
- Create an SAP HANA Cloud Instance
- Determine Placeholder Values
- Deploy the Application to SAP BTP Kyma Runtime
- To start your Business Partner Validation Application go to Instances and Subscriptions.
- Find Launchpad Service and click to open the application.
- On the website, find your created website and click on the tile to open it.
- Click on the Business Partner Validation tile.
- The list of Business Partners along with their Verification Status gets displayed.
- Log in to the SAP S/4HANA on-premise system.
- Enter the transaction code bp.
- Choose Person.
-
Move to the Status tab and check mark the Central Block lock. Choose Save to create the new Business Partner.
- Now go back to the Business Partner Validation application to see if the new Business Partner appears on the UI.
- Go to the details page for the new Business Partner. Choose Edit.
- Change the Verification Status to Verification Status: VERIFIED. You can also edit the street name, postal code also if needed. Save the data.
- Open SAP S/4HANA system, bp transaction. Search for the newly created BusinessPartner.
- Double click on the Business Partner.
- You can see that the Central Block lock has been removed.
- The serverless application has also uploaded a QR code for the address details of the Business Partner to the SAP S/4HANA system. You can view this by clicking on the arrow icon in the top left corner. You will have to give permission for downloading the image.
- You can also notice that in the Business Partner Validation UI, the status is now set as COMPLETED.
No known issues.
In case you find a bug, or you need additional support, please open an issue here in GitHub.
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.