cancel
Showing results for 
Search instead for 
Did you mean: 

Consuming a released event of an unreleased RAP BO (how to achieve clean core)

rammel_sapdev
Participant
411

Hi,

Currently we are confused. I was advised that the events in the accelerator hub can be consumed either via local or remote event consumption.

https://api.sap.com/event/OP_PRODUCTEVENTS/overview

Currently, local event consumption applies to RAP BO events. So I searched for the released RAP BO for products (https://api.sap.com/bointerface/PCE_I_PRODUCTTP_2) and tried to create and implement and event handler class.

First thing that I noticed is that the events being raised are not there in the released RAP BO.

rammel_sapdev_0-1734620637583.png

After further checking, I saw that the event is actually defined at the base BO level.

rammel_sapdev_1-1734620699790.png

I did some further testing and found out that these events are being from the Manage Product Master fiori app by calling these static methods which in turn raises the RAP BO events.

rammel_sapdev_2-1734620758580.png

Now, when I tried to consume these events using the released RAP BO, the system won't allow me because the events are defined at the base BO level. We are using S/4HANA 2023 private cloud edition (FPS00). We are not sure if the same behavior is there in the FPS version.

rammel_sapdev_5-1734621571325.png

When I checked the SAP documentation(https://help.sap.com/docs/abap-cloud/abap-rap/business-event-consumption), it says that the event to be consumed needs to be exposed in a C1 released RAP BO interface.

rammel_sapdev_4-1734621103629.png

However, the events are not exposed for most of the released RAP BOs interfaces (e.g., Product, Business Partner, Pricing). For these 3 RAP BOs, the events are only exposed in the base RAP BO.

The only way we can consume this is to create the event handler class under a 'Standard ABAP' package so that it will allows us to consume the event from the unreleased base RAP BO. We are trying to achieve clean core and we are limiting any Tier 3 developments. Is there a way to consume these events via Tier 1 approach without resorting to using SAP event mesh? SAP event mesh is usually only recommended if the event producer and consumer is different but in our case, the producer/consumer is the same S4H system.

Note: We are trying to use these events to replace the BTE functionality. 

 

 

 

 

 

 

View Entire Topic
bernd_schmitt
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

If you require additional standard events delivered by SAP or C1-released, you can raise your request via this campaign in the customer influence portal

Best regards, Bernd

rammel_sapdev
Participant
0 Kudos
Hi, there is an event for our requirement. Our question is whether consuming these events locally is classified as Tier 1. Currently, to consume the events, we need to create the class under the Standard ABAP package in S4H 2023 PCE.
bernd_schmitt
Product and Topic Expert
Product and Topic Expert
0 Kudos

You have to request the C1 release also for existing events, if it is not yet released by SAP and you want to consume them.