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

Maintain Filters for Outbound Event Topics

Maintain filters for outbound event topics. You can filter the events that should be sent via a channel by defining filters per channel and topic.

Overview

🎓 beginner 25 min. ABAP DevelopmentBeginnerSAP Business Technology Platform

You will learn

  • How to add event filters to abstract entity
  • How to create an event filter
Merve Temel M Merve Temel June 17, 2024
Created by June 14, 2024
Contributors

Prerequisites

Prerequisites

Hint: Event filters for event topics containing wildcards are not supported.

You can define filters for context and custom extension context attributes defined for the corresponding event type. In the RESTful Application Programming framework (RAP), you can define a custom context attribute for your RAP business object (only for events) with the CDS annotation @event.context.attribute.

For more information on the CDS annotation, see: Event Annotations

The custom defined context attribute is then available as a property in the event filter creation wizard in the Enterprise Event Enablement ‒ Configure Channel Binding app.

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

Steps

Step 1 Add event filter annotation to abstract entity

  1. Open your abstract entity ZD_ItemOrdered_### in Eclipse and add the event annotation to ItemName:

    ABAP
     @EndUserText.label: 'event parameter'
     define abstract entity ZD_ItemOrdered_###
     {
     @Event.context.attribute: 'xsapitemname'
     ItemName : abap.char(25);
     }

    filter
    filter

  2. Save and activate.

Step 2 Create event filter
+
Step 3 More Information
+
Step 4 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 4
1. Add event filter annotation to abstract entity 2. Create event filter 3. More Information 4. Test yourself

Learn more →