Course

SAP Integration Suite, Advanced Event Mesh

A complete course from event-driven basics to running a production event mesh. Each module explains the concept, shows how it looks in the real product, gives you a lab to do, and ends with a short quiz.

8 modules~10 h totalLevel Intermediate → AdvancedScenario S/4HANA sales order events
Training documents

Course material

Every module below is a full lesson you can read here. Lab handbooks and slide decks for download are listed here as they are published.

Downloadable PDF lab handbooks are being prepared and will appear in this list.

Module 01

Event-driven architecture basics

60 min · Concepts

In classic integration, a system that needs to tell others about a change calls each of them, one by one, and waits for an answer. When S/4HANA creates a sales order, it might call the CRM, the warehouse system and a data platform. Every new receiver means another connection to build, and if one receiver is down, the sender has to deal with it.

Event-driven architecture turns this around. S/4HANA publishes one message, "sales order created", to an event broker. It does not know or care who is interested. Any application that wants the event subscribes to it, and the broker delivers a copy to each subscriber. Adding a fourth consumer needs no change in S/4HANA.

Point to point S/4HANA CRMWMSData 3 connections, sender knows every receiver Publish / subscribe S/4HANA AEMbroker CRMWMSData 1 publish, receivers subscribe themselves

Why this matters

  • Loose coupling. Publisher and consumers do not know each other's addresses, availability or technology.
  • Real time. Consumers react the moment something happens, instead of polling every 15 minutes.
  • Resilience. If the CRM is offline, its events wait in its queue, and the other consumers are not affected.

Two kinds of delivery

Direct messaging is fast and lightweight. The broker delivers to whoever is connected right now and keeps nothing. If a subscriber is offline, it misses the message. This suits high-volume data where the next value replaces the last one, such as sensor readings or price ticks.

Guaranteed messaging stores each message until the consumer confirms it processed it. Nothing is lost when a consumer or network goes down. Business events such as orders, invoices and deliveries almost always use guaranteed messaging.

Where Advanced Event Mesh fits

SAP offers two eventing services. SAP Event Mesh is a lighter BTP service for simpler, SAP-centric scenarios. Advanced Event Mesh, part of SAP Integration Suite and built on Solace PubSub+ technology, is the enterprise option: dedicated brokers, several protocols, high throughput, brokers linked across clouds and on-premise, and design tooling. Cloud Integration still does what it is good at, mapping and orchestration. AEM's job is distributing events reliably.

Remember · An event says "something happened" in the past tense: SalesOrder.Created. It is not a command telling another system what to do.
EventA record that a state change happened, e.g. a sales order was created.
Event brokerMiddleware that receives, stores and routes events to subscribers.
Publisher / consumerThe application that sends events, and one that receives them.
Guaranteed messagingDelivery with persistence and acknowledgement, so nothing is lost.

Lab 1 · Map the scenario

  1. Draw S/4HANA publishing "sales order created".
  2. Add three consumers: CRM, warehouse and an analytics store.
  3. Mark which consumers need guaranteed delivery and which could use direct messaging. Write one sentence on why.
Module 02

Mission Control and your first broker

60 min · Hands-on

Once Advanced Event Mesh is subscribed in your BTP subaccount, you open its console, called Mission Control. This is where you create and manage event broker services, the actual brokers that applications connect to.

Creating a broker service

In Cluster Manager you create a service and choose:

  • Service type or class, which sets capacity: maximum connections, message throughput and storage. Small classes are for development, larger ones for production.
  • Cloud and region: AWS, Azure or Google Cloud, in the region closest to your systems.
  • Name, for example saptechie-dev.

Each broker service contains a Message VPN. Think of it as a virtual broker with its own clients, queues and security settings, separate from any other VPN.

Connecting applications

The service's Connect tab lists the host, port and credentials for each protocol the broker speaks. Picking the protocol is usually decided by the client, not by you:

ProtocolTypical use
SMFSolace's native protocol, used by Solace client libraries and the Cloud Integration adapter
AMQP 1.0Standard enterprise messaging, e.g. the Cloud Integration AMQP adapter
MQTTIoT devices and mobile apps
RESTSimple HTTP publish from any system that can make a POST call
JMSJava applications using the JMS API

A broker translates between protocols. An S/4HANA event published one way can be consumed by an MQTT app and a JMS app at the same time.

Broker Manager and Try Me!

Broker Manager is where you configure the Message VPN: queues, client usernames, ACLs and statistics. Try Me! is a built-in browser tool with a publisher and a subscriber, ideal for testing topics without writing any code.

Lab 2 · Hello, broker

  1. In Cluster Manager, create a developer service named saptechie-dev in your nearest region.
  2. Open Try Me!, connect the subscriber and subscribe to training/hello.
  3. Connect the publisher and send "Hello AEM" to training/hello. Confirm the subscriber receives it.
  4. Open Broker Manager and find the message counts in the VPN statistics.
Module 03

Topic taxonomy design

75 min · Design

In AEM, a topic is a text label on each message that describes what it is. Topics are not created in advance. The publisher simply sets the topic, and subscribers use it to select what they want. Good topic design is the most important decision in an event-driven project, because every consumer depends on it.

Levels, from general to specific

Topics are split into levels with /. Put the most general information first and the values people will filter on last:

# domain / source / object / verb / version / country / company code / ID
sap/s4/salesorder/created/v1/DE/1010/4500012871

Subscribing with wildcards

* matches exactly one level. > matches one or more levels, and only at the end of a subscription.

SubscriptionReceives
sap/s4/salesorder/created/v1/>Every created sales order, all countries
sap/s4/salesorder/*/v1/DE/>All sales order events for Germany
sap/s4/*/created/v1/>Every "created" event for every object
sap/s4/salesorder/*/v1/*/1010/>Sales orders for company code 1010 only

Design rules that save you later

  • Agree on one taxonomy for the whole company and write it down.
  • Put values you filter on (region, company code, ID) at the end, so wildcards can skip them.
  • Include a version, so you can change the payload without breaking existing consumers.
  • Use lowercase and no spaces. Never put personal or sensitive data in a topic.
SAP standard events · S/4HANA's standard business events come with SAP-defined topics (built from the event object, type and version) under the namespace you set on your channel. Plan your own custom topics to sit alongside them.

Lab 3 · Design and test a taxonomy

  1. Write topics for order created, delivery shipped and invoice posted, for Germany and India.
  2. In Try Me!, subscribe with sap/s4/*/*/v1/IN/>.
  3. Publish all six topics and confirm only the three India events arrive.
Module 04

Queues and guaranteed delivery

90 min · Hands-on

A topic on its own is fire-and-forget: if nobody is subscribed when a message is published, it is gone. A queue fixes that. You create a queue and add topic subscriptions to it. From then on, the broker stores every matching message in the queue until a consumer takes it and confirms it.

Publisher topic sap/s4/salesorder/created/… Q_CRM_SALESORDER Consumer ACK removes the message from the queue

Access types

Access typeBehaviourUse when
ExclusiveOne consumer is active; others wait on standby and take over if it failsStrict ordering matters
Non-exclusiveMessages are shared across all connected consumersYou need to scale out and order does not matter
PartitionedMessages with the same partition key always go to the same consumerYou need order per key (e.g. per sales order) and scale

When processing fails

If a consumer does not acknowledge a message, the broker delivers it again. To stop a broken message from blocking the queue forever, set a maximum redelivery count. After that many attempts, the message moves to a dead message queue (DMQ), where you can inspect it. A time to live (TTL) can also expire messages that are no longer useful.

Messages are kept in the broker's message spool. Each Message VPN and queue has a spool quota, so a consumer that stays offline for days cannot fill the whole broker.

Rule of thumb · One queue per consuming application. Each consumer then has its own copy, its own pace and its own error handling.

Lab 4 · A queue that survives failures

  1. In Broker Manager, create queue Q_CRM_SALESORDER (exclusive).
  2. Add subscriptions sap/s4/salesorder/created/v1/> and sap/s4/salesorder/changed/v1/>.
  3. Set maximum redelivery to 3 and enable the DMQ.
  4. Publish five messages with no consumer connected and check the queue depth is 5.
  5. Consume them in Try Me! and confirm the queue is empty.
Module 05

S/4HANA business events

90 min · SAP configuration

S/4HANA ships with hundreds of standard business events, for objects like SalesOrder, BusinessPartner, Product and PurchaseOrder. You can browse them, with their payloads, on the SAP Business Accelerator Hub under event resources.

Sending events from S/4HANA

On S/4HANA (on-premise and private cloud), event sending is configured with Enterprise Event Enablement:

  1. Create a channel in transaction /IWXBE/CONFIG. The channel holds the connection to your broker and a topic namespace.
  2. Activate the channel and check the connection.
  3. Add outbound bindings: choose which events (topics) S/4HANA publishes through this channel.
  4. Monitor sent events and errors with the event monitor.

In S/4HANA Cloud Public Edition, the same is done with a communication arrangement for enterprise eventing and the Enterprise Event Enablement apps.

What an event looks like

SAP events follow the CloudEvents standard. The envelope tells you what happened and where; the data part usually carries the key, so consumers call an API for full details when they need them.

{
  "specversion": "1.0",
  "type": "sap.s4.beh.salesorder.v1.SalesOrder.Created.v1",
  "source": "/default/sap.s4.beh/S4DCLNT100",
  "id": "6f1c2b9e-…",
  "time": "2026-10-17T09:14:22Z",
  "data": { "SalesOrder": "4500012871" }
}

Custom events

When no standard event fits, define your own. In RAP ABAP you declare an event in the behavior definition, raise it with RAISE ENTITY EVENT after the save, and create an event binding so it can be published through the same channel.

Lab 5 · First event from S/4HANA

  1. Create a service key for your broker connection (from Mission Control).
  2. In /IWXBE/CONFIG, create channel SAPTECHIE_AEM with that connection and activate it.
  3. Add an outbound binding for the BusinessPartner changed event.
  4. Change a business partner and confirm the event arrives on a queue in AEM.
Module 06

Cloud Integration with the AdvancedEventMesh adapter

90 min · iFlow build

Most SAP event projects need transformation: the CRM expects a different format, or the event only has a key and the full order must be read from S/4HANA first. That is where Cloud Integration comes in. It has a dedicated AdvancedEventMesh adapter for both directions.

Sender side: consuming events

  • The iFlow connects to the broker and consumes from a queue, for example Q_CRM_SALESORDER.
  • The message is acknowledged only when the iFlow finishes successfully. If processing fails, the broker redelivers it, and after the maximum redelivery count it goes to the DMQ.
  • Use a non-exclusive queue to share load across iFlow workers, or exclusive to keep order.

Receiver side: publishing events

  • The iFlow publishes to a topic, which can be built dynamically from headers or properties, e.g. sap/cpi/order/enriched/v1/${property.country}.
  • Choose persistent delivery for business data.

Handling duplicates

Guaranteed delivery means "at least once". In rare cases, such as a crash just before the acknowledgement, the same event arrives twice. Store the CloudEvents id and skip any ID you have already processed, for example with an idempotent process call in the iFlow.

Alternative · The standard AMQP adapter also works with Advanced Event Mesh over AMQP 1.0. The dedicated adapter uses the native protocol and exposes more broker features, so prefer it for new projects.

Lab 6 · Event-driven iFlow

  1. Create an iFlow with an AdvancedEventMesh sender channel on Q_CRM_SALESORDER.
  2. Add a request-reply step to read the sales order from S/4HANA by the ID in the event.
  3. Map it and call the CRM (for example through Open Connectors).
  4. Force an error and confirm the message returns to the queue, then lands in the DMQ after 3 tries.
Module 07

Event mesh, Event Portal and replay

75 min · Architecture

Large companies run systems in several regions, clouds and data centres. Instead of one central broker, Advanced Event Mesh lets you place brokers near each system and link them into an event mesh.

Dynamic message routing

With dynamic message routing (DMR), linked brokers share their subscriptions. A consumer in Singapore subscribes on its local broker; when S/4HANA publishes in Frankfurt, the mesh routes the event to Singapore automatically. Applications always connect locally. Events only cross the network when someone actually wants them.

Brokers do not have to be in the cloud. Software brokers run on-premise, in Docker or Kubernetes, close to plants or legacy systems, and join the same mesh.

Event Portal

As event numbers grow, teams need to know what exists. Event Portal is the design and catalogue tool: you model applications, events and their schemas, see who publishes and who consumes what, and export AsyncAPI documents, which are for events what OpenAPI is for REST APIs.

Replay

When replay is enabled, the broker keeps a log of messages for a set period. If a new consumer needs history, or a consumer lost data after a bug, you can replay messages from a chosen point in time into its queue.

Lab 7 · Two regions, one mesh

  1. Create a second broker service in another region.
  2. Link both services into a mesh in Mission Control.
  3. Subscribe in region B, publish in region A, and confirm delivery.
  4. Enable replay, then replay the last hour into a new queue.
Module 08

Security, monitoring and operations

90 min · Production

Every application that connects to a broker is a client. Three objects decide what a client may do:

ObjectControls
Client usernameWho the client is and how it authenticates (password, client certificate or OAuth)
Client profileWhat features it may use: guaranteed send and receive, creating queues, connection limits
ACL profileWhich topics it may publish to and subscribe to, and from where it may connect

Give each application its own client username with the smallest rights it needs. The CRM iFlow should only consume its queue and publish under its own topic branch. Always connect over TLS.

Monitoring

Mission Control shows broker health and statistics, and Insights adds dashboards and alerting for connections, message rates, queue depth and spool usage. Set alerts before go-live, not after the first incident.

A weekly health checklist

  • Queues growing steadily: is a consumer down or too slow?
  • Messages in the DMQ: which events failed, and why?
  • Spool usage close to quota at VPN or queue level.
  • Queues with no consumer bound, and client usernames no longer used.
  • Certificates and OAuth credentials close to expiry.

Lab 8 · Least privilege

  1. Create ACL profile acl-cpi that allows publish only to sap/cpi/>.
  2. Create client username cpi-consumer using that ACL profile.
  3. Try to publish to sap/s4/test with it and confirm the broker rejects it.
  4. Run through the health checklist on your VPN and note one improvement.