Technical Articles
SAP Enterprise Messaging for SAP ERP: HowTo-Guide (Part 1 – Connectivity)
This blog post is about the first steps to set-up and enable the SAP NetWeaver Event-Enablement Add-on, a new component from SAP for SAP Cloud Platform Enterprise Messaging connectivity.
Features of the Add-on:
- Add-on to SAP NetWeaver ABAP systems, operates within the established SAP infrastructure of the underlying system in all aspects (application management, security, logging
- Allows to enhance or create custom content (extractors, formatters) and connectors
- Uses highly scalable techniques to bring customer data and events into the cloud
- event based triggers
- delta loads / change pointers
- parallel data processing (in multiple SAP work processes)
- data splitting
- BAPI calls for data selection are possible
- Supports outbound AND inbound data flows
- Supports interface clustering for efficient provisioning to multiple cloud applications
Before You Start: Preparation Steps & Installation
- Make sure you have signed-up and you can access your SAP Cloud Platform instance
- Activate the “Enterprise Messaging” Service
Please note: this Service is available on Cloud Foundry instances only
- If you have an active subscription of the Enterprise Messaging service, you should be able to download the Add-on component from the Software Center at: https://launchpad.support.sap.com/#/products/73554900100900005152
- Install the Add-on. Installation and Set-Up Documentation can be found at: https://help.sap.com/viewer/e966e6c0e61443ebaa0270a4bae4b363/1.0/enUS/3eba827c531344eb879d8e35022d90ba.html
What’s coming up in Part 1?
- We will define connection between SAP Cloud Platform and SAP ERP
- This is a one time action, required per cloud (e.g. EU10, EU20, ..) and per subaccount
- For convenience, copy the service key from your Enterprise Messaging instance into e.g. a notepad for easier copy and paste. This connection is using REST, not e.g. AMQP or MQTT.
–> Update: Part 2 will guide you through configuration of an actual Enterprise Messaging use-case, based on an SAP business object even. Please find it at https://blogs.sap.com/2020/10/08/sap-enterprise-messaging-for-sap-erp-howto-guide-part-2-first-use-case/
Step 1: Setting up basic connectivity in SM59
- Create RFC Connection with connection type ‘G’ pointing, to the URI from the
service key (from the httprest section) - Enter the URI without the ‘https://’, like
“enterprise-messaging-pubsub.cfapps.eu10.hana.ondemand.com”
- This is the connection towards the data center, e.g. EU10
- Save
SM59 Settings (Example)
Step 2: Setting up OAuth connectivity in SM59
- Create a second RFC Connection ‘G’, pointing to the “tokenendpoint ” from the
Subaccount - Enter ‘/ oauth /token’ in second line (Path Prefix)
- In ‘Logon and Security’ –> ‘Security option’, select ‘active’ and ‘Anonym ssl client (Anonym)’
- Make sure certificates were exchanged earlier (other ppt with more details on SSL Trust settings / certificates exchange available)
SM59 – OAuth Settings (Example)
Step 3: Set-up sending in ‘ACI: Connection Customizing File Transfer’
- Create a connection instance and point it to the SAP Cloud Platform instance
- Enter RFC destination for main service
ACI Configuration for Connection Setup
Step 4: Configure ‘File Transfer’ Connection Instance
- Enter Client ID (SAP_EM_CLIENT_ID) from Service Key
- Enter RFC destination for OAuth you created earlier (SAP_EM_TOKEN_DESTINATION)
File Transfer Instance Configuration
Step 5: Map the expected error codes from the Enterprise Messaging Service
- Please note: Also return codes other to 200 could mean ‘success’
Map webservice error codes
Step 6: Set cloud connection password (‘clientsecret’)
- Enter password from Service key ‘clientsecret” into the secure data store
Set cloud connection password
Congratulations! You have set-up the connectivity of the Add-on.
–> Part 2 will guide you through configuration of an actual Enterprise Messaging use-case, based on an SAP business object even. Please find it at https://blogs.sap.com/2020/10/08/sap-enterprise-messaging-for-sap-erp-howto-guide-part-2-first-use-case/
Thanks for sharing a valuable post! 🙂
Thanks Florian, I'm looking forward to the next blog!
Thanks! Part 2 is coming the next days, I will link it here 🙂
Part 2 is out! https://blogs.sap.com/2020/10/08/sap-enterprise-messaging-for-sap-erp-howto-guide-part-2-first-use-case/
Hello Florian,
the table with the ISO codes is empty in our system. I executed the BC Sets etc. but still no entries.
Table: /ASADEV/AMR_CODE
Is this a known issue?
Regards
Christian
Actually most customizing tables are empty 🙁
Hi Christian,
I will check that with our developers,
Florian
Hi Florian,
much appreciated. I also opened an incident to discuss this with your colleagues.
Kind regards
Christian
Hi Florian
Was there a fix for this? We have this issue also.
Regards
Ian
Hi Ian
You have to manually enter the relevant code page entry in IMG activity Maintain Cloud Codepages
See also: https://help.sap.com/viewer/e966e6c0e61443ebaa0270a4bae4b363/LATEST/en-US/b42b98ecc39f48a2aa5c8f357573d51f.html
Kind regards,
Martin
Thanks Martin. Done.
Do we also need to activate the BC sets from the step before?
Activate BC-Sets - SAP Help Portal
Regards
Ian
At least in our environment I also had to use a SSL Client for the first destination. Please update this in the blog as well if possible. Thank you.
Hey,
thank you for the great Blog-Post. I would have liked to start with SEM but I am not able to find a Download-Source for the AddOn.
Download-Page is just empty.
Does someone have a clue on what I'm doing wrong?
Thank you!
Hi Florian,
thanks for this blog entry. However, when doing step 6 - setting the cloud password I'm getting an error which is caused by when inserting the client secret into the Secure Store at Function Module SECSTORE_INSERT_ITEM. The return code is 1 and the message from this function module is:
Access to entry /ASADEV/AMR/SAP_EM in the secure storage denied.
Have you seen this issue before or any idea?
Regards,
Michel
getting the same error, the namespace /ASADEV/ is not "SAP standard" and secure store is not possible to use for customer developments
Hi Lars,
I was able to overcome this issue by upgrading the Event Enablement Addon to SP2. Hope this works also for you.
Regards,
Michel
Hi Lars Hvam ,
I have configured all the settings in S/4HANA 1909 OP and SAP BTP Trail account but still not able to see the messages in Event Mesh Dashboard under Overview.
Kindly guide me how to debug the issue as I don't see any issue in /IWXBE/ERROR_LOG or SLG1 or any where else like Daemon or WebSocket logs too and no dumps too.
Regards,
Ramana.
Hi Lars,
I'm trying the Event Mesh scenario between SAP S/4HANA 1909(OP) and SAP BTP Trial account and was able to configure all the steps in SAP S/4HANA 1909 OP and SAP BTP Trail account.
Able to see the messages in SAP Event Messaging (Event Mesh) in SAP BTP Trial account sent from Postman but when I tried from SAP S/4HANA 1909 OP system no messages received in SAP BTP Trial account.
No error log to monitor no issues during message sent so not able to identify the issue.
Could you please kindly guide me how to troubleshoot the issue.
Regards,
Ramana.
Hello Florian,
Thanks for the step by step guide.
I have been able to follow along all the steps, however I am still having some connectivity issues.
In Step 2 you have mentioned
other ppt with more details on SSL Trust settings.
Can you please share this documentation. I believe this might be part of the problem.
In transaction /ASADEV/ACI_MONITOR I am getting a 403 Forbidden error message when trying to send an event across.
thanks,
Neel
I also need this information as it is holding up a POC I am working on.