Registration

Dear SAP Community Member,
In order to fully benefit from what the SAP Community has to offer, please register at:
http://scn.sap.com
Thank you,
The SAP Community team.
Skip to end of metadata
Go to start of metadata

Purpose

This page contains debugging information regarding the program flow of the READ_SDP_ALERT method of class: /SAPAPO/CL_AMOALRT_SD. This page can be useful to help in finding reasoning of why unexpected results are returned during SDP alert determination in for example transaction /SAPAPO/AMON1.

Overview

Use SE24 transaction to view the Class: /SAPAPO/CL_AMOALRT_SD and choose method: READ_SDP_ALERT from the list.

For debugging reasons before Alert Determination the initial breakpoint can be set at statement:

IF plver IS NOT INITIAL.

Peak points to check:

*   reading of dynamical alerts
IF NOT l_read_dyn_alerts IS INITIAL. >> here, the dynamical alerts are checked if there are any, in the alert profile


*         read dynamic macro alerts for this data view and selection
          CALL FUNCTION '/SAPAPO/TS_DM_ALERT_GET' >> here, the dynamical alerts are listed


*       read alert from alert Data Access Layer
CLEAR lt_alert_macro_db.  >> here, the database macro alerts are obtained into LT_ALERT_MACRO_DB

 

LOOP AT lt_alert_macro_db INTO ls_alert_macro.  >> LOOP through on LT_ALERT_MACRO_DB check if the database alerts fit to the selection criteria of the alert profile. If an alert record (line) is not matching the selection, it will not be displayed.

The Main variables to track during debugging through the READ_SDP_ALERTS method:

VariableExplanation
T_ALERTStable including the final results of the read_sdp_alerts method
LT_ALERT_MACRO_DBmacro database alerts local table
L_TS_ALERT_TAB

dynamic alerts table

L2_ALERT_TAB 
L_AT_LIST_TABAlert Types of  the profile (same as in transaction /N/SAPAPO/AMOCFG)


The BADi implementation for modification of the alert list are placed at the very end of the method.

CALL METHOD modify_alertlist_badi   

Related Content

Related Documents

Related SAP Notes/KBAs

 

  • No labels