Skip to main content

Build Events-to-Business Actions Scenarios with SAP BTP and AWS IoT SiteWise


Introduction

AWS IoT SiteWise is a managed service with which you can collect, store, organize and monitor data from industrial equipment at scale to help you make better, data-driven decisions. You can use AWS IoT SiteWise to monitor operations across facilities, quickly compute common industrial performance metrics, and create applications that analyze industrial equipment data to prevent costly equipment issues and reduce gaps in production.

In this reference architecture, events from AWS IoT SiteWise are published to SAP Integration Suite, advanced event mesh. The Node.js extension application deployed in SAP BTP subscribes to the advanced event mesh queue and executes the action that is required to be taken based on the event details. SAP Event Mesh capability in SAP Integration Suite can also be leveraged for integration. The choice of the eventing service can be based on the scenario and volume of events to be handled.

Solution Architecture

image of solution diagram
Copy to clipboard

Solution Diagram Resources
You can download the Solution Diagram as a .drawio file for offline use. Alternatively, you may view and edit the Solution Diagram directly on draw.io.
Please note that any changes made online will need to be saved locally if you wish to keep them.

The following steps depicts the information flow across systems:

  1. An application administrator logs into SAP BTP Extension application based on Events to Business Actions Framework via SAP Build Work Zone, standard edition, to configure the business rules/decisions and the business actions that needs to be triggered in the business systems.

  2. AWS IoT SiteWise Edge at the factory captures the equipment parameters like vibration, temperature, and forwards it to AWS IoT SiteWise which then dumps these events into Amazon S3, which triggers an AWS Lambda function. It detects anomaly in these events and publishes such events to the SAP Integration Suite, Advanced Event Mesh.

  3. As the processor module's (part of the Events-to-Business-Action framework) subscribes to Advanced event mesh, the event is received.

  4. Processor module (part of the Events-to-Business-Action framework) leverages the Decisions capability of SAP Build Process Automation to derive business action (for example, plant Maintenance Notification/purchase order requisition creation in SAP S/4HANA) based on certain characteristics of incoming event.

  5. The framework integrates with SAP AI Core to invoke a deployed Amazon Bedrock Claude 3 Sonnet model. This model processes raw, hard-to-read incoming IoT event data and generates easy-to-read summaries of the event payload. These summaries are then automatically populated into the maintenance notification description, improving readability and providing enhanced clarity for maintenance teams. With this we prepare a complete payload which is used to execute the business action in SAP S/4HANA system (in this PoC we create a Plant Maintenance Notification)

  6. The defined action is triggered in SAP S/4HANA using the SAP Destination service and SAP Connectivity service leveraging Private Link setup. In case SAP S/4HANA and SAP BTP are not on same Hyperscaler, communication with SAP S/4HANA happens via SAP Cloud Connector service.

List of Services and Components

These are the technical prerequisites for integration between AWS IoT SiteWise, SAP BTP and SAP S/4HANA.

SAP BTP Services

  • SAP Cloud Foundry Runtime
    • Foundation for running the CAP extension application for translating events to business actions.
  • Authorization and Trust Management Service
    • Required for securing the extension application in SAP BTP
  • SAP Integration Suite,advanced event mesh
    • Required to receive events from Amazon AWS IoT
  • SAP HANA Cloud
    • Required to store action configuration and logs for the CAP application
  • SAP Build Process Automation
    • Decision service to configure business decisions that needs to be taken based on the type of event received from AWS IoT SiteWise.
  • SAP Connectivity Service
    • To establish connections between cloud applications and on-premise systems
  • SAP Destination Service
    • To find the destination information required to access a remote service or system from your extension application.
  • SAP Private Link Service
    • To establishe a private connection between selected SAP BTP services and selected services in your own IaaS provider accounts.
  • SAP AI Core
    • SAP AI Core supports full lifecycle management of AI scenarios and also provides access to generative AI capabilities of LLM Models like Amazon Bedrock via the generative AI hub.
  • SAP AI Launchpad
    • SAP AI Launchpad is a multi-tenant software as a service (SaaS) application in SAP Business Technology Platform that provides generative AI capabilities via the Generative AI Hub. Customers and partners can use SAP AI Launchpad to manage AI use cases (scenarios) across multiple instances of AI runtimes (such as SAP AI Core).

AWS Cloud Products

  • A valid Amazon AWS subscription
  • AWS IoT SiteWise
    • Required for receiving and sending the events whenever an abnormality is detected in the equipment.
  • Amazon S3
    • Required to store the received streaming event data.
  • AWS Secret Manager
    • Required to store the SAP Integration,advanced event mesh credentials that are accessed by the Amazon Lambda Function.
  • Amazon Lambda Function
    • Required to orchestrate the process of detecting a stream contains any alerts related to failure or warnings, and then the inference result is passed to SAP Integration Suite Advanced Event Mesh.

For detailed step by step information and to try out the integration, go to GitHub Samples

Refer to Integrating Amazon Rekognition and SAP EHS with SAP BTP for PPE Detection for another reference application implementation.