cancel
Showing results for 
Search instead for 
Did you mean: 

S4HC - Consume Local events

vkesarir
Explorer
0 Kudos
732

Dear Experts,

Context - S4HANA Cloud - Business Events 

I am trying to consume the Business events raised within S4HANA Cloud using RAP again within the same S4HANA Cloud system.  If the event is raised by a RAP object we can create an event consumer class.  If the event is raised by non-RAP object, is there a way to consume it locally, without using BTP.   

Example - Inbound Delivery - Changed Event - This is a non-RAP object and I am trying to do some follow on actions when an Inbound Delivery is changed.

 

Thanks,

Vijay

Accepted Solutions (0)

Answers (1)

Answers (1)

Srikanth
Product and Topic Expert
Product and Topic Expert
0 Kudos

@vkesarir ,

Thanks for the question. 

Did you get a chance to have a look at the Inbound Delivery Change event : https://api.sap.com/event/CE_INBOUNDDELIVERYEVENTS/overview 

You can generate the event consumption model in ADT - Ecplise which has some of the artifacts like Inbound Services; Behavioural Defnitions (BDEF); Classes and event interfaces. I think you can use the the business events via Enterprise event handiling locally.

https://help.sap.com/docs/SAP_S4HANA_CLOUD/0f69f8fb28ac4bf48d2b57b9637e81fa/8cbf952e55364254be2da77a... 

But if you wanted to consume Business events to inform to the consumer then you should subscribe to the SAP Event Mesh. 

Hope this helps, Otherwise please let us know. 

Best Regards,

Sri 

vkesarir
Explorer
0 Kudos

Hi Sri,

Thanks for your reply.

I am trying to consume events locally to call some custom follow on actions.  I am looking to consume these events locally but the inbound/outbound delivery events are non-RAP objects.  Can you please guide me how to generate event consumption model to consume these events locally without using SAP event mesh.

Thanks,

Vijay

 

 

Srikanth
Product and Topic Expert
Product and Topic Expert
0 Kudos

@vkesarir,

Thanks. I am not sure whether you can consume non RAP Objects, Please check the blog on which you can consume the events. Hope this helps and provides a perspective.

https://community.sap.com/t5/technology-blogs-by-sap/consume-an-event-using-event-consumption-model/... 

Best Regards,

Sri 

Devavrat
Explorer
0 Kudos

Hello All,

Did anyone found solution to this?