Fonction SAP BAPI_SYSTEM_ALERT_GETDETAILS - Read alert details

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
AID BAPIAID u 84 Alert ID
EXTERNAL_USER_NAME BAPIXMLOGR-EXTUSER C 16 Name of the SAP-External User
GET_ACTIVE BAPIPARAMS-BOOL_PARA C 1 'X' X Analyze Active Alerts
GET_HISTORY BAPIPARAMS-BOOL_PARA C 1 ' ' X Analyze Completed Alerts

Paramètre Reférence Type Long. Description
PROPERTIES BAPIALERT u 212 General Alert Properties
RETURN BAPIRET2 u 548 Return Messages
TID BAPITID u 84 ID of Monitor Tree Element Corresponding to Alert
TIME BAPIALDATE u 14 Time of Alert
VALUE BAPIALDATA u 8 Alert Data (Value, Severity)
XMI_EXT_MSG BAPIXMIEXT u 255 Translated and Triggered External Management Tool Message
XMI_RAW_MSG BAPIXMIRAW u 690 Parameters of the External Management Tool Message (Text, Arg)

Functionality
This function reports all relevant alert properties for an alertspecified by an alert ID such as the alert value (or its severity) orthe monitor tree element corresponding to the alert.

Further information
XAL documentation

Description
This parameter contains general properties for the alert such as thelast time the value was changed.
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE RETURN_DESC ID TX

Value range
MSG_AID_INVALID: The specified alert ID is invalid.
MSG_C_CALL_FAILED: The last C function to be called could not beexecuted.
MSG_COMMUNICATION_PROBLEM: The tool could not be executed due tocommunication problems (possibly check network connection).
MSG_DB_PROBLEM: There was a problem when the system attempted to accessthe database.
INCLUDE RETURN_DEFAULT_RANGE ID TX

Description
INCLUDE TID_DESC ID TX

Description
This parameter describes the time at which the alert appeared.
It contains the following parameters:
Date (ALDATE field)
Time (ALTIME field)

Description
This parameter describes the value and severity of the alert.
It contains the following parameters:
Value (VALUE field)
Severity (SEVERITY field)

Description
This parameter contains the triggered external management tool messagecorresponding to the alert.
The individual external management tool message parameters arecontained within the XMI_RAW_MSG parameter.
INCLUDE BAPI_DATAELEMENT

Description
This parameter contains the parameters for the alert corresponding tothe external management tool message.
The triggered alert is contained in the XMI_EXT_MSG parameter.
INCLUDE BAPI_DATAELEMENT

Description
INCLUDE AID_DESC ID TX

Description
INCLUDE EXTERNAL_USER_NAME_DESC ID TX

Value range
INCLUDE EXTERNAL_USER_NAME_RANGE ID TX

Description
If this parameter is set to "X", the system will search the activealerts for the desired alert.

Description
If this parameter is set to "X", the system will search for the desiredalert among the completed alerts.