Giter Site home page Giter Site logo

sap-samples / btp-s4hana-kyma-business-process-extension Goto Github PK

View Code? Open in Web Editor NEW
3.0 7.0 13.0 38.56 MB

This sample code showcases a side-by-side extension scenario for S/4 HANA. This sample explains how to complement an existing business process in an SAP solution, i.e. SAP S/4HANA On-Premise with additional business process steps in SAP BTP Kyma Runtime. This involves adding major logic and/or additional data and goes beyond simple UI changes.

License: Apache License 2.0

Makefile 1.42% Dockerfile 0.30% CAP CDS 8.24% JavaScript 49.32% HTML 5.38% Smarty 31.55% Shell 3.79%
kyma sample sample-code sap-btp sap-btp-kyma-runtime sap-s4hana

btp-s4hana-kyma-business-process-extension's Introduction

REUSE status

SAP S/4HANA Extend Business Process Scenario in SAP BTP, Kyma Runtime

Description

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:

We also have a Discovery center mission on Extend SAP S/4HANA Business Processes on SAP BTP, Kyma Runtime using this reference application.

Business Scenario

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

Architecture

Solution Diagram

solution diagram

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.

Requirements

  • SAP S/4HANA on-premise system
  • SAP BTP account

Prerequisites

Entitlements

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
SAP Build Work Zone standard/free Subscription

Configuration

Step 3: Build and Deploy the CAP Application

Demo Script

  1. To start your Business Partner Validation Application go to Instances and Subscriptions.
  2. Find SAP Build Work Zone and click to open the application.
  3. On the website, find your created website and click on the tile to open it.
  4. Click on the Business Partner Validation tile.

fiori tile

  1. The list of Business Partners along with their Verification Status gets displayed.

BP list

  1. Log in to the SAP S/4HANA on-premise system.

S/4HANA login

  1. Enter the transaction code bp.

bp transaction

  1. Choose Person.

person

  1. Provide First name and Last name for the Business Partner. name

  2. Provide the address. address

  3. Move to the Status tab and check mark the Central Block lock. Choose Save to create the new Business Partner.

lock

  1. Now go back to the Business Partner Validation application to see if the new Business Partner appears on the UI.

new bp

  1. Go to the details page for the new Business Partner. Choose Edit.

edit bp

  1. Change the Verification Status to Verification Status: VERIFIED. You can also edit the street name, postal code also if needed. Save the data.

edit values

  1. Open SAP S/4HANA system, bp transaction. Search for the newly created BusinessPartner.

search bp

  1. Double click on the Business Partner.

click bp

  1. You can see that the Central Block lock has been removed.

release lock

  1. 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.

attachment List

  1. You can also notice that in the Business Partner Validation UI, the status is now set as COMPLETED.

Known Issues

No known issues.

How to Obtain Support

In case you find a bug, or you need additional support, please open an issue here in GitHub.

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.

btp-s4hana-kyma-business-process-extension's People

Contributors

divya-shanmugamb avatar gopalanand333 avatar ospo-bot[bot] avatar shankarigr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

btp-s4hana-kyma-business-process-extension's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.