cancel
Showing results for 
Search instead for 
Did you mean: 

How to enrich an event with additional data?

Manuel44
Explorer
0 Kudos

Hi,

I send events from the SAP ECC system to the SAP Event Mesh using the Event Enablement Add-On. Normally an event contains only header data like the time stamp or ID, but I want to send some additional data. How I can enrich an event with additional data? I don´t find any blog posts or help pages to this topic.

Kind regards

Manuel

gregorw
Active Contributor

Maybe martin.bachmann can comment here if this is possible with SAP NetWeaver AddOn for Event Enablement – now also released for S/4HANA?

Accepted Solutions (1)

Accepted Solutions (1)

mig1
Participant
0 Kudos

You may use the /ASADEV/ACI_GEN_VIEW_EXTRACTOR instead of /ASADEV/ACI_SIMPLE_NOTIFY as your data extraction function module. Combine with /ASADEV/ACI_GEN_VIEWFRM_SAP_EM as formatting function module.

In the extraction view name, you can choose any data dictionary table or view where the key matches from the event. For the business partner example, you may use view U_11102.

Manuel44
Explorer
0 Kudos

Hi mikael.gurenius4,

thanks for your answer. For the first step, that was helpful for me. However, in the future, I might run into the problem that the data from a view is not enough. What can I do then? Is it possible to develop such a function module myself? Can I implement and integrate application logic?

mig1
Participant
0 Kudos

I have not yet tried any other extraction function modules than the ones above, so I don't know. But I've seen references in presentations that BAPIs also can be used. How, I would like to know myself!

But, why? You shall not really send that much of a data in an event; each client should make an API call to get more details. What application logic are you considering in the extraction?

Manuel44
Explorer
0 Kudos

Oh I wasn't thinking of a specific application logic, that was more a general question.

But you're right that it doesn't make sense to send too much data with an event. If I send too much data, it might not fit all consumers.Therefore it makes sense not to adapt an event 1:1 for a consumer, but to keep the event as small as possible and each consumer makes an API call for more details.

Answers (1)

Answers (1)

martin_bachmann
Advisor
Advisor