Skip to Content
Apr 30, 2020 at 03:38 AM

How to get a list of the Objects and Subobjects from S/4HANA Cloud for AIF Message Monitoring


Hello everyone,

This is a follow-up to this question here:

The question pretty much asks if there is an API get to get the Application Logs from the AIF Monitor which the answer was that SAP has an undocumented Communication Scenario, SAP_COM_0454, that needs reverse engineering. This communication scenario has two different APIs within it, one SOAP and the other OData. Since that OData allows you to query the metadata on the endpoint, I decided that it would be worthwhile to reverse engineer that one. I've included a screenshot of the metadata once I got it.

In Postman, I tried to get a list of logs using the endpoint "/AppLogRecodSet," but it throws an error if I'm missing the filter attributes. The fields I need for the filter query are:

  • Object - maxLength(20) - The Object name (Application code)
  • Subobject - maxLength(20)
  • UtcFrom - maxLength(14) - YYYYMMDDHHmmss
  • UtcTo - maxLength(14) - YYYYMMDDHHmmss
  • Now, the problem is I do not know how to find the viable Object and Subobject code in order to get the list of logs I need. The closest hint I have if the system was OnPrem would be this:

    Essentially the Object and Subobject information is related to the T-Codes SLG0 & SLG1. So my question is where can I find this information inside of S/4Hana Cloud? I'd like to reverse engineer this API a bit more, but this seems to be the big roadblock in this case.

    Thank you

    EDIT: If you check the OnPrem systems, the table BALOBJ contains the fields needed. Essentially, what is S/4Hana's equivalent to BALOBJ?