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 Processing in an SAP S/4HANA on-premise system

Create and consume of business events in an On-Premise system

Overview

🎓 beginner 45 min. ABAP DevelopmentBeginner

You will learn

  • How to set up a channel to connect to SAP Event Mesh
  • How to consume an Event with RAP in an On-Premise system
Created by April 25, 2023
Contributors

Prerequisites

Prerequisites

Steps

Intro

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

The ABAP RESTful Application Programming Model (RAP) now supports the native consumption and exposure of business events from release 2022. For exposure, an event can be defined and raised in a RAP business object or in the behavior extension and then published via Event Bindings.

Step 1 Download event specification file

An Event Consumption Model is a set of ABAP artifacts which allows you to receive events from external applications and to consume them within your business application. You can have a wide range of event producers. So, you need to know how the emitted event exactly looks like. To this aim, you need a file which contains the metadata of this event like how the payload looks like, what kind of types are there and so on. This is all specified in the event specification file, in this case, AsyncAPI specification, which is supported by SAP and can be downloaded from SAP API Business Hub in JSON format. For this aim, you need to download an event specification for the event business partner from the API hub.

  1. Login to [SAP Business Hub] (https://api.sap.com/) and choose SAP S/4HANA.

    API
    API

  2. Under SAP S/4HANA choose Events tab and search for business partner.

    events
    events

  3. Click Event Specification and download the JSON file.

    json
    json

Step 2 Create event consumption model in ADT
+
Step 3 Create database table for handler method
+
Step 4 Define handle event methods
+
Step 5 Channel Configuration
+
Step 6 Creating a channel using a service key
+
Step 7 Configure inbound bindings
+
Step 8 Configure subscriptions
+
Step 9 Create business partner
+
Step 10 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 10
1. Download event specification file 2. Create event consumption model in ADT 3. Create database table for handler method 4. Define handle event methods 5. Channel Configuration 6. Creating a channel using a service key 7. Configure inbound bindings 8. Configure subscriptions 9. Create business partner 10. Test yourself

Learn more →