Skip to Content

Expose RAP Business Event in SAP BTP ABAP Environment

Requires Customer/Partner License
You will learn
julieplummer20Julie PlummerOctober 2, 2025
Created by
safagb
October 2, 2025
Contributors
safagb

Prerequisites

> **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](https://help.sap.com/docs/integration-suite/sap-integration-suite/configuring-user-access).

>  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](https://help.sap.com/docs/integration-suite/sap-integration-suite/configure-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
  • Step 1

    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
    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
    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
    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
  • Step 2

    After an event is raised, it should arrive at the Event Mesh to be consumed later. The connection between the system and the SAP Integration Suite Event Mesh is achieved through a channel. For this, you need to create a communication arrangement in your cloud system with sap_com_0092 scenario which is built for an event enablement and also an Event Mesh instance’s service key.

    One requirement is that you have an existing SAP Integration Suite Event Mesh service instance. You can create an instance of SAP Integration Suite Event Mesh provided that you already subscribe to the Integration Suite Event Mesh capability.

    For more information about how to create instance of SAP Event Mesh link

    1. Log on to your cloud system and navigate to Communication Arrangement.
    comm
    1. Click New to create a new communication arrangement.
    new
    new
    1. Choose sap_com_0092 as Scenario and copy the service key of your Integration Suite Event Mesh instance under Service Key.
    comm
    comm
    1. Create a Communication User. Click New and enter a User Name, Description and Propose Password. Copy the generated password and save it for later. Click Create.
    user
    user
    1. Now change the Arrangement Name to Z_EVT_0092_### and replace ### with your initials or group number. This Arrangement Name will also be the name of the channel which is used later to send events.
    • Click Create communication arrangement.
    name
    1. Open your newly created communication arrangement and check the connection under Outbound Services to check if the connection is established and the channel is active.
    details
    details
  • Step 3
    1. Search for Enterprise Event Enablement App and open it.

      app

    2. Click Go to open a list of channels and choose your channel in this list.

      channel

    3. Now add the outbound topic, which is generated during the event binding generation, in to this channel:

    • Click Create

      create

    • On the next page click Topic value help

      create

    • In this popup search for zevent###/OnlineShop/create/* what you copied in step 8-5 and choose it. Replace ### with your number.

      create

    • Click Create

      create

    create
    1. In your channel click on Metadata, download the AsyncAPI json file, open it to copy the channels data for later use.
    metadata
    1. Open your cloud system cockpit and navigate to Instances and Subscriptions and open Integration Suite application. Then click on Manage Business Events- Configure Events
    event
    1. Open the message client, navigate to Queues and click Create Queue.
    queue
    queue
    1. Enter a queue name and click Create.
    • Queue Name: onlineshop/### (replace ### with your number)
    name
    1. Double click on your newly created queue and on tab Subscriptions click on Create. Here enter the topic what you copied from the event metadata and click Create. The subscription to the selected topic is done.
    subs
    subs
  • Step 4
    1. Open ADT and open your SAP BTP ABAP environment system.

    2. Navigate to your service binding ZUI_Z_ONLINE_SHOP_###_O4 and click Preview to open your application.

    preview
    1. Click Create to order a new item.
    order
    order
    order
    1. Back to your cockpit and check in your event mesh under Queues if this event has reached the system. If you check the queue, a new message is arrived at the queue.
    message
    1. Navigate to Test and choose your queue under Queue in Consume Messages section.

    2. Click Consume to consume this event in your applications. Here you can see that you have the type which you have find in the event binding and the transported data is the parameter structure.

    message

    You can also consume this event using Event Consumption Model within a Business Application

  • Step 5

    More information

Back to top