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

Event Consumption in SAP BTP, ABAP Environment

Consume an Event using Event Consumption Model within a Business Application

Overview

🎓 beginner 45 min. SAP BTP ABAP EnvironmentBeginnerABAP DevelopmentSAP Business Technology PlatformS 4hana Cloud ABAP Environment

You will learn

  • โœ”How to create connection between a cloud system and a SAP BTP ABAP environment system.
  • โœ”How to consume an Event.
Niloofar Flothkoetter N Niloofar Flothkoetter September 9, 2024
Created by March 9, 2023
Contributors

Prerequisites

Prerequisites

Steps

Intro

This tutorial was written for SAP BTP ABAP Environment. However, you should also be able to use it in SAP S/4HANA Cloud Environment in the same way.

Always replace #### with your initials or group number.


Step 1 Overview
โ€”

An event is a data record expressing a significant change in state and its surrounding context. For example, a change of a business object such as business partner, can be indicated by raising a business event. Events will be developed and configured and going to be sent to the event mesh service in the cloud. Since SAP Event Mesh is responsible for message delivery, senders do not need to know which applications, services or systems will receive what data. An interested party having subscribed to this event, can consume, and process it. Event consumption works in ABAP platform, in steampunk. In the event consumption at runtime, you have two main parts which are the event providers and the event consumer system, and both are connected via message broker in our case this would be SAP Event Mesh.

Overview
Overview

Step 2 Communication Arrangement for SAP event mesh instance in the cloud system
+
Step 3 Create Outbound Bindings and generate Metadata
+
Step 4 Create Event Consumption Model
+
Step 5 Create Communication Scenario for Event Consumption Model
+
Step 6 Create database table for handler method
+
Step 7 Define handle event methods
+
Step 8 Communication Arrangement for SAP Event Mesh instance in the SAP BTP ABAP environment system
+
Step 9 Communication Arrangement for event consumption model in the SAP BTP ABAP environment system
+
Step 10 Maintain Subscription
+
Step 11 Create business partner
+
Step 12 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 12
1. Overview 2. Communication Arrangement for SAP event mesh instance in the cloud system 3. Create Outbound Bindings and generate Metadata 4. Create Event Consumption Model 5. Create Communication Scenario for Event Consumption Model 6. Create database table for handler method 7. Define handle event methods 8. Communication Arrangement for SAP Event Mesh instance in the SAP BTP ABAP environment system 9. Communication Arrangement for event consumption model in the SAP BTP ABAP environment system 10. Maintain Subscription 11. Create business partner 12. Test yourself

Learn more →