Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
syed12
Advisor
Advisor
As we know that power of event mesh is available for ECC Customers Blog and are being popularly known as SAP NetWeaver, add-on for event enablement, it’s popularity among the customers leads to usage of this add-on also for SAP S/4HANA, And Why Not. The flexibility which is provided by this magic box is remarkable and you are not just restricted with Standard Business Object, but Custom object as well. You can get the detail of the announcement here. However the existing event on S/4HANA will continue to be available and customer have the flexibility to use both approach as per there needs. However it should be noted that A migration from one technology to the other will not be possible as both technical implementations are quite different.

https://www.sap.com/dmc/exp/2021-06-sapphireinnovation-news/sap-enhances-support-for-event-based-int...

In my previous blogpost , I have shown how you can emit and sync notification events but in this series, i will try to explain how you can emit data events from backend.



Data events is truly a remarkable feature as you can emit whole chunk of relevant data to the event mesh and you don't need to worry about relevant API calls, which you have to make during notification events. The another most advantage of data events that you can combine data coming from multiple databases and sync in your views as per your business scenario. there is a nice blogs post from muralidaran.shanmugham2explaining a detailed feature of this Addons.

Quick Setup for Notification Events:


Please go through the below both parts to do the quick setup and receive the events into your Queue. Just make sure that in this scenario we are considering Material Business object BUS1001.

Extend Setup for Data Events:


1. Create Database Views


We have to create database view to fetch data from General Material Data(MARA) , Material Descriptions (MAKT) and Units of Measure for Material(MARM). The idea is to fetch all relevant data for material master and push to event mesh.

 


DataBaseView


You have to ensure that your joining condition be as simple as it can be so that it can hit all the required DB and fetch all the relevant data .


View Join Condition



2. Add View Detail on Add-on Configuration


It's time to edit the outbound objects of your add-ons and update few details  as shown in the snapshot below. You will notice that the database view detail are also given the Extraction View Name. Ensure that your Extraction Function Module and Formatting Function should also be same as shown in figure below.


Add-on Config: Outbound Objects


 


Add-on Config: Header Attributes



Test Your Setup:


Create Material using MM01 and give the below details and monitor the events in event mesh. Have you notice something really exciting!!


Data Events



{
"specversion":"1.0",
"type":"refappscf.ecc.123.BO.Material.Created",
"source":"SAP_EM/MATERIAL",
"id":"MATERIAL20210813113635.4642340 ",
"time":"2021-08-13T11:36:35.464Z",
"data":{
"MARA":[
{
"CLIENT":"000",
"MATERIAL_NUMBER":"000000000000000098",
"CREATED_ON":"20210813",
"MATERIAL_TYPE":"PIPE",
"INDUSTRY_SECTOR":"M",
"UNIT_OF_MEASURE":"EA",
"MATERIAL_GROUP":"01",
"GROSS_WEIGHT":120.000,
"NET_WEIGHT":100.000,
"WEIGHT_UNIT":"KG",
"MAKT":[
{
"MATERIAL_DESCRIPTION":"Pipeline Material",
"MARM":[
{
"LENGTH":5.000,
"WIDTH":6.000,
"HEIGHT":7.000,
"UNIT_OF_DIMENSION":"CM",
"VOLUME":0.210,
"VOLUME_UNIT":"CDM"
}
]
}
]
}
]
}
}

SAP ERP Extension on SAP Discovery Centre


We have released a Mission for event-driven extension scenario for SAP ERP 6.0 which is available on SAP Discovery Centre . You can watch the Mission Demo video from here. This will demonstrate how we can extend the SAP ECC without disrupting any core business processes. To get more insight about our extension scenario and steps involved, Please refer our sample reference application here

Happy Eventing 🙂

 

 

 

 
3 Comments
markcovey
Discoverer
0 Kudos
This is awesome and exactly what I needed.  I do have one question though.  We have a need to do the same with some reference data sets that don't have events tied to them, i.e. company codes.  Is there a batch option to trigger these smaller data sets?
saurabhkumbhare
Active Participant
0 Kudos
Hi Syed,

 

Great blog. Is there a restriction that the event payload should not exceed 1MB?

 

Thanks

Saurabh
Miku
Explorer
0 Kudos
Hi,

Thanks for the detailed information. I have configured the view with EKKO table for purchase order. Notification event is sending the data properly with purchase order number (when /ASADEV/ACI_SIMPLE_NOTIFY and /ASADEV/ACI_SAP_EM_CLOUDEV_FM are used in "Outbound Objects" in SPRO)

but data event is not able extract any data (when /ASADEV/ACI_GEN_VIEW_EXTRACTOR and /ASADEV/ACI_GEN_VIEWFRM_SAP_EM are used in "Outbound Objects" in SPRO).

Please suggest what could be the issue.

In SLG1 and /ASADEV/ACI_MONITOR, I can see that it is showing as no content for data event (where as notification event is ok)

 


SLG1 logs showing no content for data event


 


Notification Event has 286 bytes but Data Event has 0 bytes


 

Thanks,
Chanchal