Skip to Content
Author's profile photo Abinash Nanda

End2End monitoring of HCI message flow in Standard Content – Made easy

So far with HCI end to end monitoring of messages has always been little difficult. For example in the past it was always difficult to find an IDOC and its corresponding SAP Cloud for Customer message ID. With 1505 release, now the monitoring of asynchronous messages have been made easy.


This feature has been introduced via the help of Content Modifier (Using SAP_ApplicationID header element)


For ERP->HCI->C4C we can search message based on IDOC numbers and for C4C->HCI->ERP we can search messages based on message ID available via web service message monitor in SAP cloud for Customer.


For this simply specify the IDOC no or SAP Cloud for Customer message ID in the search field Application ID as shown below


application id search.PNG


Now to see end to end monitoring in action, let’s take an example scenario in which data flows from ERP to SAP Cloud for Customer via HCI. Using t-code WE05 in the back end system we can get the IDOC number and provide it as a filter in the Application ID field. This should return us the corresponding HCI message in the message monitor


ERP-IDOC Search.PNG


Now we can open the message processing log and search for the string com.sap.sod.utils.idoc.soap.messageid, which will give us corresponding message ID for the SAP Cloud for Customer system

FindmessageID.PNG


For the other direction in which data flows from SAP Cloud for Customer to SAP ERP via HCI, we can get the message ID using the web service message monitor in SAP cloud for Customer and provide it as a filter in the Application ID field.


C4C-MessgeID Search.PNG


Now we can open the message processing log and search for the string com.sap.sod.utils.idoc.soap.idocassign, which will give us corresponding IDOC no in the SAP back-end system.


FindIDOCNo.PNG



Limitations:

1.     Currently only asynchronous messages can be monitored and

2.     Bulk IDOC monitoring is not supported


A Conclusion note: You can use the content modifier to search the message based on any other header fields or payload element.

For getting all the header fields you can write a simple groovy script, which should return all the header fields available in runtime

For searching based on payload element you can use XPath expressions.






Assigned Tags

      10 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Ginger Gatling
      Ginger Gatling

      Great, thanks, Abinash!!!

      Author's profile photo Chandan Bankar
      Chandan Bankar

      Thanks Abhinash ... this is helpful. 🙂

      Author's profile photo Former Member
      Former Member

      Hi Abinash,

      Can you please help in defining the fields of the content modifier, when I want to retrieve
      the runtime message ID for asynchronous scenario- whether to use Xpath or header as type etc?

      What should be the field name for message ID mentioned in allowed headers in runtime configuration which can be used in content modifier?

      Thanks,

      Mayuri

      Author's profile photo Harish Choudhary
      Harish Choudhary

      Good one Abinash

      Author's profile photo Bhavesh Kantilal
      Bhavesh Kantilal

      Hello Abhinash,

      Does the option to search with the IDoc number only work for the Standard C4C Scenario?

      We have tried to use this for a Custom Scenario using a Standard SAP IDoc but the search with the IDoc number does not yield the desired results. Is there a way we can do this for a Custom Scenario?

      Regards,

      Bhavesh

      Author's profile photo Abinash Nanda
      Abinash Nanda
      Blog Post Author

      As I have mentioned it in my conclusion note, you can also do it for your custom scenario.Please check the link SAP HANA Cloud Integration (External) .

      You simply need to map SAP_ApplicationID from //IDOC/EDI_DC40/DOCNUM (just a xpath for the IDOC no in the payload)

      Best regards, Abinash

      Author's profile photo Venkatagiri Gongadi
      Venkatagiri Gongadi

      Hi Abinash,

      Thanks for the information.

      I am not able to get the message status using Idoc in HCI tenant,please let me know if i am missing something.

      Will it work for failed message as well?

      Cheers,

      Giri

      Author's profile photo Abinash Nanda
      Abinash Nanda
      Blog Post Author

      I need to see the integration flow project to comment. If the application header id appears on MPL depends where the content modifier step is used to persist the same. For example if the Content modifier step is used after the mapping step and the message fails in mapping step, then the application header id will not be available in the MPL. But if the message fails in the receiver channel then you can see the IDOC number in the MPL.

      Best regards, Abinash

      Author's profile photo Robert Schmiedel
      Robert Schmiedel

      Hello Abhinash,

      i have one question regarding monitoring in general.

      Is there a possibility to use some kind of automatical alerting via mail?

      For PI Systems we had mail based alerting, for HCI integration scenarios we need to log on manually to the system and take a look at the monitor.

      do you now any chance?

      best regards

      Robert

      Author's profile photo Abinash Nanda
      Abinash Nanda
      Blog Post Author

      Hello Robert,

      Currently HCI does not have alerting mechansim via email like that of SAP NetWeaver PI. The only way to trigger an alert is to use the mail adapter in an exception branch.

      Best regards, Abinash