Adding Customer Fields to the List of Alerts
This section explains how to add your own fields to the Manage Alerts app.
Adding Customer Fields to the FRA_ALERT Business Object
The first step in adding a customer field to alerts in Manage Alerts is to extend the FRA_ALERT business object.
Do the following:
-
Start transaction BOBF and open the business process object FRA_ALERT.
-
Expand Node Structure ROOT.
-
Double-click the Extension Include INCL_EEW_FRA_BO_ALERT_ROOT on the Node tab to navigate to the edit screen.
-
Add the new field to this structure, save, and activate.
Adding a field to the FRA_ALERT business object extends the FRA_D_ALERT_ROOT table.
For more information, see also Adding Customer-Defined Fields to Business Objects.
Extending CDS Views for Alerts
Once your new field has been added to the FRA_D_ALERT_ROOT table, you can extend the CDS views that read alerts.
You do this by extending two special CDS views that extend the operational views:
-
FRA_CV_AlertRootExtensionIncl
-
FRA_CV_AlertRoot
Extending CDS Views
Use ABAP Development Tools to extend the extension views. Add only the new fields, no other code.
-
Code for FRA_CV_AlertRootExtensionIncl
Create your own CDS data definition.
Delete the automatically inserted source code lines and replace it with the following sample code.
The sample code for adding a field called zextension_field looks like this:
RootExtension is required. The field name is determined by your addition to the extension include of the FRA_ALERT business object. The sqlViewAppendName is again yours to choose.
-
Code for FRA_CV_AlertRoot
The sample code for adding a field called zextension_field view looks like this:
RootExtension is required. The field name is determined by your addition to the extension include of the FRA_ALERT business object. The sqlViewAppendName is again yours to choose.
Flushing the OData Cache and Displaying the New Field
After the two views shown above have been activated, you must do the following:
-
Run the customizing activity Clear Cache () to clear the OData cache.
Once the cache has been flushed, the field that you have added is automatically made available in the OData representation of the Alert Root.
-
Select the new field in the settings of the Manage Alerts app, to display the field in the alert list.

