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: 
jessicademarchi
Product and Topic Expert
Product and Topic Expert
Hello, Integration Innovators

Welcome back to #IntegrationForYou a series of posts about how to integrate with SAP. We dedicate our content to startups that want to become SAP Partners, but everyone is welcome!

In my first #IntegrationForYou blog post I mentioned Event Mesh Service, and today I'm back to talk more about this amazing BTP Service, this blog post aims to elucidate this powerful service, and how you can leverage it to seamlessly integrate any system with SAP ERP.

First, what is SAP BTP Event Mesh?
The SAP BTP Event Mesh service is essentially an event bus that enables the flow of information between different applications and services in real-time, allowing for a decoupled, scalable, and reactive event-driven architecture.
It uses the Advanced Message Queuing Protocol (AMQP) and simplifies and delivers events from publishers (event producers) to subscribers (event consumers) in an asynchronous and reliable manner, across different applications, services, and systems. It decouples the event producers from consumers, allowing them to operate independently, thereby enhancing the overall system scalability, and resilience.
SAP BTP Event Mesh is a service that handles high volumes of events and provides durability. It allows services to capture, process, store, and distribute events to other services within the SAP BTP landscape and beyond.

Integrating SAP BTP Event Mesh service with SAP ERP can streamline data flow and enhance the efficiency and responsiveness of your IT infrastructure. Here's a step-by-step guide on how to integrate these two systems:

1. Understand the business scenario: Identify the business processes that need to be integrated between the SAP ERP system and the external system. This will help you understand the data and events that need to be exchanged between the systems.
2. Set up SAP BTP: If you haven't already, create an SAP BTP account and set up the necessary infrastructure, such as subaccounts, spaces, and instances.
3. Configure the Event Mesh service: In the SAP BTP cockpit, navigate to the "Services" section and locate the "Event Mesh" service. Create a new service instance and configure the necessary parameters, such as the messaging protocol (e.g., AMQP, MQTT, or WebSocket), authentication, and other settings. It's important to note that currently SAP BTP Event Mesh primarily supports the AMQP protocol.
4. Define events: Identify the events that need to be exchanged between the SAP ERP system and the external system. Create event definitions using the SAP Event Mesh's event schema registry. These definitions will act as a blueprint for the events that will be exchanged between the systems.
5. Configure SAP ERP system: In your SAP ERP system, set up the necessary configurations to enable event-driven communication. This may involve configuring the SAP Event Mesh adapter or using an SAP Cloud Connector to connect your SAP ERP system to the SAP BTP Event Mesh.
6. Configure the external system: In the external system, set up the necessary configurations to enable event-driven communication with the SAP ERP system. This may involve configuring the system to send and receive events using the Event Mesh's messaging protocol and authentication settings. And if I may give you some advice, use CAP (Cloud Application Programming Model) to consume the event mesh queue, I found another blog post on how to do this.
7. Implement event producers and consumers: In both the SAP ERP system and the external system, implement event producers and consumers that will generate and process the events defined in step 4. Event producers are responsible for creating events and sending them to the Event Mesh, while event consumers are responsible for receiving events from the Event Mesh and processing them accordingly.
8. Test the integration: Once the event producers and consumers have been implemented, test the integration by generating events in the SAP ERP system and verifying that they are received and processed by the external system, and vice versa.
9. Monitor and maintain the integration: Use the monitoring and logging features provided by the SAP BTP Event Mesh to keep an eye on the performance and health of the integration. Address any issues or bottlenecks that arise, and update the event definitions and integrations as needed.

By following these steps, you can establish a robust, event-driven integration between SAP ERP and another system using the SAP BTP Event Mesh service. Keep in mind that the specific implementation details may vary depending on the systems involved and the nature of the events being exchanged.

The Event Mesh service offers several advantages for integrating systems with SAP ERP.
    Real-time Communication: Event Mesh enables real-time, asynchronous communication between systems, allowing immediate reaction to changes in business objects.

    Scalability: Event Mesh supports a high volume of events, making it suitable for large-scale integrations.

    Resilience: The decoupling of event producers and consumers ensures that system failures do not affect the entire setup, thereby improving resilience.

    Interoperability: Event Mesh is agnostic to the programming languages or platforms, providing an excellent level of flexibility and interoperability.


SAP BTP Event Mesh service offers a robust and scalable solution for enabling event-driven architectures within your organization. By integrating this service with a SAP ERP system, you can react to business transactions in real-time, improve efficiency, and make your customer IT landscape more responsive and agile. However, setting up this integration requires careful planning and configuration, and it's crucial to thoroughly test your setup to ensure everything works as expected.

Also, if you want to know more and collaborate with your opinion and knowledge join the Event Mesh Community.

I hope you enjoyed the content.
Don’t miss our latest posts as well: Let’s celebrate the first AppHaus Network in Latin America
Would you like to know about the campaigns and offers available for Startups in Latin America? Contact startups@sap.com
6 Comments