Skip to Content
Product Information
Author's profile photo Syed Ejazuddin

Emit Data Events from SAP S/4HANA or SAP ECC through SAP NetWeaver Add-On for Event Enablement

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-integration/

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 Murali Shanmugham explaining 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.

 

DataBaseViews

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 .

Views%20Join%20Condition

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%20Config%3A%20Outbound%20Objects

Add-on Config: Outbound Objects

 

Add-on%20Config%3A%20Header%20Attributes

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%20Events

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 🙂

 

 

 

 

Assigned tags

      1 Comment
      You must be Logged on to comment or reply to a post.
      Author's profile photo Mark Covey
      Mark Covey

      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?