Automatic Fiori Notification for Application Logs Error (Open Source Project)
July 28, 2023

Automatically trigger a Fiori Notification for Application Logs with an error, so that the responsible person can review the logs and take corrective measures if any is required. Once you click on Notification then it navigates to Fiori App “Application Logs App ID: F1487” and displays the logs.

Note: This is an Open Source Project. How to import the project is mentioned below.

Sample Notification & Navigation

Notification Appearance in Fiori Launchpad

Notification Navigates To Application Log

When the user clicks on Notification it navigates to Fiori App “Application Logs” and displays the Log information.

Notification Action Place Holder

If any backend action point is required then it can be plugged into Notification Action. As of now it just displays the response message.

<< To Top

Stack Dependencies

  1. Notification Navigation Target is coded as Fiori Application “Application Log App ID: F1487″, this is HDB exclusive app. You can change the target to SAPGUI-based Log Viewer if required.
  2. The application was built on the S/4 HANA 1809 System if by any change CDS used in the query to fetch Logs is not available in your system then change the query to fetch it from table BALHDR
  3. Please do the required Notification provider configuration manually after importing the project

<< To Top

How to import the project?

  • The project is available on GitHub as open source. It is recommended to use abapGit to import the project in offline mode or online mode.
  • Install abapGit if it does not already exist in the development landscape
  • Link to OData Service Repository https://github.com/aditheos/ApplicationLogsNotificationToFiori
  • Install GitHub Repository to SAP using online mode
  • If SSL gives you a headache then you can use offline mode
    • Export the repo from GitHub and follow the steps in the offline install
  • Activate all the objects in the package ‘$ZNOTIF‘ using SE80
  • Register & Activate Notification Provider

<< To Top

Register and Activate the Notification Provider

Follow the paths for registration & activation in SPRO and do the needful.

<< To Top

Artifacts Explained

ObjectCharacterstics
ZCL_APPLOG_NOTIF_PROVIDER (Class)The notification provider class is used by Notification API to get Notification Parameters, Generate Notification Texts, Action Texts, Handle Action & Bulk Action.
ZCL_APPLOG_NOTIF_SERVICES (Class)Provides Application Log specific data at runtime to Notification Provider
Z_APPLOG_NOTIF_CREATE (Program)Fetch Application Logs based on selection criteria and call Notification API to trigger Notifications

<< To Top