SAP Home Learn Build Integrate Model Operate Extend with AI ConnectTutorial navigator Knowledge Graph API Devtoberfest Developer Advocates App Space

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Expose RAP Business Event in SAP BTP ABAP Environment

Overview

🎓 intermediate 45 min. SAP BTP ABAP EnvironmentIntermediateABAP DevelopmentSAP Business Technology Platform
Julie Plummer J Julie Plummer October 2, 2025
Created by March 14, 2025
Contributors

Prerequisites

Prerequisites

  • Caution: You cannot complete this tutorial with a trial version.

  • You have created a RAP Business Event, for example using this tutorial: Create a RAP Business Event in SAP BTP ABAP Environment

  • You have access to a SAP BTP ABAP environment system with a license.

  • You have access to Event Mesh in SAP Integration Suite. Getting Started with SAP Integration Suite.

    Note: SAP Event Mesh Service is no longer available for new customers unless you already have access to it. In that case you can use it as a message broker and its instance to create the channel, otherwise you need to add Event Mesh service in SAP Integration Suite. If you are an existing customer of the standalone SAP Event Mesh service (default plan), you can not subscribe to the SAP Integration Suite Event Mesh capability in the same subaccount. In such cases, you must subscribe to SAP Integration Suite in a different subaccount.

    If you don’t have Integration Suite Event Mesh service then you first need to add Event Mesh capability to have access to it by clicking on ‘Add Capabilities’ in your Integration Suite cockpit. Once the capability is activated, configure user access by assigning the appropriate roles and role collections to the users who want to work with the capabilities. See Configuring User Access to SAP Integration Suite.

    Now you need to create the Event Mesh instance on your subaccount. The service instance SAP Integration Suite, Event Mesh on the SAP BTP cockpit provides access to the message client of Event Mesh capability. Configuring a message client is a two-step process. First, you create a service instance and then create a binding to the Event Mesh capability. See Configure A Message Client. Then you need to prepare an Event Mesh instance in your SAP business technology platform system and have downloaded the service key of this instance.

  • You need a user with access to maintain communication arrangement

Steps

Step 1 Create an Event Binding for the Business Event

Now create the event binding for your newly created business event. This event binding is needed to map an event to a RAP entity event.

  1. Right-click on your package and create an event binding
- Name: `ZEVENT_EXPOSURE_###`
- Description: `RAP business event`

binding
binding

binding
binding

  1. Here fill all fields out, to get errors gone. You can freely choose these names to specify your event with some considerations explained below
- Namespace: `zevent###` (No camel case and no space)
- Business Object: `OnlineShop` (No Space)
- Business Object Operation: `create`

error
error

  1. Click Add to add items.
- Root Entity Name: `ZR_ONLINE_SHOP_###` (your behavior definition)
- Entity Event Name: `ITEMISORDERED` (Event name in your behavior definition)

item
item

  1. Save and activate your event binding.

  2. As you can see at the screenshot, Type (aka topic) is a concatenation of the three attributes (name space, business object, business object operation) and ends with the version of the event. The wildcard * points to the corresponding event e.g. created. This is relevant for addressing the events to the Event Mesh. Copy this address for later use zevent###.OnlineShop.create.v*.

type
type

Step 2 Create a communication arrangement
+
Step 3 Assign the event to an outbound channel
+
Step 4 Create a Message in Application
+
Step 5 Test yourself
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 5
1. Create an Event Binding for the Business Event 2. Create a communication arrangement 3. Assign the event to an outbound channel 4. Create a Message in Application 5. Test yourself

Learn more →