Technology Blogs by Members
Explore a vibrant mix of technical expertise, industry insights, and tech buzz in member blogs covering SAP products, technology, and events. Get in the mix!
cancel
Showing results for 
Search instead for 
Did you mean: 
FlorianFarr
Explorer
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


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-c...

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-c...
20 Comments
0 Kudos
Thanks for sharing a valuable post! 🙂
carlos_ocampos
Participant
0 Kudos
Thanks Florian, I'm looking forward to the next blog!
FlorianFarr
Explorer
Thanks! Part 2 is coming the next days, I will link it here 🙂
ChristianPf
Participant
0 Kudos
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
ChristianPf
Participant
0 Kudos
Actually most customizing tables are empty 😞
FlorianFarr
Explorer
Hi Christian,

I will check that with our developers,

Florian
ChristianPf
Participant
0 Kudos
Hi Florian,

much appreciated. I also opened an incident to discuss this with your colleagues.

Kind regards

Christian
ChristianPf
Participant
0 Kudos
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.
0 Kudos

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!

michelm_de
Employee
Employee
0 Kudos
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
larshp
Active Contributor
0 Kudos
getting the same error, the namespace /ASADEV/ is not "SAP standard" and secure store is not possible to use for customer developments
michelm_de
Employee
Employee
0 Kudos
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

 
SBLSVRamana
Explorer
0 Kudos
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.
SBLSVRamana
Explorer
0 Kudos
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.
IanStubbings
Active Participant
0 Kudos
Hi Florian

Was there a fix for this?  We have this issue also.

Regards

Ian
martin_schffler
Participant
0 Kudos
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/b42b98ecc39f48a2aa5c8f3575...

Kind regards,

Martin
IanStubbings
Active Participant
0 Kudos
Thanks Martin. Done.

 

Do we also need to activate the BC sets from the step before?

Activate BC-Sets - SAP Help Portal

 

Regards

Ian
neelsap2
Explorer

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

  • 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

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

lhardin
Discoverer
0 Kudos
I also need this information as it is holding up a POC I am working on.

 
Labels in this area