Understanding the Event Mesh Capability in SAP Integration Suite

Objective

After completing this lesson, you will be able to identify the functionality and patterns of SAP Event Mesh.

Event Mesh Capability Overview

In addition to the standalone SAP Event Mesh solution, Event Mesh is also available as a capability within SAP Integration Suite. The functionality is identical to the standalone version, but implementation and usage differ.

Supported Patterns:

The Event Mesh capability in SAP Integration Suite supports the following event-driven architecture (EDA) patterns:

Publish/Subscribe
Core functionality that allows multiple subscribers to receive events, enabling loosely coupled systems
Point-to-Point
Direct messaging between sender and receiver via queues for targeted delivery

Deployment Options:

Event Mesh is only available as a capability within the SAP Integration Suite.

Dashboard showing Event Mesh overview; left menu highlights Event Mesh. Message Client section lists cmis-software as the client name.

Use Cases

The Event Mesh capability in SAP Integration Suite can be applied in various scenarios across modern enterprise environments.

In the area of Enterprise Application Integration, it enables event-based integration between systems such as SAP S/4HANA, SAP BTP, SAP SuccessFactors, and third-party applications. This approach reduces system dependencies and supports a reactive architecture.

For IoT Integration and Edge Computing, it connects IoT sensors and edge devices with enterprise systems. A typical example is predictive maintenance in the manufacturing industry, where real-time data from machines enables proactive service and reduced downtime.

In the context of Omnichannel Customer Experience, it provides real-time notifications for customers in e-commerce, banking, or service environments. It also ensures synchronization across e-commerce, CRM, and ERP systems, enabling a consistent and seamless customer journey.

Regarding financial transactions and payment systems, it supports the asynchronous processing of financial transactions. At the same time, it ensures data integrity and reliable message delivery, which are critical requirements in financial environments.

Read More

Exploring the Event Mesh capability of SAP Integration Suite: A YouTube video providing an in-depth exploration of the Event Mesh capability in SAP Integration Suite, showcasing its features, use cases, and practical applications.

Overview Use Case and Exercises

A solution architecture is designed and implemented that fulfills the following business requirement: When a Business Partner record is changed in the SAP S/4HANA Cloud Public Edition, a change event is to be sent to the Event Mesh capability in SAP Integration Suite. An iFlow receives this event and processes it further.

In this example, we limit ourselves to a single change event. Processing in the iFlow is carried out by a simple Groovy Script.

The implementation spans several systems and involves various personas. For a better overview, however, a strict separation of roles is deliberately avoided. It means that no distinction is made between SAP BTP administrators, integration specialists, SAP S/4HANA administrators, or developers.

Diagram showing SAP BTP Subaccount with Integration Suite, Event Mesh instance message-client, service key, Event Mesh, Cloud Integration, and connection to S/4HANA Cloud.

Description

  • SAP Integration Suite is subscribed to an SAP BTP subaccount.
  • An event mesh instance with the message-client plan is created.
  • A queue and a topic subscription are created in the SAP Integration Suite Event Mesh capability.
  • The Cloud Integration capability in SAP Integration Suite retrieves the event from the queue and processes it.
  • The SAP S/4HANA Cloud, Public Edition, fires the event.
A workflow diagram with 13 steps for EDA demo across S/4HANA and SAP Subaccount. It includes logging in, activating EMS and Cloud Integration, creating API credentials, and creating subscriptions and flops.

Description of the Demo Process

Each individual step is described in detail below.

  • Log in to the SAP BTP subaccount.
  • Log in to SAP Integration Suite and activate the Event Mesh capability.
  • Activate the Cloud Integration capability in SAP Integration Suite.
  • Add the necessary role collection to the platform user.
  • Create a message client by creating an SAP Integration Suite, Event Mesh instance.
  • Create an OAuth 2.0 client by creating a service key on the SAP Integration Suite, Event Mesh instance.
  • Create an Event Mesh queue.
  • Log in to the SAP S/4HANA Cloud Public Edition.
  • Create a Communication Arrangement as a communication channel.
  • Configure an Outbound Topic to the communication channel.
  • Create a subscription in the Event Mesh queue.
  • Create the access authorizations for the inbound adapter in Cloud Integration.
  • Create an iFlow to retrieve the business event (cloud event) from the Event Mesh queue.

Task 1: Log in to the SAP BTP Subaccount

The Event Mesh capability is hosted in SAP Integration Suite in an SAP BTP subaccount. Therefore, the user must first log in to the corresponding SAP BTP subaccount. In this step, we log in to the development SAP BTP subaccount.

Workflow diagram of EDA-Demo starting from S/4HANA SAP Subaccount to Integration Suite, showing steps: Log in, Activate EMIS, Activate Cloud Integration, Add Role Collections, Create EMIS Instance, and Create Queue.

Prerequisites

The role collection Subaccount Administrator must be assigned to the platform user.

Steps

  1. Log in to the SAP BTP subaccount

  2. Call: https://emea.cockpit.btp.cloud.sap

  3. Select the global account and subaccount. Here is an example - CLD900-DEV-CO21.

  4. Authentication against the SAP IDP or Custom IDP with the user and password.

    Result

    Subaccount Overview

    The user is logged in as an SAP BTP administrator on the development SAP BTP subaccount.

    Further Information

    Event Driven Integrations - Video: Event-driven Integrations: Discovering SAP Integration Suite’s Event Mesh Capabilities.

Activate the Event Mesh Capability in SAP Integration Suite

The event triggered by the SAP S/4HANA Cloud, public edition is sent asynchronously to the Event Mesh capability in SAP Integration Suite. The event is stored in a queue there. Therefore, the Event Mesh capability must first be activated.

In this exercise, the Event Mesh capability in SAP Integration Suite is activated.

Prerequisites

  • The role collections Integration_Provisioner and Subaccount Administrator are assigned to the user who activates the capability.
  • An SAP Integration Suite instance with service plan free or standard edition is already subscribed to the subaccount.

Note

For participants attending an on-site training only: This exercise will be discussed theoretically by your trainer and will not be carried out on the training system.

Task 1: Activate the Event Mesh Capability in SAP Integration Suite.

Steps

  1. Log in to the Integration Suite.

  2. Navigate to Home.

    A workflow diagram with columns for S/4HANA, SAP Subaccount, Integration Suite/Event Mesh, and Cloud Integration. It involves logging in, activating Event Mesh, creating an EMIS instance and service key, and creating a queue.
  3. Depending on whether capabilities are already activated or not, the activated capabilities are displayed here. In this case, none are activated yet.

  4. Search for the Add Capabilities tile.

  5. Click on the Add Capabilities link.

  6. Click on the Add Capabilities button.

  7. Select Manage Business Events.

  8. Activate Event Mesh.

    Screenshot of SAP Integration Suite. Features a blue section describing event response services with a button labeled Explore More. Below, there's a box noting no added capabilities yet and a button labeled Add Capabilities.
  9. Click on Next.

  10. Then, click on the Activate button.

    Screenshot of the Activate Capabilities section showing step 2, Summary. The capability listed is Event Mesh. Navigation buttons labeled Previous, Activate, and Cancel are at the bottom.
  11. If the action was successful, the active capability Event Mesh is displayed.

    Screenshot of the provisioning page for subdomain CLD920-DEMO-STORE-z40q6gao9. Shows Event Mesh capability as active and option to deactivate it. Button for adding capabilities visible in top right corner.
  12. Click on the OK button to return to the SAP Integration Suite Welcome page.

Result

A webpage showing capabilities for managing enterprise-wide integration. Highlighted section is Manage Business Events. The Explore More button is at the top left.

The Event Mesh capability is activated in SAP Integration Suite. However, the Event Mesh capability cannot yet be used as the required authorizations are missing. These are assigned in a later exercise.

Activate the Cloud Integration Capability in SAP Integration Suite

The event fired by SAP S/4HANA Cloud is to be read from Event Mesh and further processing is to be triggered. The Cloud Integration capability is used for this purpose.

In this exercise, the Cloud Integration capability is activated.

Flowchart showing steps for EDA-Demo in SAP Subaccount: Log in, Activate EMIS, Activate Cloud Integration, Add Role Collections, Create EMIS Instance, Create EMIS Instance Service Key, and Create Queue.

Prerequisites

  • The Integration_Provisioner and Subaccount Administrator role collections must be assigned to the user activating the capability.
  • An SAP Integration Suite instance with a service plan free or standard edition is already subscribed to the subaccount.

Note

For participants attending an on-site training only: This exercise will be discussed theoretically by your trainer and will not be carried out on the training system.

Task 1: Activate the Cloud Integration Capability in SAP Integration Suite

Steps

  1. Log in to the Integration Suite.

  2. Navigate to Home.

    A webpage showing end-to-end monitoring for integration scenarios in SAP Cloud ALM. Options include Managing Business Events and Managing Capabilities (this is highlighted). Navigation menu on the left with Home and Settings icons.
  3. Depending on whether capabilities are already activated or not, the activated capabilities are displayed here. In this case, Event Mesh is already activated.

  4. Search for the Manage Capabilities tile.

  5. Click on the Manage Capabilities link.

  6. Click on the Add Capabilities button.

    Screen shows provisioning details for CLD920-DEMO-STORE-Z40GA09, including subdomain, service plan, provisioning date, and capabilities like Event Mesh (active). Add Capabilities is highlighted.
  7. Select Build Integration Scenarios.

    Screenshot of SAP Integration Suite activation, highlighting the checkbox for Build Integration Scenarios and the Next button at the bottom.
  8. Click on Next.

  9. Select Production or Non-Production as the environment.

  10. Activate the message queues.

    Activate Capabilities wizard, step 2: Cloud Integration. Environment: Non-Production. Message Queues: 15. Buttons at the bottom labeled Previous, Next, and Cancel. Highlight around Non-Production, 15, and Next.
  11. Click on Next.

  12. Click on Activate. The activation process can take up to an hour.

Result

Screenshot of a provisioning interface showing various statuses and details, such as tenant CLD920-DEMO-STORE-Z40QGAO9, Cloud Integration in progress, Non-Production environment, and Event Mesh active with a deactivate button. In process is highlighted.

Once Cloud Integration is successfully activated, it will be available. If Message Queues have been activated, the details will display.

Provisioning details for CLD920-DEMO-STORE-Z4Q8GAO9 with active Cloud Integration. Non-production environment, 0 message queues. Maximum 30 message queues, 9000 MB storage, and 150 JMS transactions. Active is highlighted.

Further Information

Cloud Integration: Cloud Integration is a powerful capability that enables seamless communication and data exchange across various IT landscapes—whether cloud-based, on-premise, or hybrid environments. It supports a wide range of integration scenarios.

Assigning the Required Role Collections

After activating Event Mesh and Cloud Integration, users must be granted the necessary permissions to use these capabilities. In SAP Business Technology Platform, this is done through the assignment of role collections.

In this exercise, role collections are assigned to an application user within the subaccount.

A flowchart for EDA-Demo showing steps: 1) Log in, 2) Activate EMIS, 3) Activate Cloud Integration, 4) Add Role Collections. Symbols represent Service Key and Event Topic.

Prerequisites

  • The user performing the assignment must have the Subaccount Administrator role collection.
  • In SAP Integration Suite, the Cloud Integration and Event Mesh capabilities must be activated.

Task 1: Assigning the Required Role Collections to the Application User

Steps

  1. Assigning the required role collections to the application user. In our case, the application user is the same as the platform user.

    1. Log in to the SAP BTP cockpit of the subaccount.

      A screenshot of the SAP BTP Cockpit displaying the Subaccount: CLD920-DEMO Subscriptions page. The left sidebar includes menu options such as Overview, Security, Users, and more.
    2. Open SecurityUsers and locate the application user to whom the role collections should be assigned.

      Screenshot of SAP BTP Cockpit user management for subaccount CLD900-DEV-C021, showing user details including name, identity provider, e-mail, last updated, and last logon time. User CPA highlighted.
    3. On the right, click the small black triangle at the end of the row with the application username.

    4. A panel opens to the right of the user field.

      Dashboard showing user information for subaccount CLD900-DEV-CO21 with user cp-a@education.cloud.sap, role collections, identity provider, last login, and details of creation and last update dates.
    5. The right panel can be enlarged using a slider.

    6. Click the three dots to the right of the search field, then click the Assign Role Collections link.

      Screenshot of a web interface showing role collection details with options to assign, sort, and export roles. Role collections listed under name, description, and action categories. Yellow highlighted Assign Role Collection button visible.
  2. Assigning role collections for Event Mesh.

    The Event Mesh capability in SAP Integration Suite offers two predefined role collections. There is no distinction between different roles.

    NameDescription
    EventMeshAdminManagement of the message broker, queues, and topic subscriptions, and monitoring Event Mesh usage and its resources.
    EventMeshDevelopManagement of queues and topic subscriptions, as well as monitoring Event Mesh usage and its resources.
    1. Select both role collections.

      Assign Role Collection window with selected roles EventMeshAdmin and EventMeshDeveloper highlighted. Assign Role Collection button is highlighted in yellow at the bottom right.
    2. Then, click the Assign Role Collections button.

      Screenshot of SAP role collections page showing various roles and their descriptions, with EventMeshAdmin and EventMeshDeveloper highlighted in yellow.
  3. Assigning role collections for Cloud Integration

    The Cloud Integration capability offers four predefined role collections. Again, no role distinction is made.

    NameDescription
    PI_AdministratorSAP Process Integration - for administrators
    PI_Business_Expert

    SAP Process Integration - for business experts with access to critical business data

    PI_Integration_DeveloperSAP Process Integration - for users developing integration flows
    PI_Read_Only

    SAP Process Integration - read-only access for support users without access to critical business data

    1. Proceed with the assignment just like before.

    2. Select all role collections as shown in the following figure.

      Screenshot depicting the Assign Role Collection window within a SAP application. Various roles with names and descriptions are listed. Four roles are highlighted and selected at the bottom, and the Assign Role Collection button is highlighted.
    3. Then, click the Assign Role Collections button.

Result

A screenshot of role collections in SAP education cloud with highlighted roles: PI_Administrator, PI_Business_Expert, PI_Integration_Developer, and PI_Read_Only.

The application user has now been assigned all role collections for the Event Mesh and Cloud Integration. The user now has access to the Event Mesh and Cloud Integration.

Log in to SAP Integration Suite.

Screenshot of SAP Integration Suite's Event Mesh page showing spool size, connections, producers, consumers, maximum message size, and readiness status. Navigation menu with highlighted Integrations and APIs section.

In the menu bar of SAP Integration Suite, the activated capabilities, particularly Cloud Integration and Event Mesh, are now visible and usable.

Further Information

Configuring User Access to SAP Integration Suite: SAP Help: Configuration of user access to SAP Integration Suite including a detailed description of the role collections and their permissions.

Create an SAP Integration Suite, Event Mesh Instance

Using the Event Mesh capability in SAP Integration Suite requires the creation of a message client. It is done by creating an SAP Integration Suite, Event Mesh instance with the message-client service plan in the SAP BTP cockpit under ServicesInstances and Subscriptions.

In this exercise, we will create an SAP Integration Suite, Event Mesh instance using the message-client service plan.

Flowchart demonstrating steps in EDA-Demo process. Five steps marked: Log in, Activate EMIS, Activate Cloud Integration, Add Role Collections, Create EMIS Instance. Service Key and Event Topic icons on the right.

Prerequisites

  • The SAP Integration Suite, Event Mesh service with the message-client plan must be available as an entitlement in the global SAP BTP account. The service must be assigned to the development subaccount.Dashboard showing SAP service assignments for CLD900-DEV-CO21. Service: SAP Integration Suite, Event Mesh. Quota assigned: 1 unit; remaining quota: 29 units. Options to edit and manage assignments present.
  • A Cloud Foundry environment must be available. The user creating the service instance must be listed as an Org Manager under Cloud FoundryOrg Member.Subaccount Org Members
  • At least one space must exist in Cloud Foundry. Service instances are deployed within a Cloud Foundry space. In this case, it is a space named dev.Cloud Foundry space configuration screen displaying development space details, including memory usage and available services.

Task 1: Create a Service Instance

Steps

  1. Create a service instance.

    1. Navigate to ServicesInstances and Subscriptions and click the Create button.

    2. Fill in the form using the following values:

      Screenshot of SAP cloud platform showing the setup page for a new instance or subscription, with fields selected for service, plan, runtime environment, space, and instance name. The highlighted values are SAP Integration Suite, Event Mesh; message-client; Cloud Foundry; dev; emis-s4hana.
      FieldValueTask
      ServiceSAP Integration Suite, Event MeshSelect from the dropdown list
      Planmessage-clientSelect from the dropdown list
      Runtime EnvironmentCloud FoundrySelect from the dropdown list
      Spacefor example, devSelect from the dropdown list
      Instance Nameemis-s4hanaAny name of your choice
    3. Click the Create button.

    4. No additional parameters must be defined in the service descriptor.

Result

The SAP Integration Suite, Event Mesh service has been successfully created.

Screenshot showing instance named emis-s4hana in service SAP Integration Su… with plan message-client” in runtime environment Cloud Foundry, scope dev, status highlighted in yellow as Created.

A Message Client named emis-s4hana has been created in SAP Integration Suite, Event Mesh. The name is identical to the instance name.

Screenshot of Event Mesh dashboard showing resource metrics and a message client named ems-allshare highlighted.

Further Information

Create a Service Key for the Integration Suite, Event Mesh Instance

After creating the message client as an SAP Integration Suite, Event Mesh instance, a service key is generated. This key provides an endpoint via WebSockets and enables access through an OAuth 2.0 client.

In this exercise, we will generate a service key for the previously created Integration Suite, Event Mesh instance.

Flowchart showing steps to activate SAP Integration Suite. Steps: Log in, Activate Event Mesh, Activate Cloud Integration, Add Role Collections, Create EM Instance, Create EM Instance Service Key, and Create Queue.

Prerequisites

A successfully created SAP Integration Suite, Event Mesh instance.

Task 1: Create a Service Key

Steps

  1. Create a Service Key

    1. Navigate to the emis-s4hana service instance under ServicesInstances and Subscriptions.

      Screenshot of SAP Cloud Platform showing subaccount CLD900-DEV-CO21. Includes subscriptions to Integration Suite and SAP Business Application Studio and one instance of SAP Integration Suite.
    2. Click on the row of the service instance to open the details panel on the right.

    3. Click the Create button in the Service Keys section.

      Dashboard for SAP instance and subscription management, showing subscription details, instances, bound applications, service keys, and labels for the emis-s4hana instance with options to create new entries.
    4. Fill out the form using the following values:

      FieldValueTask
      Service Key Namefor example, sk-emis-s4hanaAny name of your choice
    5. Then, click the Create button to generate the service key.

      A screenshot of the New Service Key creation window where the user has entered sk-emis-s4hana as the Service Key Name and highlighted the Create button.
  2. Review the Service Key

    1. Click the name of the service key you just created.

      Screenshot of Service Keys in a GUI showing one service key named sk-emis-s4hana created on March 17, 2025, with a status of created.
    2. Upon opening the service key, you see three sections. Section 1 is relevant for us. For security reasons, some parts are masked with the following characters: "%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%"

      Screenshot of a code snippet in JSON format highlighting two URIs. Label 1: URI for amqpws protocol. Label 2: URI for httprest protocol.
    3. We communicate with the Event Mesh using:

      NameValue
      Transmission ProtocolAMQP (Advanced Message Queuing Protocol)
      Transport LayerTCP
      Network ProtocolWebSocket
      WebSocketURI wss://cld900……./amqp10ws
    4. With the clientid, clientsecret, and tokenurl, a bearer token can be generated to access the endpoint shown under URI. From a technical point of view, this is an OAuth 2.0 client.

  3. Copy the Service Key

    For configuring the communication channel in SAP S/4HANA Cloud, we need this service key. Therefore, copy the entire service key and store it securely for later use.

    1. In the open service key window, click the Copy JSON button at the bottom and save the service key in a secure location.

Result

Under ServicesInstances and Subscriptions, you now see the generated service key.

Screenshot of Instances and Subscriptions for subaccount CLD900-DEV-CO21 showing subscriptions to Integration Suite and SAP Business Application Studio, and one instance of SAP Integration Suite created.

Further Information

Create a New Queue in Event Mesh

The change event triggered by SAP S/4HANA Cloud Public Edition should be temporarily stored in a queue before being consumed by a consumer. For this purpose, a queue must be created in the previously created message client.

In this exercise, a queue is created in the message client provisioned via the SAP Integration Suite, Event Mesh instance.

Flowchart showing steps: Log in, Activate EM, Activate Cloud Integration, Add Role Collections, Create EM Instance, Create EM Instance Service Key, Create Queue. Icons for Service Key and Event Topic.

Prerequisites

  • A subscribed SAP Integration Suite.
  • An activated Event Mesh capability.
  • The required role collections for Event Mesh must be assigned to the platform user.
  • An existing SAP Integration Suite, Event Mesh instance with the message-client plan.

A message client named emis-s4hana was created in a previous step.

Screenshot of SAP Integration Suite's Event Mesh page showing Overview and Queues tabs. Message client name enzo-s4evm is displayed with details of spool size, connections, producers, and consumers on the left.

Task 1: Create a Queue in a Message Client

Steps

  1. Create a Queue in a Message Client in Event Mesh

    1. Log in to SAP Integration Suite.

    2. Navigate to ConfigureEvent Mesh.

    3. Click on the message client name emis-s4hana.

      Screenshot of SAP Integration Suite's Event Mesh page showing no event queues for emis-s4hana. Options include Create and Refresh. Main menu on the left side includes Home, Discover, Design, Test, Configure, APIs, Monitor, and Analyze sections.
    4. Select the Queues tab.

    5. Click the Create button.

    6. Provide a meaningful name for the queue, for example, emis-s4hana-uc123.

      Screen displaying Queue creation settings with fields for Namespace, Name (emis-s4hana-uc123), Access Type, Queue Size, Message Size, Max Unacknowledged Messages, Max Redelivery Count, Dead Message Queue, and Max Time-to-live.
    7. Then, click the Create button.

Result

Webpage showing message queue details for emis-s4hana, including queue size, messages queued, unacknowledged messages, access type of NON EXCLUSIVE, and an action button for creating or refreshing.

A queue named emis-s4hana-uc123 has been successfully created within the Event Mesh message client.

Further Information

Create A Queue: When sending messages using AMQP 1.0 over WebSocket, those messages need to be routed somewhere—either to a queue or a topic. This guide explains how to create a queue in Event Mesh and configure its key properties.

Log in to SAP S/4HANA Cloud Public Edition

The SAP S/4HANA Cloud Public Edition acts as the event producer. To configure the event framework, we first must log in to SAP S/4HANA Cloud Public Edition as a business user.

In this exercise, we will log in to the SAP S/4HANA Cloud Public Edition using a username and password.

Flowchart depicting steps to create a queue and subscription. Includes Log in, Create Communication Channel, Create Outbound Topic Binding, Create Credentials, and Create iFlow steps.

Prerequisites

In SAP S/4HANA Cloud Public Edition, the login user must be maintained as a Business User with the BR_ADMINISTRATOR business role.

Log in to SAP S/4HANA Cloud Public Edition

Task 1: Log in as a Business user to SAP S/4HANA Cloud Public Edition

Steps

  1. Open the relevant URL, for example: https://myxxxx.s4hana.ondemand.com

    1. Log in using your username and password.

    2. Open the Maintain Business Users app.

      SAP dashboard showing three options: Maintain Business Users, Maintain Business Users (highlighted), Maintain Deleted Business Users. Contains locked users count as 1234.
    3. Click the Maintain Business Users tile.

    4. Search for your login user using the search field and click the Go button.

      SAP Business Users interface with fields for User ID, User Name, First/Last Name, and various filters. Button options include New, Delete, Edit, Lock/Unlock, Download, Upload, Display Changes.
    5. Click on the row containing your user.

      Screenshot of SAP Maintain Business Users interface showing a table with three entries, including user names, business partner IDs, user IDs, logged-on status, and additional user details.
    6. Switch to the Assigned Business Roles tab.

    7. Verify that your user has the business role BR_ADMINISTRATOR assigned.

Result

Screenshot of SAP interface showing assigned business roles, including Administrator with role ID BR_ADMINISTRATOR. Other roles listed with IDs in blue. User info visible at the top section.

The business user is successfully logged in and has the BR_ADMINISTRATOR business role assigned.

Further Information

Authorizing Business Users: Learn how to authorize business users within integrated SAP products. This process ensures that users have the appropriate permissions and access rights needed to interact securely with the system and perform their business tasks effectively.

Create a Communication Channel for Communication with SAP Integration Suite, Event Mesh

To enable SAP S/4HANA Cloud Public Edition to send events to Event Mesh, a communication channel must be created as a communication arrangement within SAP S/4HANA Cloud Public Edition.

In this exercise, we will create a communication arrangement in SAP S/4HANA Cloud Public Edition. Authentication is done using the service key of the SAP Integration Suite, Event Mesh instance with the message-client plan.

Flowchart showing steps: Create Queue, Log in, Create Communication Channel, Create Outbound Topic Binding, Create Subscription, Create Credentials, and Create iFlow with respective icons.

Prerequisites

In SAP S/4HANA Cloud Public Edition, the login user must be maintained as a Business User with the BR_ADMINISTRATOR business role.

Task 1: Create a Communication Arrangement

Steps

  1. Log in to SAP S/4HANA Cloud Public Edition.

    1. Launch the Communication Arrangements app.

      Screenshot of SAP Communication Arrangements interface showing various arrangement names, scenario IDs, scenarios, and communication systems, with options to search and edit records.
    2. Click the New button.

    3. In the Scenario field, search for and select Enterprise Eventing Integration with Scenario ID SAP_COM_0092.

      Pop-up window for New Communication Arrangement with fields for Scenario and Arrangement Name. Create and Cancel buttons are at the bottom. Magnifying glass icon next to Enter Scenario field.
    4. Click the selected entry to confirm and transfer it to the Scenario field.

      Screenshot of SAP interface showing a search box titled Select Communication Scenario. Below, SAP_COM_0092 is highlighted under Enterprise Eventing Integration.
    5. After selecting the Scenario ID, the previously created Service Key from the SAP Integration Suite, Event Mesh instance must be pasted into the Service Key field.

    Note

    Before pasting, the service key must be manually extended with the following entry inside the messaging section of the amqp10ws configuration: The namespace must consist of exactly three segments. In this example: demo/ s4hc/e4l.

    1 ........
    2 "namespace": "demo/s4hc/e4l",
    3 "messaging": [ .......
    1. Then, paste the extended service key into the Service Key field.

    2. Choose a name for the Arrangement. It must not start with SAP and must not contain hyphens (-).

    3. Next, assign an Inbound Communication User or create a new one using the New button.

      ClientID, ClientSecret
    4. Then, click the Create button.

    5. If everything is valid, the communication arrangement is successfully created, for example, with the name ESA-DEMO_0092.

      SAP configuration interface for a communication arrangement. Channel, Inbound, and Outbound Communication fields are visible. Highlighted text includes EDA_DEMO_0002, API names, and URL links.

      The previously entered values—such as the extended service key, the namespace, and the communication arrangement name—are visible in various sections of the created arrangement.

Result

A communication arrangement has been successfully created, enabling the Enterprise Eventing scenario to connect to the Event Mesh message client. It allows both system events and custom events to be sent to the Event Mesh queue.

Further Information

Create a Communication Arrangement To enable integration between your SAP system and external systems, you need to set up a communication arrangement using a predefined scenario. This guide explains how to create such an arrangement using the SAP_COM_0560 communication scenario.

Configure Outbound Topics for the Communication Channel

In the previous step, the technical connection between SAP S/4HANA Cloud Public Edition and the Event Mesh capability in SAP Integration Suite was established via a communication arrangement. To enable event transmission, the events must now be assigned to a topic. A topic serves as a logical address for events and enables the routing of message traffic within Event Mesh. Each event must be assigned to a specific topic so it can be received and processed by subscribers. This assignment is done by defining corresponding event topics in the SAP S/4HANA Cloud system, which are then registered and processed through the Event Mesh queues. Without this binding to a topic, events cannot be properly published or consumed within Event Mesh.

In this step, we bind existing business events to the previously created communication channel.

Flowchart diagram illustrating steps to create a communication channel and credentials, marked with red steps 7, 8, 9, and 10, interconnected with subscription, queue, outbound topic binding, and iFlow creation.

Prerequisites

In SAP S/4HANA Cloud Public Edition, the login user must be configured as a Business User with the BR_ADMINISTRATOR business role.

Task 1: Assign Topics

Steps

  1. Assign topics to the communication channel

    1. In SAP S/4HANA Cloud Public Edition, navigate to the Enterprise Event Enablement app.

      SAP Maintain Event Channel Binding interface showing a list of 11 channels. EDA_DEMO_0092 is highlighted in yellow and marked active. Four channels are inactive, while others are active.
    2. Locate the communication arrangement you just created—referred to here as a Channel. In our case, this is EDA_DEMO_0092.

    3. Click on the entry.

    4. A detail page opens.

    5. Verify that the correct channel is selected and that it is active.

      SAP interface showing EDA_DEMO_0092 channel details for Enterprise Event Enablement, active status with no outbound or inbound topic bindings or subscriptions available.
    6. Select the Outbound Topic Bindings tab.

    7. Click the Create link.

    8. Then, click the selection icon in the search field on the right.

    9. A search mask appears, it shows all available topics in the system. Each topic corresponds to an event that can be triggered.

      Select Topic dialog box showing a list of available topics and API states under Items, with a search area above. Total items listed are 658.Channel Binding
    10. Search for Business Partner events by entering the search term Business into the search field.

    11. Then, select the following topics:

      1 sap/s4/beh/businesspartner/v1/BusinessPartner/Changed/v1
      Screenshot of SAP interface showing Event Filter Expression field with a highlighted topic. Create and Cancel buttons are at the bottom. Top bar displays navigation icons and text Test 15/100.

      If the assignment was successful, the selected topic name displays.

      SAP channel interface showing outbound topic bindings with one API released, no inbound topic bindings or subscriptions available.
    12. Copy the topic name. You will need it in the next step in Event Mesh.

Result

We have now assigned a topic (or event) to the channel (that is, a communication arrangement). This completes all the required preparations within SAP S/4HANA Cloud Public Edition.

Further Information

Business Event Handling: Explore how Business Event Handling provides a standardized, system-wide mechanism for managing events related to SAP object types in SAP S/4HANA Cloud public edition. This feature allows applications, partners, and customers to consume events and extend business processes using SAP Business Technology Platform. Leveraging a publish-subscribe pattern with tools like Event Mesh, it enables efficient communication between event producers and subscribers across multiple systems.

Create a Topic Subscription in the Event Mesh Queue

After configuring SAP S/4HANA Cloud Public Edition to emit business events, we now must register the topic name of the selected event, sap/s4/beh/businesspartner/v1/BusinessPartner/Changed/v1, in the Event Mesh queue that was previously created.

In this exercise, we will add a topic subscription to the queue created earlier.

Diagram showing flow: Create Queue, Log in, Create Communication Channel, Create Outbound Topic Binding, Create Subscription, Create Credentials, then Create iFlow. Steps numbered 7 to 11.

Prerequisites

  • A subscribed SAP Integration Suite.
  • An activated Event Mesh capability in SAP Integration Suite.
  • The required role collections for Event Mesh must be assigned to the platform user.
  • An existing SAP Integration Suite, Event Mesh instance with the message-client plan.

Note

Task 1: Create a Topic Subscription in the Previously Created Queue

Steps

  1. Create a topic subscription in the previously created queue.

    1. Open SAP Integration Suite.

    2. Navigate to ConfigureEvent Mesh.

      Event Mesh configuration screen shows an overview of space size, connections, producers, and consumers. Message Client section highlights emis-shana with a unique ID.
    3. Click on the previously created Message Client, here named emis-s4hana.

    4. A detail view opens, showing all queues configured within this message client.

      Dashboard showing event queues for emis-s4hana. One queue, emis-s4hana-ut123, is listed with 0 bytes size and 0 messages. Access type is non-exclusive.
    5. Click on the name of the queue.

    6. A new screen opens.

      Screenshot displaying queue details for emis-s4hana-uc123. Subscriptions tab is highlighted, showing no queue subscription found with options to create, refresh, and search.
    7. Click the Create button in the selected queue here: emis-s4hana-uc123.

    8. Construct the topic subscription using the following schema:

      • Namespace from the extended service key: demo/s4hc/e4l
      • Topic name of the outbound event: sap/s4/beh/businesspartner/v1/BusinessPartner/Changed/v1
      • Separator: ce
    9. Final topic subscription: demo/s4hc/e4l/ce/sap/s4/beh/businesspartner/v1/BusinessPartner/Changed/v1

    10. Copy the topic subscription into the Topic Name field of the Create Topic Subscription form.

      Screenshot showing Create Topic Subscription dialog with topic name input as sap/s4/beh/businesspartner/v1/BusinessPartner/Changed/v1 and Create button highlighted.
    11. Confirm by clicking the Create button.

Result

Event Mesh Queue Details page showing subscription topic as sap/s4/beh/businesspartner/v1/BusinessPartner/Changedv1 highlighted in yellow. Options to create, refresh, and search are visible.

All necessary preparations on the Event Mesh side now have been completed to receive business events from SAP S/4HANA Cloud public edition into the Event Mesh capability in SAP Integration Suite.

Create Credentials for Inbound Adapter

Now, let's read and further process the Business Event (Cloud Event). In the following example, we will create an iFlow using Cloud Integration. The iFlow pulls messages using an AMQP inbound adapter. To configure this adapter, OAuth2 Client Credentials are required. These credentials are managed under Manage Security Material.

In this exercise, we will create the required OAuth2 Client Credentials under Manage Security Material.

Flowchart displays step-by-step process with numbered circles, showing tasks like creating queue, subscription, communication channel, and credentials. Arrows indicate sequence and decision points.

Prerequisites

  • The Cloud Integration capability must be successfully activated in SAP Integration Suite.
  • The integration user must be assigned the PI_Integration_Developer and/or PI_Administrator role collections.

Create Credentials for Inbound Adapter

Note

Task 1: Create OAuth2 Client Credentials

Steps

  1. Create OAuth2 client credentials for the AMQP inbound adapter under Manage Security.

    1. In your SAP BTP subaccount, navigate to ServicesInstances and Subscriptions.

    2. Click the Integration Suite link.

      Screenshot of SAP Cloud Platform showing Subaccount CLD900-DEV-CO21, with two subscribed applications: Integration Suite and SAP Business Application Studio
    3. In SAP Integration Suite, go to MonitorIntegrations and APIs.

      Screenshot of SAP Integration Suite's interface, highlighting the Monitor section in the sidebar with selected options of Integrations and APIs and Security Material with key metrics displayed on the main panel.
    4. Click on the Security Material tile.

      Screenshot of SAP Integration Suite interface showing Manage Security Material. Sidebar has options like Home, Discover, Design, Integration and APIs. Main panel displays empty security material list.
    5. Click the Create button in the upper-right corner.

    6. From the dropdown list, select OAuth2 Client Credentials.

    7. Fill in the form fields with the data from the service key of the SAP Integration Suite, Event Mesh instance.

      Screenshot of Create OAuth2 Client Credentials dialog box in an application. Fields visible include Name, Description, Token Service URL, Client ID, Client Secret, Client Authentication, and more.
    8. Click Deploy.

Result

SAP Integration Suite interface showing Security Material named emis with OAuth2 Client Credentials type, status deployed, and deployment details pane highlighted.

The required OAuth2 client credentials have been saved under the name emis in the Manage Security Material section.

Further Information

Managing Security Material: The Manage Security Material area offers users a centralized overview of all artifacts related to system security. These artifacts can include digital certificates, encryption keys, or other sensitive security elements used to protect system integrity and data confidentiality.

Create an iFlow to Read Cloud Events

Now, we want to read and further process the Business Event (Cloud Event). In this example, we create an iFlow using SAP Integration Suite, Cloud Integration. The iFlow pulls events via the AMQP inbound adapter. For authentication, we use the client credentials created in the previous step.

In this step, we create a simple iFlow that reads cloud events using the AMQP inbound adapter.

Flowchart illustrating steps from creating a queue to creating iFlow, marked with numbered red circles from 7 to 13. Steps include login, channel creation, binding, subscription, credentials, and iFlow creation.

Prerequisites

  • The Cloud Integration capability is successfully activated in the Integration Suite.
  • The integration user is assigned the PI_Integration_Developer and/or PI_Administrator role collections.

Note

For participants attending an on-site training only: This exercise will be discussed theoretically by your trainer and will not be carried out on the training system.

Task 1: Create a Simple iFlow Template

Steps

  1. In the Integration Suite, navigate to DesignIntegration and APIs.

    1. Click the Create button.

      Screenshot of Integrations and APIs' Design page showing two packages: Basic Modeling and DelayedDeliveryPackage, with details like mode, version, creator, creation date, and description.
    2. Enter a name and short description in the form.

      Screenshot of a software package setup page for EDADemo with highlighted fields for name, technical name, and short description, along with buttons to save or cancel changes.
    3. Then, click the Save button.

    4. Go to the Artifacts tab and open the menu under the Add button.

    5. Select Integration Flow.

      Screenshot of integration platform showing the Artifacts tab with a dropdown menu listing options like API, Data Type, Integration Flow. The page has options to Save, Export, and Cancel.
    6. Assign a meaningful name and click Add and Open in Editor.

      Add Integration Flow dialog box with options to create or upload, and fields for Name, ID, Runtime Profile, Description, Sender, and Receiver. Buttons: Add, Add and Open in Editor, Cancel.
    7. Click the Edit button and drag a Groovy Script element from the palette.

      Screenshot displays a dropdown menu with Groovy Script and JavaScript options in the EDA_DEMO interface. Deployment status is not deployed. Save, save as version, deploy, and cancel buttons on top.
    8. After inserting it, click the plus icon to insert a standard script.

      Screenshot of SAP Integration process EDA_DEMO scripting interface with Groovy Script highlighted, showing work flow diagram from Start to End, indicating deployment is not yet deployed.
    9. Accept the suggested script, click Apply, and then Close.

      Screenshot of integration script in Groovy language, showing code for message processing. Header reads script1.groovy. Contains comments on API usage and method references. Apply and Close buttons on top right.
    10. Back in the main window, click Save.

      Screenshot of SAP interface showing an integration process titled EDA_DEMO. Groovy Script 1 is linked from Start to End between Sender and Receiver boxes. Save and Deploy options are highlighted.
  2. Configure the AMQP Inbound Adapter

    1. Click on the Sender and connect it to the Start event.

    2. In the pop-up adapter selection, choose AMQP.

      Screenshot of an integration setup page showing EDA_DEMO with an adapter type selection list highlighted to choose AMQP and marked integration process with Groovy Script 1. Properties are not defined yet.
    3. Then, select WebSocket.

      Diagram of SAP integration process showing transport protocol options TCP and WebSocket with WebSocket highlighted in yellow. Various components including Sender and Groovy Script are seen.
    4. In the Connection tab, add the Host, Path, and Port from the service key. The host starts with wss://

    5. Ensure that there is a leading slash / in the Path.

    6. Under Authentication, choose OAuth2 Client Credential.

    7. In Credential Name, enter the alias of the client credentials created earlier—in our case: emis.

      Screenshot of AMQP connection configuration. Settings include Host, Port 443, Path, Proxy Type Internet, Connect with TLS checked, Authentication OAuth2 client credentials, Credential Name ems.
    8. Now, open the Processing tab and enter the name of the queue to be read—in our case: emis-s4hana-uc123.

      Screenshot of Event Mesh Message Clients page. A highlighted queue named emis-s4hana-uc123 is shown with Queue Size of 1,695 bytes, 3 Messages Queued, 0 Unacknowledged Messages, and Non-Exclusive Access Type.
    9. Leave all other parameters as suggested.

      AMQP processing settings with highlighted Queue Name emis-s4hana-uc123. It includes settings for concurrent processes, prefetch messages, retry numbers, and delivery status.
    10. Save the iFlow.

  3. Test the iFlow

    Once the iFlow is deployed, it starts reading the events from the queue.

    Currently, there are three events stored in the queue.

    1. Click the Deploy button.

    2. Navigate to MonitorIntegrations and APIsAll Artifacts.

Result

Monitor Message Processing screen shows EDA_DEMO process completed successfully on Mar 21, 2025; highlighted in yellow. Left panel displays navigation options including Monitor and APIs.

The available events have been successfully read. This confirms that the demo was implemented successfully.

Test the Whole Scenario: Send Business Event

In this step, we change the name of a business partner in SAP S/4HANA Cloud Public Edition and check whether a change event was triggered and whether it was processed in the configured iFlow.

Prerequisites

  • In SAP S/4HANA Cloud Public Edition, the login user must be configured as a Business User with the BR_ADMINISTRATOR business role.
  • An existing Message Client: emis-s4hana.
  • An existing Queue: emis-s4hana-uc123.
  • An existing Topic Subscription: sap/s4/beh/businesspartner/v1/BusinessPartner/Changed/v1.
  • An iFlow has been created with any name whose AMQP is configured against the created emis-s4hana-uc123 queue.
  • The login user has the necessary Role Collections to call up the trace of the iFlow.

Note

For participants attending an on-site training only: This exercise will be discussed theoretically by your trainer and will not be carried out on the training system.

Task 1: Change a Business Partner in SAP S/4HANA Cloud Public Edition

Steps

  1. Log in to SAP S/4HANA Cloud Public Edition.

    1. Open the Maintain Business Partner app.

    2. Select or search for an existing Business Partner.

      Screenshot of SAP Business Partner maintenance screen displaying search criteria with options for persons by number. Business partner number set to 109010006 and maximum hits to 100.
    3. Click the Start button.

    4. Click the selected Business Partner.

      Screenshot of SAP Maintain Business Partner page displaying partner 10910006, Peter Koenig Alexander, in yellow highlight under the Find tab. Search criteria set to Persons and sorted By Number.
    5. Click Switch Between Display and Change.

    6. Modify any attribute of the selected Business Partner.

      SAP interface showing contact details for Peter Alfred Koenig, a business partner. Options to switch display modes and edit data are highlighted.
    7. Click the Save button.

  2. A computer interface showing a section titled Communication with a message saying Changes have been saved. Blue Save and Enter buttons, and a gray Cancel button are visible.

  3. Verify in SAP S/4HANA Cloud Public Edition if an Event Was Created and Sent

    1. Open theEnterprise Event Enablement–Event Monitor app in SAP S/4HANA Cloud Public Edition.

    2. Check whether an event was processed under your channel. In our example, the channel EDA_DEMO_0092 has processed an event.

      SAP Event Monitor dashboard displaying five channels with their status. EDA_DEMO_0092 and SAP_CP_XF_2023 highlight processed events with a count of 1, while others have 0 processed events.
    3. Click on the EDA_DEMO_0092 channel.

      Screenshot of EDA_DEMO_0092 showing no inbound events and one acknowledged outbound event for BusinessPartner/Changed/V1.
    4. Click the topic: demo/s4hc/e4l/ce/sap/s4/beh/businesspartner/v1/BusinessPartner/Changed/v1.

      SAP Outbound Event Topic Status page with a single event ID, marked as acknowledged. Event shows arrival, publish, and acknowledged times on 20 March 2025
    5. Click the Cloud Event ID.

      Screenshot of an event document detailing arrival and publish time, event ID, delivery and quality metrics, producer ID and version, and the payload specifics including size and source.
    6. Click Show More to view the event details. The Business Event—also known as the Cloud Event — was successfully processed in SAP S/4HANA Cloud Public Edition.

      Screenshot of a JSON payload for a business partner. Displays type, specversion, source, id, time, datacontenttype, and BusinessPartner code. Shows file size as 0.27 kB and a link to show less.
  4. Check in SAP Integration Suite, Event Mesh if the Event Was Received

    1. Log in to SAP Integration Suite, Event Mesh.

    2. Navigate to ConfigureEvent Meshemis-s4hana.

      Screenshot of Event Mesh Overview with spool size 2.00GB, 200 connections, 600 producers and consumers, maximum message size 1MB, status ready. Highlighted message client name is emis-s4hana.
  5. Successful retrieval by iFlow

    1. In this case, you do not see an entry in the queue.

      Screenshot of Event Mesh showing one queue named emis-s4hana-uc123. Queue size and messages queued are 0. Access type is non-exclusive. Actions available to create or refresh.
  6. Unsuccessful retrieval of the event from iFlow

    Screenshot of Event Mesh showing a queue named emis-s4hana-uc123 with 565 bytes size, one message queued, 0 unacknowledged messages, and non-exclusive access. Create and Refresh buttons are visible.
    1. In this case, you see the event in the queue.

  7. Check whether iFlow has processed the event

    1. Navigate to DesignIntegrations and APIsEDADemoEDA_DEMO.

      Screenshot of SAP Integration Suite with Design integrations and APIs tab selected showing integration process EDA_DEMO with sender, Groovy Script 1, and receiver components.
    2. Click on Deploy.

    3. In the configuration area, click on Deployment StatusNavigate to Manage Integration Content.

      EDA_DEMO integration flow diagram with Groovy Script shown, status marked as Deployed and Started. Highlighted areas include Deploy button and Deployment Status tab.
    4. Check whether the adapter displays in the Polling Information area.

    5. In the Log Configuration area, change the Log Level to Trace.

      Screenshot of a software interface displaying integration content with status, endpoints, artifact detail, and log configuration. The name is EDA_DEMO, marked started and deployed successfully.
  8. Change a business partner again in SAP S/4HANA Cloud Public Edition

    1. After another event has been triggered, caught by EMIS, and picked up by iFlow, we now see it in the trace.

    2. Click on the link Monitor Message Processing.

      Screenshot showing EDA_DEMO message processing completion. Status: Completed. Processing time: 525 ms. Includes message and correlation IDs, retention periods, and trace logs details.
    3. Click on the link Trace.

    4. Select EndMessage ContentPayload.

      Screenshot of a message processing run interface showing three steps: End, Groovy Script 1, and AMQP with payload data tab highlighted. The payload includes business partner information.
    5. The fired event displays as payload.

Result

The configured Business Event (Cloud Event) with the topic name sap/s4/beh/businesspartner/v1/BusinessPartner/Changed/v1 was successfully triggered and received. The implementation was successful.