cancel
Showing results for 
Search instead for 
Did you mean: 

Enterprise Messaging - Unable to see Onprem events in SAPCP

0 Kudos

I followed the steps on the blog https://blogs.sap.com/2019/09/16/sap-enterprise-messaging-for-s4hana-on-premises/

I also checked https://answers.sap.com/questions/12662093/enterprise-event-enablement-is-there-a-monitor-for.html

and followed the additional steps. I do not have the transaction code /IWXBE/EVENT_DEMO in S4 HANA On Prem system so cannot test using that. There are no logs in SLG1, I do not see any connection in Monitor Web Socket. What do I need to do to see the events in my SAP CP queue

Appreciate any hints.

Thanks,

Vani

Accepted Solutions (1)

Accepted Solutions (1)

Tobias_Griebe
Advisor
Advisor
0 Kudos

Hi Vani,

the Namespace in the Enterprise Messaging service descriptor and the Topic Space configuration for your Channel are now identitcal: that's the way it's supposed to be. No need to change anything.

What is now obviously wrong is the Subscriped Topic Name of your queue. You have subscribed to Topic: SCPNAPra/IntSCPEM/ZMAEM. This means the topic of the events needs to be exactly this name. But the actual Topic Name of the events coming from S/4 will be something like: SCPNAPra/IntSCPEM/ZMAEM/BO/SalesOrder/Created. As a generic subscription, please add the following: SCPNAPra/IntSCPEM/ZMAEM/*.This will store any events coming from S/4 into your queue.

Tobias

Answers (2)

Answers (2)

0 Kudos

Hi Tobias,

Thanks very much for your quick response. I was a little too enthusiastic with my namespace so and hit the limit on topic space. So I made my topic space same as my namespace. Do not know if this is allowed. Topic space is now SCPNAPra/IntSCPEM/ZMAEM. ( I tried to change the namespace using CLI and was informed this cannot be changed ). After I changed the topic space, I deactivated the channel, activated it again. I did a connection test after that and it was successful.

I then deleted the subscribed events, saved. went out, went back in and subscribed again.

After that I went to my queue, deleted the subscription and and created a new subscription with the new topic space

Created a new sales order, checked event trace, then came back to SAPCP to check the queue. No luck. Do I need to recreate my instance with a smaller name space?

Service Descriptor

Channel with new topic space and connection test

Queue subscription

System Status for onPrem Version

Thanks again for valuables input. Hope you can help me find the mistake I have made. Do you think I need to starter because of the namespace being too big?

Thanks,

Vani

Tobias_Griebe
Advisor
Advisor
0 Kudos

Hi Vani,

what release is your S/4 on-prem system? That might be the reason why you don't have TA /IWXBE/EVENT_DEMO.

In /n/IWXBE/CONFIG, did you click on the button "Connection Test"? I would assume this will fail, although the channel is marked as active.

You didn't attach any screenshots with the service descriptor that was used to create the Enterprise Messaging instance, so I don't know the Topic Rules that you have defined. If you copied the examples from the documentation you have most likely set a publishFilter: "${namespace}/*". From the name of your queue I can see that your namespace is "SCPNAPra/IntSCPEM/ZMAEM". If above assumption about the Topic Rules is correct, you'll need to set the Topic Space of your channel to be the same as the Namespace defined in the Enterprise Messaging client.

You might also need to delete all the entries in table /IWXBE/C_EVENT if you used a Topic Space that is not allowed by the Topic Rules.

Tobias