Skip to Content
Technical Articles
Author's profile photo Benedikt Sprung

Custom Events in SAP Event Mesh. Step-by-Step (Part 2 – Trigger a Custom Event)

Prerequisite

  • SAP NetWeaver add-on for event enablement is installed on your system.

Part 1: We will create a custom Event Linkage for a Material Change using transaction SWO1 and SWEC.

Part 2: Now we can make use of it in our SAP NetWeaver add-on for event enablement

 

Introduction to Part 2

After creating our custom event for a material change in part 1, we will make use of it with the SAP NetWeaver add-on. This way we can push a Material Change in real-time into the cloud.

 

Step 1: Customize outbound object

First, we will configure an Outbound Object.

SPRO –> IMG –> Integration with Other SAP Components –> SAP NetWeaver AddOn for Event Enablement –> Connection and Replication Object Customizing

Figure%201%20Outbound%20Object

Figure 1 Outbound Object

 

Step 2: Establish Business Object Event Linkage

After creating our Object Type in Part 1, we will configure the linkage to a Business Object Event.
Therefore, we will use transaction SWE2 and specify our custom Object Type ZBUS1001.
Receiver Type has to be created beforehand as seen in this blog post, using transaction WE81 and BD50.

Maintain the fields like seen in the figure below and click on safe.

Figure%202%20Business%20Object%20Event%20Linkage

Figure 2 Business Object Event Linkage

 

Step 3: Test the Event

After a material change the data will be sent by the SAP NetWeaver add-on to the SAP Event Mesh. In transaction /ASADEV/ACI_MONITOR or SLG1 we can see that the event was triggered correctly.

Figure%203%20Business%20Object%20Event%20Linkage

Figure 3 Business Object Event Linkage

 

Conclusion

In Part 2 we did following steps:

  • Configure an Outbound Object in the SAP NetWeaver add-on for event enablement.
  • Create linkage between BO Event and BO Subtype in SWE2.
  • Finally trigger a material change and inspect it in the ACI-Monitor.

 

Please provide feedback or thoughts in the comment section.
There is a Q&A regarding the SAP Event Mesh.
You can also follow the tags and profiles for more upcoming articles.

Assigned Tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Jens Sinnigen
      Jens Sinnigen

      Hi Benedikt - looks I am the first to comment 😉

      Thanks for you explanation - it nearly fits my requirements.

      Because I have not found an answer to my question I dare to post it here 😉

      Is it possible to 'add' custom events (or even standard events) in the SAP AIF?

      I just found something about business workflow events here

      I think adding this would highly make sense - also just because getting rid of using /ASADEV/ACI_MONITOR for monitoring events.

      Do you agree?