cancel
Showing results for 
Search instead for 
Did you mean: 

How to read AIF logs from ABAP code(RAP) in S4 HANA public cloud

munipkumar
Explorer
371

Hi Experts,

We have a requirement to fetch the log messages from AIF Message dashboard app on S4 HANA public cloud.

We are developing a custom report using RestFul ABAP (RAP ) and we are stuck at a place how to read the error log messages for an asynchronous API to know the status of Asset created in the system.

( API- https://api.sap.com/api/FIXEDASSETCREATEMAIN/overview )

We are able to see the AIF logs in the message monitoring( Message dashoard ) fiori apps, but the same AIF message we would want to fetch into custom ABAP RAP code.

Could not find relevant information on the community , hence posting this question.

Appreciate if some one  provide a solution how to achieve this.

regards,

Kumar

Fahrettin
Explorer
0 Kudos

Hi Kumar,

The same issue that we will face A2A - Sales Order (SOAP) API and can not find any AIF CDS or API to fetch the value of error log from AIF.

If you have a solution on that please share the resolution that will be appreciated.

Kind Regards,

Fahrettin

OwenLiu
Product and Topic Expert
Product and Topic Expert
0 Kudos
Please remove tags: API, SAP Application Interface Framework, ABAP RESTful Application Programming Model, SAP S/4HANA Cloud Public Edition.
View Entire Topic
AndreasMuno
Product and Topic Expert
Product and Topic Expert
0 Kudos

Thank you for your request, @munipkumar.

To read error log messages programmatically from the message dashboard (AIF) in S/4HANA Cloud Public Edition you may want to get familiar with this API: Overview | Message Processing Logs | SAP Business Accelerator Hub.  

The SOAP API that operates like a response to the Create Asset API you mentioned is this creation confirmation API: Overview | Fixed Asset - Create Main Asset (Asynchronous) Confirmation | SAP Business Accelerator Hu....  

You can find a list of all asynchronous APIs on Asset Accounting here: APIs for Asset Accounting | SAP Help Portal.

If this solved your request, please mark this response accordingly. Thank you.