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.
Showing results for 
Search instead for 
Did you mean: 
Product and Topic Expert
Product and Topic Expert
In the situation of extesionsibility options determination like the following picture, to keep core system clean,for loose coupled application extension, we recommand to use side-by-side extensibility on BTP. In decoupled application, BTP Event Mesh play an important role.  We can realize some requirements with Integration instead of side by side extention.Today I will demo how use CPI AMQP adapter to test BTP event mesh.In my following blogs, I will introduce how to use CPI to realize  some logic triggered by  S/4 Hana Cloud event .


  • For Event Mesh, you have finished the following 3  steps:

  1. Get Started with the Event Mesh User Interface

  2. Setting Up SAP Event Mesh in BTP Cockpit

  3. Creating an Event Mesh Instance Using the Default Plan,you will event mesh instance service key like...

Testing Steps:

1, Create Event queue as help .


2 Create oauth2 client credential in CPI

3 Create and deploy iflow in CPI to consume event from event queqe in Event Mesh

/* Refer the link below to learn more about the use cases of script.

If you want to know more about the SCRIPT APIs, refer the link below */
import java.util.HashMap;
def Message processData(Message message) {
def body = message.getBody(java.lang.String);

def messageLog = messageLogFactory.getMessageLog(message)

if (messageLog != null) {
messageLog.addAttachmentAsString('Em content', body, 'text/plain')
return message;

4 Create and deploy iflow in CPI to produce event to event queqe in Event Mesh


5 Use postmen to send message  to eventissue iflow in step4

6 Check result in iflow of event consuption


The End!


Thanks for your time!

Best Regards!

Jacky Liu