This repository contains the sample code for the Situation Handling Automation tutorial.
This code is only one part of the tutorial, so please follow the tutorial before attempting to use this code.
The Situation Handling Automation tutorial uses the "Contract Is Ready as Source of Supply" situation type. The situation scenario covers contract handling in SAP S/4HANA Cloud.
Every time a contract is created or changed, the system automatically checks whether there are purchase requisitions without a source of supply. Persons responsible receive a notification and can assign the contract as a source of supply to the purchase requisitions.
With this extension sample, the manual assignment is automated based on business rules maintained in the SAP BTP rules engine using the context information of business documents. In the sample, the rule is based on the Material Group belonging to the requested product.
This tutorial is one of multiple tutorials that make up the SAP Extensibility Explorer for SAP S/4HANA Cloud. SAP Extensibility Explorer is a central place where anyone involved in the extensibility process can gain insight into various types of extensibility options. At the heart of SAP Extensibility Explorer, there is a rich repository of sample scenarios which show, in a hands-on way, how to realize an extensibility requirement leveraging different extensibility patterns.
- An SAP Business Technology Platform (BTP) subaccount in the Neo environment with the Workflow, Business Rules and Portal service enabled and an SAP Business Technology Platform (BTP) Java server of any size.
- An SAP Business Technology Platform (BTP) subaccount in the Cloud Foundry environment with the Enterprise Messaging service enabled.
- An SAP S/4HANA Cloud tenant. This is a commercial paid product.
- Java SE 8 Development Kit (JDK) to compile the Java application.
- Apache Maven to build the Java application.
This repository is a part of the Download the Application step in the tutorial. Instructions for use can be found in that step.
Please download the zip file by clicking here so that the code can be used in the tutorial.
If you are working with an SAP Business Technology Platform_Trial_ account, you must add the following 2 properties to the destination so that the connection to SAP S/4HANA Cloud works:
proxyHost = proxy-trial.od.sap.biz
proxyPort = 8080
If you have issues with this sample, please open a report using GitHub issues.
Copyright © 2024 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.