cancel
Showing results for 
Search instead for 
Did you mean: 

Event mesh S/4hana on-premise

mark_fryu
Participant
0 Kudos

hi,

I created a queue on the Event Mesh, how can I direct just one event to this queue? For example, when creating the Business Partner on S/4hana on-premise

I saw that it is necessary to insert the topic name of the queue but it doesn't work for me.

but it only works when I enter * but in this case it intercepts all events:

mark_fryu_0-1710258937699.png

 

Does anyone know what might be missing?

thank you

Accepted Solutions (0)

Answers (1)

Answers (1)

Tobias_Griebe
Advisor
Advisor
0 Kudos

Hi @mark_fryu,

It looks like you just need to provide the correct topic subscription pattern in the queue configuration.

If you are able to consume all events when using the "*" topic subscription, we can easily identify the correct topic patterns from there.

find_topic.jpg

  1. In the EM admin UI select the messaging client where you have defined your queue (e.g. message_consumer).
  2. Open the "Test" tab.
  3. In the Consume Messages section, from the dropdown select the queue that holds all the events.
  4. Click the Consume Message button. It will consume the oldest message in the queue.
  5. The details for the consumed message are displayed. Select the Message Properties tab.
  6. x-address contains the full topic the message was sent to.

In the example you can see that the topic is defined as:

topic:sap/S4HANAOD/S4HC/ce/sap/s4/beh/businesspartner/v1/BusinessPartner/Changed/v1

So if I want to subscribe all BusinessPartner events, you would need to create a topic subscription in your queue configuration that looks like:

sap/S4HANAOD/S4HC/ce/sap/s4/beh/businesspartner/v1/BusinessPartner/*
or
sap/S4HANAOD/S4HC/ce/sap/s4/beh/businesspartner/*

 This would subscribe all kinds of BusinessParter events. No matter if this is a change, create or delete event.

Another option would be to check the log entries on the S/4HANA side. There we would also be able to identify the exact topics the events have been sent to.

I hope this helps you getting started with the configuration.

Best regards,
Tobias