Introduction to Eventing

Introduction to Eventing

Eventing – Event Mesh Queue

In this chapter, we will try to listen to the events created in the S/4 HANA On-Premise system, when we change an already created sales order from the previous exercise.

Chap_1

Backend Setup

There is no need for the participants to do the backend setup as it is a one time activity that we already done in the setup.

Please find the details on the configuration in the following video.

Please find the reference blogs that we used for the setup

Configure SAP Event Mesh for SAP S4HANA on premise via service key

Publishing events from S4HANA to Event Mesh for Cloud Integration for external systems

Enable SAP Cloud Integration to consume messages from Event Mesh

Access the Event Mesh

  1. Follow link for the Lobby service

Configure Event Mesh Queue

  1. Go to Message Clients

  2. Select Message client named ems

    emclientcard
  3. Click Queues => Create Queue

    queue
  4. In Queue Name: and select Create button to create queue.

    queuename

Subscribe to a Topic in Event Mesh

  1. Click on the action button and select Queue Subscriptions

    createbut
  2. Enter Topic : sap/vr/A/s4/ta//*

    topic
    Select Add.
  3. Select Close

    close

Testing Queue

We will test our created queue by changing the order quantity which was created in previous exercises (Chapter 3 exercise 3). Queue will listen to changes made to your sales order details.

  1. Click on: Lobby to open the SAP Fiori Launch Pad

  2. Login to System using

    • Your Login user: and
    • Your password, provided via mail or by your instructor
      Chap
  3. Select tile Change Sales Order (VA02)

    Chap
  4. Enter the Sales Order number which you got in the Process Integration exercise (Unit 3, Lesson 3) using the Postman tool and select Continue.

    Chap
  5. Match your order reference number and change the quantity and then do save.

    Chap
  6. Open Event Mesh and select your Queue by searching your userid. You can see now 2 messages in your Queue. One message is notification of change and other contains changed quantity data.

    Chap
  7. Go to Test tab to see the data.

    Chap
  8. Select your Queue in Consume Message part. Now select Consume Message

    Chap
  9. First notification message.

    Chap

10.Again click on Consume Message to see Data.

Chap