XAL External Interface For Alert Management
XAL External Interface For Alert Management
XAL External Interface For Alert Management
Version 1.0
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 1 of 76
XAL External Interface for Alert Management
Contents
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 2 of 76
XAL External Interface for Alert Management
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 3 of 76
XAL External Interface for Alert Management
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 4 of 76
XAL External Interface for Alert Management
SAP system
Using external interfaces, you can integrate SAP systems simply and seamlessly both into local administration
programs and into company-wide system management infrastructures. This integration cannot and should not
fully replace the use of CCMS functions. Complex and security-critical system monitoring tasks must always be
performed using the CCMS. Basic CCMS functions are also required and expected by SAP applications and
the SAP Solution Manager. This means that SAP applications use internal functions for job management even if
you are using an external program for job management and scheduling.
The goal of the integration is to provide the user with a homogenous infrastructure for the display of the re-
quired information. The goal of the interfaces is to facilitate the information flow between SAP systems and
external programs. In this way, external programs can provide additional flexibility when extending basic CCMS
functions.
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 5 of 76
XAL External Interface for Alert Management
Monitor Alert
Monitor
Monitoring Architecture
Monitoring Monitoring Monitoring Monitoring Methods
Database
Object Object Object Object for Object
The CCMS monitoring architecture is not a monolithic monitoring and administration program. Rather, it pro-
vides a flexible framework to which extensive monitoring and administration functions can easily be added. The
elements of the monitoring architecture function largely independently of each other and can also be further
developed and customized independently of each other:
• Data Supplier
A Data Supplier [page 7] is a program that provides data about monitored objects to the monitoring ar-
chitecture. The monitoring architecture provides an infrastructure for collecting and administering sys-
tem information. The monitoring architecture constantly compares the values recorded by the data sup-
pliers with the threshold values and triggers an alert if a value exceeds or falls below a threshold values.
• Data Consumer
A Data Consumer is a program that reads data from the monitoring architecture; it displays the informa-
tion transferred to the monitoring architecture by the data suppliers. SAP delivers both the default data
consumer with the Alert Monitor and other special monitors that use the monitoring architecture data.
A monitoring object signifies an object that is to be monitored; a monitoring attribute signifies an infor-
mation type that is to be reported for a monitoring object (see Monitoring Objects and Attributes [page
9]).
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 6 of 76
XAL External Interface for Alert Management
The Alert Monitor also provides the administration methods required to monitor the system. In this way, you can
set the threshold values for alerts and add or customize auto-reaction and analysis methods: when an alert is
triggered, auto-reaction methods react automatically; you can use an analysis method to investigate the cause
of an alert without leaving the Alert Monitor. The monitoring architecture also contains tools for the administra-
tion and archiving of the alerts.
When starting the Alert Monitor, you can see that the data suppliers are already active for reporting for the fol-
lowing components:
• SAP R/3 instances (application servers) and their services and components
The data suppliers in your system are started either automatically during the system startup or as they are re-
quired. There are two types of data suppliers:
• Passive data suppliers are started by the monitoring architecture, and must therefore be defined there.
“Passive” describes the behavior of the data supplier in relation to the monitoring architecture: it does
not start itself, but must rather be started by the monitoring architecture. Passive data suppliers are also
called data collection methods.
• Active data suppliers are started by the monitored application, not by the monitoring architecture. These
data suppliers are active in their start behavior in relation to the monitoring architecture.
A data supplier writes the values for the monitored objects to a segment of the shared memory, the monitoring
segment. This monitoring data can be transferred to the monitoring architecture in two ways:
• Using a defined ABAP interface, in the case of an SAP instance - a free work process is required to do
this
• Using a CCMS agent [Agents], in the case of any server; the transfer is performed using Remote
Function Calls (RFC)
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 7 of 76
XAL External Interface for Alert Management
Dispatcher
ace
Central f
t er Alert Monitor
Monitoring System In
B AP
A
Monitoring Segment
Alert Monitor (Shared Memory)
As the connection route using a CCMS agent no longer requires a free work process, the access
route is independent of error states of the SAP instance and is therefore more robust. The CCMS
agents also use push technology with which the agents automatically report alerts as of SAP Web
Application Server 6.10, and as of SAP Web Application Server 6.20, even the data. This helps
achieve good performance, as the central monitoring system no longer needs to query the agent
periodically for alerts. We therefore recommend that you use CCMS agents when connecting re-
mote systems to the central monitoring system.
2.2 Alerts
The Alert Monitor generates alerts in the monitored system using threshold values and rules, as soon as the
status of the monitored system deviates from the norm. The alerts direct your attention to critical situations,
meaning that you do not have to search for them yourself. Auto-reaction methods inform you about a problem
or react to it in some other way, even if you are not working in the Alert Monitor.
For the system administrator, an alert is a malfunction report or a service request. You should react to every
alert. Investigate the alert using the analysis methods of the Alert Monitor. When you have solved the problem,
or are sure that you can safely ignore it, set the alert to complete. The alert is deleted from the display and
saved to the alert database.
The Alert Monitor reports alerts in the monitoring tree upward. This means that the color for a node always dis-
plays the highest alert in all elements of its branch. If, for example, a host system is displayed as red, one or
more components in this tree is displaying a red alert.
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 8 of 76
XAL External Interface for Alert Management
An alert is uniquely assigned to one monitoring tree element (MTE) in the monitoring tree. The alert is gener-
ated when values from a data supplier are sent to an MTE. The Alert Monitor evaluates the incoming informa-
tion in comparison with the alert threshold values. If the incoming data exceeds or falls below a threshold value,
the Alert Monitor triggers an alert. The Alert Monitor generates an alert for every status that deviates from the
norm, and traces it until you set the status to Complete.
Threshold values and severities are predefined for all monitoring attributes. These settings are based on our
extensive experience with SAP R/3 production systems.
Monitoring attributes are combined into attribute groups. An attribute group contains the threshold values that
the associated monitoring attributes have in common. In this way, all instance-specific copies of the Response
Time attribute belong to one attribute group. This means that the same threshold values are set in all instances
of an SAP R/3 System. To change threshold values, you only need to change the value for the corresponding
attribute group.
Color Meaning
Yellow Warning
Green Everything OK
Monitoring objects and attributes are displayed in a hierarchical tree in the alert monitoring tree. If the data re-
ported to the monitoring architecture exceeds or falls below the defined alert threshold values, an alert is trig-
gered in the corresponding MTE. You can assign Method [page 10] to monitoring attributes.
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 9 of 76
XAL External Interface for Alert Management
Performance Attribute Collects reported performance values and calculates the average
Log Attribute Checks log and trace files (these attributes can use an existing log
mechanism, such as the SAP system log, or you can create a separate
log from an application to be used for the implementation)
Text Attribute Allows a data supplier to report information without alert values; the text
can be updated as required
• An MTE class describes the general properties and method assignments that are common to a particu-
lar group of monitoring tree elements.
• An attribute group describes the common threshold values for alerts for a particular attribute type.
MTE classes and attribute groups simplify the customizing of the Alert Monitor, as you do not need to change
the threshold values, properties, or methods individually for each MTE, but rather only for the corresponding
attribute group or MTE class.
MTE classes also simplify the creation of your own rule-based monitors, as you do not need to specify each
MTE individually when constructing the alert monitoring tree, but rather only the corresponding MTE classes.
The classification of MTEs to MTE classes and attribute groups is already fully predefined. You do not need to
make any changes to be able to use this classification.
2.5 Methods
You can assign methods to monitoring attributes and access the method definitions using transaction RZ21 of
the Alert Monitor. A method can be a report, a function module, an SAP transaction, or a URL that is to be run
as a reaction to an alert. The execution of these methods is possible within the Alert Monitor. If, for example,
you double click the MTE for prematurely terminated jobs, the monitoring architecture automatically starts the
job administration transaction, in which the job reported in the MTE is already selected.
All methods required for standard monitoring functions are predefined. You only need to change the method
assignments if you are adding a new method, or if you want to replace one of the SAP standard methods with
your own method. You can transport method definitions to other SAP systems. This is, however, only necessary
for your own method definitions; the methods delivered by SAP are already available in all systems with the
same SAP Basis release.
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 10 of 76
XAL External Interface for Alert Management
These methods allow the collection of information about the SAP system and its environment that is
then reported to the monitoring architecture. The methods start automatically or are automatically
started by the Alert Monitor at a specified interval.
• Auto-Reaction Methods
These methods automatically start when an alert is triggered. There are several predefined auto-
reaction methods in the monitoring architecture that you can assign to MTE classes:
o Send an e-mail
• Analysis Methods
These methods allow you to analyze error situations without leaving the Alert Monitor. You start an
analysis method manually. An analysis method is, for example, an ABAP program for displaying infor-
mation about a node in the monitoring tree and for collecting information about the problem that trig-
gered an alert in this node.
• For a detailed description of the standard monitors delivered by SAP with their monitoring tree ele-
ments, see [StdMon]
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 11 of 76
XAL External Interface for Alert Management
In the following, it is a prerequisite that the external system management program is connected to
the SAP system using an agent that performs the communication with the function modules.
• XBR External interface for backup and recovery (current name: BRI or Backint)
The following table shows, in addition to the abbreviation and the description of the interfaces, the technology
used, the SAP Basis release with which it is delivered, and information about whether certification of the inter-
face is possible:
XBP RFC 3.1G Interface for scheduling, release, and monitoring of Yes
1.0 SAP jobs (BC-XBP)
XBR CLI/Script 3.0G Interface with functions for backing up and restoring Yes
2.0 database data (BC-BRI)
XBM RFC 3.1G Interface with basic functions for scheduling and re- No
0.1 leasing SAP jobs
XMI RFC 3.1G Interface that allows external access to the CCMS Yes
(including monitoring and log functions) (with BC-XBP)
XOM RFC/CLI 4.0A Interface with control functions and Output Manage- Yes
0.1 ment return messages (BC-XOM)
XAL RFC 4.0A Interface for system monitoring and alert management Yes
1.0 (BC-XAL)
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 12 of 76
XAL External Interface for Alert Management
All RFC interfaces use the same function groups as the corresponding internal SAP functions. This does not
apply, of course, for the XMI interface, as in this case there are no functions for internal use:
SAP
XAL
• Prefix BAPI
• ID for the actual interface, such as XBP for eXternal Background Processing; for function modules of
the XAL interface, this ID is SYSTEM
• XMI is the interface through which the activities of users and agents during the call of function modules
are logged. In particular, XMI logs the first access of an agent to the function group. During this, the
name of the external program is stored, and the version number that the external program requires at
the interface is checked.
• Remote Function Calls (RFC) form the basis of communication for the calls of the function modules of
which the interface consists on the SAP side.
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 13 of 76
XAL External Interface for Alert Management
External
access
interface-
XAL XBP specific layer
The XMI interface remains almost invisible to developers that want to integrate external programs into the
CCMS; only at the beginning and at the end of a session are the following calls required:
In addition, the following functions are available to your from the external program:
Use transaction RZ15 (XMI Log Administration) to view the XMI log. The following data is displayed, along with
other information:
• Name of the external program, the external user, and the company that provides the program
Features:
With external system management programs, in relation to the SAP system, the program is a client that pro-
vides a service to an application server. This service includes the delivery of internal system information and the
execution of individual system management functions.
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 14 of 76
XAL External Interface for Alert Management
RFC works in individual sessions - the user opens a session, performs the relevant tasks, and closes the ses-
sion again. Opening the session requires a normal logon to the SAP system with user and password, with
which the user is identified by the SAP system. This user must therefore exist within the SAP system and have
the required authorizations for the activities that you want to perform during the RFC session.
RFC can be used synchronously, asynchronously, or transactionally. For a detailed introduction to the basics
and functions of RFC, see the online documentation (see [RFC]). The following examples use synchronous
RFC calls (with the exception of RfcCall):
RfcOpen() Creation of an RFC connection with an application server; the connection details are
either specified directly or read from a file
RfcCallReceive() Synchronous call of an RFC client; a function module is called in the SAP system; the
client regains program control after the function module has been processed
RfcCall() Calls a function module without waiting for the result of the call
RfcLastError() Call for analysis of RFC errors; the information is displayed using stout
ItCreate() Reservation and release of memory for the exchange of table contents between the
ItDelete() client and the SAP system
#include "saprfc.h"
main()
{
rfc_handle = RfcOpen(&rfc_opt);
function = "BAPI_XMI_LOGON";
.....
rfc_rc = RfcCallReceive(rfc_handle, function, exporting,
importing, tables, &exception);
function = "BAPI_XMI_SELECT_LOG";
......
rfc_rc = RfcCallReceive(rfc_handle, function, exporting,
importing, tables, &exception);
/* a lot more action */
function = "BAPI_XMI_LOGOFF";
.........
rfc_rc = RfcCallReceive(rfc_handle, function, exporting,
importing, tables, &exception);
RfcClose(rfc_handle);
}
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 15 of 76
XAL External Interface for Alert Management
From this example, you can develop a model for a session between an SAP system and an external system
management program. An RFC session contains one or more XMI sessions. Each XMI session contains a se-
ries of function calls from the function group of the relevant interface:
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 16 of 76
XAL External Interface for Alert Management
To collect desired data from CCMS monitors, you first require the name of the CCMS monitoring
architecture monitors. You can use the following BAPIs to obtain these:
To complete alerts using the XAL interface, the alert IDs must be available to you for the corresponding alerts
(see Alert ID: AID (Structure BAPIAID) [page 62]). You receive these as return parameters of the function mod-
ule BAPI_SYSTEM_MT_GETALERTDATA , when you Read Alerts [page 17]. Then use the following BAPI:
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 17 of 76
XAL External Interface for Alert Management
5 Function Modules
• The terms Import and Export in the classification of the transfer parameters should always be
considered from the point of view of the corresponding function module; that is, the function
module is called with the import parameters, and returns export parameters.
• As the use of XAL function modules first requires a log on to the XMI interface, the following
list also includes the function modules BAPI_XMI_LOGON and BAPI_XMI_LOGOFF.
Name BAPI_XMI_LOGON
Short Description Logon of an agent to the external XMI interface
Function With this method, you can log on to one of the CCMS system management interfaces. This logon is a
prerequisite for the use of the functions of the CCMS interfaces.
The logon ensures that all accesses to system management functions are logged. It is also possible to
load language-specific messages from external products using the CCMS XMI session interface.
Notes Before the first call of this function module, the external system management program must first log on
to the SAP R/3 System with an SAP R/3 user name and the associated password (C function RfcO-
pen).
Parameters INTERFACE ID of the interface with which you are to work (such as XAL); if you do
(Import) not set this parameter, you can only use the methods of the object
XMISESSION
VERSION Version of the CCMS system management interface that the external
product expects from the SAP system (such as 1.1); you can find this
version in the SAP interface documentation
EXTPRODUCT Name of the product that wants to log on to a CCMS system manage-
ment interface. This specification is useful for documentation purposes;
no authorization check or other program function is performed with this
specification
EXTCOMPANY Vendor of the product that wants to log on to a CCMS system manage-
ment interface
Parameters RETURN Structure BAPIRET2 with the return messages from the method call
(Export)
SESSIONID Unique ID for the new session with a CCMS system management inter-
face
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 18 of 76
XAL External Interface for Alert Management
Name BAPI_XMI_LOGON
RFC-Interface function BAPI_XMI_LOGON
importing
EXTCOMPANY like TXMILOGRAW_EXTCOMPANY type RFC_CHAR length 16
EXTPRODUCT like TXMILOGRAW_EXTPRODUCT type RFC_CHAR length 16
INTERFACE like TXMILOGRAW_INTERFACE type RFC_CHAR length 3
VERSION like TXMILOGRAW_VERSION type RFC_CHAR length 10
exporting
RETURN structure BAPIRET2 length 548 number of fields 14
SESSIONID like TXMILOGRAW_SESSIONID type RFC_CHAR length 24
tables
exceptions
ALREADY_LOGGED_ON
CANT_LOG_ACTION
INVALID_PARAMETERS
LOGON_DENIED
PROBLEM_DETECTED
UNKNOWN_INTERFACE
UNKNOWN_VERSION
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 19 of 76
XAL External Interface for Alert Management
Name BAPI_XMI_LOGOFF
Short Description Log off of an agent from the external XMI interface
Function Use this method to end a session with a CCMS system management interface or to log off from the
XMI interface completely.
Parameters INTERFACE ID of the CCMS system management interface from which you want to
(Import) log off; there are the following options:
• Parameter not set: complete log off, after which no XMI calls
are possible any longer (you must then close the RFC connec-
tion with the call rfcClose; the call SXMI_LOGON after this is
answered with a new SESSIONID)
Parameters RETURN Structure BAPIRET2 with the return messages from the method call
(Export)
importing
INTERFACE like TXMILOGRAW_INTERFACE type RFC_CHAR length 3
exporting
RETURN structure BAPIRET2 length 548 number of fields 14
tables
exceptions
CANT_LOG_ACTION
NOT_LOGGED_ON
PROBLEM_DETECTED
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 20 of 76
XAL External Interface for Alert Management
Function This method allows the confirmation of an alert by an external management tool (input in parameter
AID). If multiple alerts are to be confirmed, the optional table BAPIAID_TBL can be filled. In this case,
the parameter AID is ignored.
BAPIAID_TBL Table whose elements have the structure of the alert ID (structure
BAPIAID), extended by a return code (RC and RC_TEXT) (as of SAP
Basis 4.6C).
The columns RC (Return Code) and RC_TEXT return the success (RC =
0) or failure (RC > 0) of the action for each alert. All alerts are always
processed, even if an error occurs when confirming an alert. You can
determine the alert for which the confirmation failed from the columns
RC and RC_TEXT. The BAPI return value RETURN returns internal
error in this case. This means only that at least one confirmation failed,
and not that all confirmations failed.
Parameters RETURN Structure BAPIRET2 with the return messages from the method call
(Export)
Exceptions MSG_AID_MISSING
MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_INTERNAL_ERROR
MSG_AID_INVALID
MSG_TID_INVALID
MSG_CALL_INVALID
MSG_C_CALL_FAILED
MSG_COMMUNICATION_PROBLEM
MSG_DB_PROBLEM
MSG_UNKNOWN_PROBLEM
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 21 of 76
XAL External Interface for Alert Management
Name BAPI_SYSTEM_ALERT_ACKNOWLEDGE
RFC Interface function BAPI_SYSTEM_ALERT_ACKNOWLEDGE
importing
AID structure BAPIAID length 84 number of fields 7
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
exporting
RETURN structure BAPIRET2 length 548 number of fields 14
tables
BAPIAID_TBL structure BAPIAID_RC length 120 number of fields 9
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 22 of 76
XAL External Interface for Alert Management
Function For an alert specified with an alert ID (AID), this function returns all relevant alert properties, such as
the meaning of the alert or the MTE associated with the alert.
GET_HISTORY Indicator that, when set to the value “X”, ensures that the system
searches only the completed alerts for the desired alert (optional)
EXTERNAL_USER_NAME Name of the user in the external system that initiated the method call
PROPERTIES General properties of the alert, such as the timepoint of the last value
change (Structure BAPIALERT)
RETURN Structure BAPIRET2 with the return messages from the method call
Exceptions MSG_AID_MISSING
MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_INTERNAL_ERROR
MSG_AID_INVALID
MSG_C_CALL_FAILED
MSG_COMMUNICATION_PROBLEM
MSG_UNKNOWN_PROBLEM
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 23 of 76
XAL External Interface for Alert Management
Name BAPI_SYSTEM_ALERT_GETDETAILS
RFC Interface function BAPI_SYSTEM_ALERT_GETDETAILS
importing
AID structure BAPIAID length 84 number of fields 7
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
GET_ACTIVE like BAPIPARAMS-BOOL_PARA default 'X' type RFC_CHAR length 1
GET_HISTORY like BAPIPARAMS-BOOL_PARA default ' ' type RFC_CHAR length 1
exporting
PROPERTIES structure BAPIALERT length 212 number of fields 12
RETURN structure BAPIRET2 length 548 number of fields 14
TID structure BAPITID length 84 number of fields 7
TIME structure BAPIALDATE length 14 number of fields 2
VALUE structure BAPIALDATA length 8 number of fields 2
XMI_EXT_MSG structure BAPIXMIEXT length 255 number of fields 1
XMI_RAW_MSG structure BAPIXMIRAW length 690 number of fields 11
tables
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 24 of 76
XAL External Interface for Alert Management
Function This method returns all monitors of a monitor set specified by its name.
Parameters MONI_SET_NAME Name of the desired monitor set (optional; if no set is specified, the
(Import) monitor names of all monitor sets are returned)
EXTERNAL_USER_NAME Name of the user in the external system that initiated the method call
Parameters RETURN Structure BAPIRET2 with the return messages from the method call
(Export)
MONITOR_NAMES Table of entries of the structure BAPIMNNAME, in which the names of
the monitors for the specified monitor set MONI_SET_NAME are out-
put. This structure contains the components MONI_NAME (name of the
monitor) and MS_NAME (name of the monitor set). The name of a
monitor must be unique within a monitor set. The name of a monitor set
is globally unique.
Exceptions MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_NO_MONITOR_SETS_FOUND
MSG_UNKNOWN_PROBLEM
MSG_MONI_SET_NAME_MISSING
MSG_INVALID_MONI_SET_NAME
MSG_MONI_SET_IS_EMPTY
importing
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
MONI_SET_NAME structure BAPIMSNAME length 60 number of fields 1
exporting
RETURN structure BAPIRET2 length 548 number of fields 14
tables
MONITOR_NAMES structure BAPIMNNAME length 120 number of fields 2
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 25 of 76
XAL External Interface for Alert Management
Function This method returns the monitor template associated with the monitor.
You can create the complete monitoring tree using the monitor template
(for example, with SystemMonitorTree.CreateByTemplate).
Notes In addition to the virtual summary nodes, the monitor template contains the real top nodes of the (real)
subtrees that belong to the monitoring tree.
Parameters MONITOR_NAME Complete name of the monitor (Structure BAPIMNNAME). The structure
(Import) contains the components MONI_NAME (name of the monitor) and
MS_NAME (name of the monitor set). The name of a monitor must be
unique within a monitor set.
EXTERNAL_USER_NAME Name of the user in the external system that initiated the method call
Parameters RETURN Structure BAPIRET2 with the return messages from the method call
(Export)
TEMPLATE_NODES Table with the nodes of the monitor template (structure BAPITMPLND)
Exceptions MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_MONI_SET_NAME_MISSING
MSG_INVALID_MONI_SET_NAME
MSG_MONI_NAME_MISSING
MSG_INVALID_MONI_NAME
MSG_CANT_READ_MONISET_FROM_DB
MSG_UNKNOWN_PROBLEM
importing
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
MONITOR_NAME structure BAPIMNNAME length 120 number of fields 2
exporting
RETURN structure BAPIRET2 length 548 number of fields 14
tables
TEMPLATE_NODES structure BAPITMPLND length 232 number of fields 13
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 26 of 76
XAL External Interface for Alert Management
Function This method returns the complete monitoring tree of a monitor specified by its name. This monitoring
tree contains both the virtual node and all real nodes.
Parameters MONITOR_NAME Complete name of the monitor (structure BAPIMNNAME). The structure
(Import) contains the components MONI_NAME (name of the monitor) and
MS_NAME (name of the monitor set). The name of a monitor must be
unique within a monitor set.
EXTERNAL_USER_NAME Name of the user in the external system that initiated the method call
Parameters RETURN Structure BAPIRET2 with the return messages from the method call
(Export)
TREE_NODES Table with all node data of the monitoring tree (structure BAPITNDEXT)
Exceptions MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_MONI_SET_NAME_MISSING
MSG_INVALID_MONI_SET_NAME
MSG_MONI_NAME_MISSING
MSG_INVALID_MONI_NAME
MSG_CANT_READ_MONISET_FROM_DB
MSG_CANT_GET_MONI_PRESENTATION
MSG_UNKNOWN_PROBLEM
importing
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
MAX_TREE_DEPTH like BAPIPARAMS-MAXLEVEL default 0 type RFC_INT length 4
MONITOR_NAME structure BAPIMNNAME length 120 number of fields 2
VIS_ON_USR_LEVEL like BAPIPARAMS-VISUSRLEV default 3 type RFC_INT length 4
exporting
RETURN structure BAPIRET2 length 548 number of fields 14
tables
TREE_NODES structure BAPITNDEXT length 440 number of fields 40
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 27 of 76
XAL External Interface for Alert Management
Function This method returns the currently defined display properties for the monitor set specified by its name.
An external management tool can use these values to structure the display of a monitor set in the
same way as the view in SAP R/3.
Parameters PROPERTIES Structure BAPIMSPROP with the various (display) properties of the
(Export) monitor set
RETURN Structure BAPIRET2 with the return messages from the method call
Exceptions MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_MONI_SET_NAME_MISSING
MSG_INVALID_MONI_SET_NAME
MSG_CANT_GET_DISPLAY_CONFIG
MSG_UNKNOWN_PROBLEM
importing
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
MONI_SET_NAME structure BAPIMSNAME length 60 number of fields 1
exporting
PROPERTIES structure BAPIMSPROP length 136 number of fields 32
RETURN structure BAPIRET2 length 548 number of fields 14
tables
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 28 of 76
XAL External Interface for Alert Management
Function You can determine the names of all existing monitor sets using this method. Using these names, you
can then determine the names of the monitors that exist in each of the sets.
Parameters EXTERNAL_USER_NAME Name of the user in the external system that initiated the method call
(Import)
Parameters RETURN Structure BAPIRET2 with the return values from the method call
(Export)
MONITOR_SETS Table with the names of the existing monitor sets (Structure
BAPIMSNAME, that consists of only the component NAME)
Exceptions MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_NO_MONITOR_SETS_FOUND
MSG_UNKNOWN_PROBLEM
importing
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
exporting
RETURN structure BAPIRET2 length 552 number of fields 14
tables
MONITOR_SETS structure BAPIMSNAME length 60 number of fields 1
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 29 of 76
XAL External Interface for Alert Management
Function You can use this method to deactivate alert generation for the specified MTE.
You can use MonitorTreeElement.EnableAlertGeneration to activate alert generation again.
Parameters RETURN Structure BAPIRET2 with the return messages from the method call
(Export)
Exceptions MSG_TID_MISSING
MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_TID_INVALID
MSG_CALL_INVALID
MSG_C_CALL_FAILED
MSG_COMMUNICATION_PROBLEM
MSG_DB_PROBLEM
MSG_INTERNAL_ERROR
MSG_UNKNOWN_PROBLEM
importing
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
TID structure BAPITID length 84 number of fields 7
exporting
RETURN structure BAPIRET2 length 548 number of fields 14
tables
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 30 of 76
XAL External Interface for Alert Management
Function You can use this method to activate alert generation for the specified MTE.
You can use MonitorTreeElement.DisableAlertGeneration to deactivate alert generation again.
Parameters RETURN Structure BAPIRET2 with the return messages from the method call
(Export)
Exceptions MSG_TID_MISSING
MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_TID_INVALID
MSG_CALL_INVALID
MSG_C_CALL_FAILED
MSG_COMMUNICATION_PROBLEM
MSG_DB_PROBLEM
MSG_INTERNAL_ERROR
MSG_UNKNOWN_PROBLEM
importing
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
TID structure BAPITID length 84 number of fields 7
exporting
RETURN structure BAPIRET2 length 548 number of fields 14
tables
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 31 of 76
XAL External Interface for Alert Management
Function This method returns a table with the alert IDs for the monitoring tree element. You can then collect the
alert properties for an alert ID using the method SystemAlert.GetDetails.
Parameters ALERTS Table with the found alert IDs (structure BAPIAID) of the specified MTE
(Export)
RETURN Structure BAPIRET2 with the return messages from the method call
Exceptions MSG_TID_MISSING
MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_INTERNAL_ERROR
MSG_TID_INVALID
MSG_COMMUNICATION_PROBLEM
MSG_UNKNOWN_PROBLEM
importing
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
TID structure BAPITID length 84 number of fields 7
exporting
RETURN structure BAPIRET2 length 548 number of fields 14
tables
ALERTS structure BAPIAID length 84 number of fields 7
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 32 of 76
XAL External Interface for Alert Management
Function This function returns the general properties of an MTE. These general properties apply for all possible
types of MTE.
Notes The type-specific properties of an MTE can be collected using special methods. For example, Moni-
torTreeElement.GetPerfProperties returns the specific properties of a performance attribute.
Parameters GENERAL_INFO General specifications for the MTE, such as the name or the assigned
(Export) MTE class
GENERAL_VALUES Structure with the current general values of an MTE. This structure
consists of the following components:
LAST_VALUE_TIME Timepoint (date and time) of the last value change of the MTE
HIGHEST_ALERT Alert ID (structure BAPIAID) of the most important alert for the MTE in
the Open Alerts view
HIGHEST_ALERT_DATA Color and severity of the most important alert for the MTE in the Open
Alerts view
ACTUAL_ALERT Alert ID (structure BAPIAID) of the alert for the MTE in the Current
Status view
ACTUAL_ALERT_DATA Color and severity of the alert for the MTE in the Current Status view
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 33 of 76
XAL External Interface for Alert Management
Name BAPI_SYSTEM_MTE_GETGENPROP
COLLECTION_TOOL_DEF Information about the effectively assigned methods (data collection,
ONALERT_TOOL_DEF analysis, and auto.-reaction methods) of the MTE (structure
ANALYZE_TOOL_DEF BAPITLDEF) with the following components:
COLLECTION_TOOL_RUN Runtime information about the data collection and auto-reaction meth-
ONALERT_TOOL_RUN ods of the MTE (structure BAPITLRUN) with the following components:
PARENT_DATA Name of the MTE and the MTE class for the parent node
RETURN Structure BAPIRET2 with the return messages from the method call
Exceptions MSG_TID_MISSING
MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_INTERNAL_ERROR
MSG_TID_INVALID
MSG_COMMUNICATION_PROBLEM
MSG_UNKNOWN_PROBLEM
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 34 of 76
XAL External Interface for Alert Management
Name BAPI_SYSTEM_MTE_GETGENPROP
RFC Interface function BAPI_SYSTEM_MTE_GETGENPROP
importing
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
TID structure BAPITID length 84 number of fields 7
exporting
ACTUAL_ALERT structure BAPIAID length 84 number of fields 7
ACTUAL_ALERT_DATA structure BAPIALDATA length 8 number of fields 2
ANALYZE_TOOL_DEF structure BAPITLDEF length 92 number of fields 5
COLLECTION_TOOL_DEF structure BAPITLDEF length 92 number of fields 5
COLLECTION_TOOL_RUN structure BAPITLRUN length 100 number of fields 5
GENERAL_INFO structure BAPIMTEGEN length 128 number of fields 5
GENERAL_PROPERTIES structure BAPIMTEPRP length 80 number of fields 10
GENERAL_VALUES structure BAPIMTEVAL length 12 number of fields 3
HIGHEST_ALERT structure BAPIAID length 84 number of fields 7
HIGHEST_ALERT_DATA structure BAPIALDATA length 8 number of fields 2
LAST_VALUE_TIME structure BAPIALDATE length 14 number of fields 2
ONALERT_TOOL_DEF structure BAPITLDEF length 92 number of fields 5
ONALERT_TOOL_RUN structure BAPITLRUN length 100 number of fields 5
PARENT_DATA structure BAPIPARENT length 80 number of fields 2
PARENT_TID structure BAPITID length 84 number of fields 7
RETURN structure BAPIRET2 length 548 number of fields 14
tables
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 35 of 76
XAL External Interface for Alert Management
Function This method returns the current values of the log attribute.
RETURN Structure BAPIRET2 with the return messages from the method call
Exceptions MSG_TID_MISSING
MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_INTERNAL_ERROR
MSG_TID_INVALID
MSG_C_CALL_FAILED
MSG_COMMUNICATION_PROBLEM
MSG_DB_PROBLEM
MSG_UNKNOWN_PROBLEM
importing
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
TID structure BAPITID length 84 number of fields 7
exporting
CURRENT_VALUE structure BAPIMLCVAL length 96 number of fields 9
RETURN structure BAPIRET2 length 548 number of fields 14
XMI_MSG_EXT structure BAPIXMIEXT length 255 number of fields 1
XMI_MSG_RAW structure BAPIXMIRAW length 690 number of fields 11
tables
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 36 of 76
XAL External Interface for Alert Management
Function Using this method, you can collect the value history of a log attribute for any time frame.
Notes The value history of a log attribute essentially consists of a segment of the monitored log file. The val-
ues of a log attribute are therefore generally individual lines from a log file of this type.
CLIENT Client for which the value history is to be collected (this parameter is
optional; if it is not specified, value histories are returned for all clients)
USERID User for which the value history is to be collected (this parameter is
optional; if it is not specified, value histories are returned for all users)
EXTERNAL_USER_NAME Name of the user in the external system that initiated the method call
Parameters RETURN Structure BAPIRET2 with the return messages from the method call
(Export)
MSG_LINE_DATA Table with the current values for the individual lines of the value history,
such as the time of the occurrence of the messages, the important of the
associated alert, and the ID of the messages in the external storage
mechanism (structure BAPIMLCVAL)
XMI_MSG_RAW Table with the parameters of the XMI messages for the log attribute
(structure BAPIXMIRAW)
XMI_MSG_EXT Table with the resolved XMI messages (structure BAPIXMIEXT; the
structure contains only the component MSG) for the log attribute
Exceptions MSG_TID_MISSING
MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_INTERNAL_ERROR
MSG_TID_INVALID
MSG_C_CALL_FAILED
MSG_COMMUNICATION_PROBLEM
MSG_DB_PROBLEM
MSG_INVALID_TIME_RANGE
MSG_UNKNOWN_PROBLEM
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 37 of 76
XAL External Interface for Alert Management
Name BAPI_SYSTEM_MTE_GETMLHIS
RFC Interface function BAPI_SYSTEM_MTE_GETMLHIS
importing
CLIENT like BAPIPARAMS-MANDANT type RFC_CHAR length 3
END_TIMESTAMP like BAPIPARAMS-TIMESTAMP type RFC_BCD length 8 decimals 0
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
START_TIMESTAMP like BAPIPARAMS-TIMESTAMP type RFC_BCD length 8
decimals 0
TID structure BAPITID length 84 number of fields 7
USERID like BAPIPARAMS-USERID type RFC_CHAR length 12
exporting
RETURN structure BAPIRET2 length 548 number of fields 14
tables
MSG_LINE_DATA structure BAPIMLCVAL length 96 number of fields 9
XMI_MSG_EXT structure BAPIXMIEXT length 255 number of fields 1
XMI_MSG_RAW structure BAPIXMIRAW length 690 number of fields 11
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 38 of 76
XAL External Interface for Alert Management
Function You can use this method to collect the specific properties of a log attribute.
Parameters PROPERTIES Specific properties of a log attribute; the fields of this structure corre-
(Export) spond in their meaning to the input parameters RAISE_VALUE –
KEEP_LINE_MAX of the function module Set Specific Properties of a
Log Attribute (BAPI_SYSTEM_MTE_SETMLPROP) [Page 52]; in addi-
tion, the structure contains the field ATTRGROUP, which specifies the
assigned attribute group
RETURN Structure with the return messages from the method call
FILTER Table that describes the filter set for the log attribute (the individual en-
tries of the table have the structure BAPIMLFLT
Exceptions MSG_TID_MISSING
MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_TID_INVALID
MSG_C_CALL_FAILED
MSG_COMMUNICATION_PROBLEM
MSG_DB_PROBLEM
MSG_UNKNOWN_PROBLEM
importing
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
TID structure BAPITID length 84 number of fields 7
exporting
PROPERTIES structure BAPIMLPROP length 68 number of fields 8
RETURN structure BAPIRET2 length 548 number of fields 14
tables
FILTER structure BAPIMLFLT length 104 number of fields 7
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 39 of 76
XAL External Interface for Alert Management
Function This method returns the current values of the performance attribute.
Notes You can collect the value history using the method MonitorTreeEle-
ment.GetPerformanceAttrHistory.
Parameters CURRENT VALUE Current values of the performance attribute (structure BAPIPACVAL)
(Export)
RETURN Structure BAPIRET2 with the return messages from the method call
Exceptions MSG_TID_MISSING
MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_INTERNAL_ERROR
MSG_TID_INVALID
MSG_C_CALL_FAILED
MSG_COMMUNICATION_PROBLEM
MSG_DB_PROBLEM
MSG_UNKNOWN_PROBLEM
importing
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
TID structure BAPITID length 84 number of fields 7
exporting
CURRENT_VALUE structure BAPIPACVAL length 104 number of fields 20
RETURN structure BAPIRET2 length 548 number of fields 14
tables
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 40 of 76
XAL External Interface for Alert Management
Function This method returns the value history of the specified performance attribute. In this context, value his-
tory means the performance values that are stored in the performance database, collected and aver-
aged over a particular period of time.
Notes You can collect the current performance values using the method
MonitorTreeElement.GetPerformanceAttrCurrentValue.
REQUESTS Table of entries with the structure BAPIPAREQ; they contain information
about exactly which data is requested:
• Date range from which the values are requested from the data
history (FIRSTDAY, LASTDAY)
Parameters RETURN Structure BAPIRET2 with the return messages from the method call
(Export)
HISTORY_VALUES Table with entries with the structure BAPIPAHIS; they contains the fol-
lowing collected history data:
• Start and end date of the time period of the history data
(START_DATE, END_DATE)
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 41 of 76
XAL External Interface for Alert Management
Name BAPI_SYSTEM_MTE_GETPERFHIS
Exceptions MSG_TID_MISSING
MSG_EXT_USER_MISSING
MSG_REQUESTS_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_INTERNAL_ERROR
MSG_TID_INVALID
MSG_C_CALL_FAILED
MSG_COMMUNICATION_PROBLEM
MSG_DB_PROBLEM
MSG_INVALID_REC_TYPE
MSG_INVALID_DATA_RANGE
MSG_EMPTY_INPUT_DATE
MSG_NO_ACCESS_TO_ANOTHER_R3
MSG_REQUESTS_MISSING
MSG_UNKNOWN_PROBLEM
importing
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
TID structure BAPITID length 84 number of fields 7
exporting
RETURN structure BAPIRET2 length 548 number of fields 14
tables
HISTORY_VALUES structure BAPIPAHIS length 60 number of fields 9
REQUESTS structure BAPIPAREQ length 22 number of fields 3
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 42 of 76
XAL External Interface for Alert Management
RETURN Structure BAPIRET2 with the return messages from the method call
Exceptions MSG_TID_MISSING
MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_TID_INVALID
MSG_C_CALL_FAILED
MSG_COMMUNICATION_PROBLEM
MSG_DB_PROBLEM
MSG_UNKNOWN_PROBLEM
importing
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
TID structure BAPITID length 84 number of fields 7
exporting
PROPERTIES structure BAPIPAPROP length 124 number of fields 12
RETURN structure BAPIRET2 length 548 number of fields 14
tables
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 43 of 76
XAL External Interface for Alert Management
Function This method returns the specific Customizing properties of a status attribute.
RETURN Structure BAPIRET2 with the return messages from the method call
Exceptions MSG_TID_MISSING
MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_TID_INVALID
MSG_C_CALL_FAILED
MSG_COMMUNICATION_PROBLEM
MSG_DB_PROBLEM
MSG_UNKNOWN_PROBLEM
importing
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
TID structure BAPITID length 84 number of fields 7
exporting
PROPERTIES structure BAPISMPROP length 48 number of fields 3
RETURN structure BAPIRET2 length 548 number of fields 14
tables
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 44 of 76
XAL External Interface for Alert Management
Function This method returns the current value of the status attribute. This includes both the time of the mes-
sage and the (resolved and converted) XMI message.
Notes Unlike performance and log attributes, there is no value history for a status attribute, as a status attrib-
ute always contains only the current message.
RETURN Structure BAPIRET2 with the return messages from the method call
Exceptions MSG_TID_MISSING
MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_TID_INVALID
MSG_C_CALL_FAILED
MSG_COMMUNICATION_PROBLEM
MSG_DB_PROBLEM
MSG_UNKNOWN_PROBLEM
importing
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
TID structure BAPITID length 84 number of fields 7
exporting
RETURN structure BAPIRET2 length 548 number of fields 14
VALUE structure BAPISMCVAL length 276 number of fields 4
tables
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 45 of 76
XAL External Interface for Alert Management
Function This method returns the associated MTE ID (TID) for a specified complete name of a monitoring tree
element.
Notes The complete name of an MTE consists of the name of the system, the context, the monitoring object,
and the monitoring attribute. These four names characterize uniquely an MTE globally.
Any summary nodes and virtual nodes that exist are not displayed in the Alert Monitor in this complete
name of an MTE, but are simply indicated by “…”.
The short name of an MTE is the name of the MTE itself. You can determine this, for example by using
the method SystemMonitorTreeElement.GetGeneralProperties.
Parameters SYSTEM_ID Name of the system to which the MTE for which you are searching be-
(Import) longs
CONTEXT_NAME Name of the monitoring context to which the MTE for which you are
searching belongs
OBJECT_NAME Name of the monitoring object to which the MTE for which you are
searching belongs (optional)
MTE_NAME Name of the attribute to which the MTE for which you are searching
belongs (optional)
EXTERNAL_USER_NAME Name of the user in the external system that initiated the method call
Exceptions MSG_SERVICE_ID_MISSING
MSG_CONTEXT_NAME_MISSING
MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_SEGMENT_NOT_AVAILABLE
MSG_NAME_UNABLE_TO_EXPAND
MSG_NAME_NOT_FOUND
MSG_C_CALL_FAILED
MSG_COMMUNICATION_PROBLEM
MSG_UNKNOWN_PROBLEM
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 46 of 76
XAL External Interface for Alert Management
Name BAPI_SYSTEM_MTE_GETTIDBYNAME
RFC Interface function BAPI_SYSTEM_MTE_GETTIDBYNAME
importing
CONTEXT_NAME like BAPITID_MTMCNAME type RFC_CHAR length 40
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
MTE_NAME like BAPIMTEGEN-SHORTNAME type RFC_CHAR length 40 optional
OBJECT_NAME like BAPIMTEGEN-OBJECTNAME type RFC_CHAR length 40 optional
SYSTEM_ID like BAPITID-MTSYSID type RFC_CHAR length 8
exporting
RETURN structure BAPIRET2 length 548 number of fields 14
TID structure BAPITID length 84 number of fields 7
tables
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 47 of 76
XAL External Interface for Alert Management
Function This method returns the subtree that is spanned by the specified MTE.
Notes You can also define up to what maximum tree depth you want the subtree to be returned.
EXTERNAL_USER_NAME Name of the user in the external system that initiated the method call
Parameters RETURN Structure BAPIRET2 with the return messages from the method call
(Export)
TREE_NODES Table with node data of the monitoring tree (structure BAPITNDEXT)
Exceptions MSG_TID_MISSING
MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_INTERNAL_ERROR
MSG_TID_INVALID
MSG_C_CALL_FAILED
MSG_COMMUNICATION_PROBLEM
MSG_DB_PROBLEM
MSG_UNKNOWN_PROBLEM
importing
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
MAX_TREE_DEPTH like BAPIPARAMS-MAXLEVEL default 0 type RFC_INT length 4
TID structure BAPITID length 84 number of fields 7
VISIBLE_LEVEL like BAPIPARAMS-VISUSRLEV default 3 type RFC_INT length 4
exporting
RETURN structure BAPIRET2 length 548 number of fields 14
tables
TREE_NODES structure BAPITNDEXT length 440 number of fields 40
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 48 of 76
XAL External Interface for Alert Management
Function This method resets an MTE to the status directly after creation. This means, for example, that all active
alerts are lost (the alert history, on the other hand, is retained).
EXTERNAL_USER_NAME Name of the user in the external system that initiated the method call
Parameters RETURN Structure BAPIRET2 with the return messages from the method call
(Export)
Exceptions MSG_TID_MISSING
MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_TID_INVALID
MSG_C_CALL_FAILED
MSG_COMMUNICATION_PROBLEM
MSG_UNKNOWN_PROBLEM
importing
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
TID structure BAPITID length 84 number of fields 7
USER like BAPIPARAMS-USERNAME type RFC_CHAR length 16
exporting
RETURN structure BAPIRET2 length 548 number of fields 14
tables
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 49 of 76
XAL External Interface for Alert Management
Function You can use this method to set new values for the general properties of an MTE; with the exceptions of
TID and EXTERNAL_USER_NAME, all parameters are optional
TID_SPECIFIC Indicator that ensure, if it is set to the value “X”, that changes are made
only for the MTE itself. Otherwise, changes are made for the MTE class
to which the MTE belongs. By default, changes are made for the MTE
class. (See TID_SPECIFIC)
SEVERITY Severity of the alerts that are generated for this MTE; possible values
are between 0 (very low) and 255 (very high)
KEEP_ALERT_TYPE Method with which alerts are removed if the number of alerts exceeds
the maximum specified for a particular MTE, such as the newest or old-
est alerts. The possible methods are defined in RSALBAPI in the con-
stants AL_KEEP_*.
SEC_TILL_COLLECT Time in seconds that the system should wait between two calls of the
associated data collection method
SEC_TILL_INACTIVE Time in seconds after which the MTE should be set to inactive if no new
values are reported
SEC_TILL_WARMUP Length of the warm up phase for the MTE after the start of the monitor-
ing segment, during which no alerts are generated for this MTE
Parameters RETURN Structure BAPIRET2 with the return values from the method call
(Export)
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 50 of 76
XAL External Interface for Alert Management
Name BAPI_SYSTEM_MTE_SETGENPROP
Exceptions MSG_TID_MISSING
MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_AUTHORIZATION_MISSING
MSG_INTERNAL_ERROR
MSG_NO_OWNER_OF_VARIANT
MSG_CAN_NOT_CREATE_VARIANT
MSG_VARIANT_NOT_DEFINED
MSG_TID_INVALID
MSG_WRONG_SYSTEM
MSG_NO_GROUP_DATA_FOUND
MSG_NO_TID_SPECIFIC_DATA_FOUND
MSG_UNKNOWN_PROBLEM
importing
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
KEEP_ALERT_MAX like BAPIMTEPRP-KEEPALMAX type RFC_INT length 4 optional
KEEP_ALERT_TYPE like BAPIMTEPRP-KEEPALTYPE type RFC_INT length 4 optional
SEC_TILL_COLLECT like BAPIMTEPRP-SECTILCOLT type RFC_INT length 4
optional
SEC_TILL_INACTIVE like BAPIMTEPRP-SECTILINAC type RFC_INT length 4
optional
SEC_TILL_WARMUP like BAPIMTEPRP-SECWARMUPT type RFC_INT length 4 optional
SEVERITY like BAPIMTEPRP-SEVERITY type RFC_INT length 4 optional
TEXT_CLASS like BAPIMTEPRP-DTEXTCLASS type RFC_CHAR length 16 optional
TEXT_ID like BAPIMTEPRP-DTEXTID type RFC_CHAR length 30 optional
TID structure BAPITID length 84 number of fields 7
TID_SPECIFIC like BAPIPARAMS-BOOL_PARA default ' ' type RFC_CHAR length 1
VARIANT_NAME like BAPIVARINT-NAME type RFC_CHAR length 20 optional
VISIBLE_LEVEL like BAPIMTEPRP-VISILEVEL type RFC_INT length 4 optional
exporting
RETURN structure BAPIRET2 length 548 number of fields 14
tables
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 51 of 76
XAL External Interface for Alert Management
Function You can use this method to set the specific properties of a log attribute; with the exceptions of TID and
EXTERNAL_USER_NAME, all parameters are optional.
TID_SPECIFIC Indicator that ensures, when it is set to “X“, that changes are made only
for the MTE itself. Otherwise, changes are made for the MTE class to
which the MTE belongs. By default, changes are made for the MTE
class. (See TID_SPECIFIC)
RAISE_VALUE Color and severity above which an alert should be triggered for a mes-
RAISE_SEVERITY sage
ACTUAL_MSG_MODE Mode that specifies which message should be displayed in the Alert
Monitor for a log attribute; possible methods are defined in RSALBAPI
in the constants AL_TD_MSC_VAL_MODE_*. You can choose the
following settings for the display:
• Current message
ACTUAL_MSG_MAX_SEV With the setting highest value of the last xx minutes, specifies how long
the period is from which the message with the highest importance
should be displayed
KEEP_LINE_TYPE Specifies which messages should be stored for this MTE. You can
choose between the oldest or the newest messages (We recommend
the newest messages), where the total number is limited by
KEEP_LINES_MAX, or as many messages as possible, where
KEEP_LINES_MAX is only applied when the storage space in the moni-
toring segment is exhausted.
KEEP_LINE_MAX Maximum number of messages that are to be stored for this MTE (ap-
plies only for log attributes whose messages are stored by the monitor-
ing architecture).
FILTER Table that describes the filter set for the log attribute (the individual en-
tries of the table have the structure BAPIMLFLT)
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 52 of 76
XAL External Interface for Alert Management
Name BAPI_SYSTEM_MTE_SETMLPROP
Parameters RETURN Structure BAPIRET2 with the return values from the method call
(Export)
Exceptions MSG_TID_MISSING
MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_AUTHORIZATION_MISSING
MSG_INTERNAL_ERROR
MSG_NO_OWNER_OF_VARIANT
MSG_CAN_NOT_CREATE_VARIANT
MSG_VARIANT_NOT_DEFINED
MSG_TID_INVALID
MSG_WRONG_SYSTEM
MSG_NO_GROUP_DATA_FOUND
MSG_NO_TID_SPECIFIC_DATA_FOUND
MSG_UNKNOWN_PROBLEM
importing
ACTUAL_MSG_MAX_SEV like BAPIMLPROP-ACTMSGMAXS type RFC_INT length 4
optional
ACTUAL_MSG_MODE like BAPIMLPROP-ACTMSGMODE type RFC_INT length 4 optional
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
KEEP_LINE_MAX like BAPIMLPROP-KEEPLINMAX type RFC_INT length 4 optional
KEEP_LINE_TYPE like BAPIMLPROP-KEEPLINTYP type RFC_INT length 4 optional
MAX_ALERTS_PRO_ID like BAPIMLPROP-MAXALPROID type RFC_INT length 4
optional
RAISE_SEVERITY like BAPIMLPROP-RAISESEVER type RFC_INT length 4 optional
RAISE_VALUE like BAPIMLPROP-RAISEVALUE type RFC_INT length 4 optional
TID structure BAPITID length 84 number of fields 7
TID_SPECIFIC like BAPIPARAMS-BOOL_PARA default ' ' type RFC_CHAR length 1
VARIANT_NAME like BAPIVARINT-NAME type RFC_CHAR length 20 optional
exporting
RETURN structure BAPIRET2 length 548 number of fields 14
tables
FILTER structure BAPIMLFLT length 104 number of fields 7
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 53 of 76
XAL External Interface for Alert Management
Function You can use this method to set the specific properties of a performance attribute; with the exception of
TID and EXTERNAL_USER_NAME, all parameters are optional.
TID_SPECIFIC Indicator that ensures, when it is set to “X”, that the changes
are made only for the MTE itself. Otherwise, changes are
made for the MTE class to which the MTE belongs. By de-
fault, changes are made for the MTE class. (See
TID_SPECIFIC)
• Last message
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 54 of 76
XAL External Interface for Alert Management
Name BAPI_SYSTEM_MTE_SETPERFPROP
Parameters RETURN Structure BAPIRET2 with the return messages from the
(Export) method call
Exceptions MSG_TID_MISSING
MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_AUTHORIZATION_MISSING
MSG_INTERNAL_ERROR
MSG_NO_OWNER_OF_VARIANT
MSG_CAN_NOT_CREATE_VARIANT
MSG_VARIANT_NOT_DEFINED
MSG_TID_INVALID
MSG_WRONG_SYSTEM
MSG_NO_GROUP_DATA_FOUND
MSG_NO_TID_SPECIFIC_DATA_FOUND
MSG_UNKNOWN_PROBLEM
importing
DECIMALS like BAPIPAPROP-DECIMALS type RFC_INT length 4 optional
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
RELEVANT_VALUE like BAPIPAPROP-RELVALTYPE default AL_PERF_RV_LAST
type RFC_INT length 4
THRESHOLD_DIRECTION like BAPIPAPROP-THRESHDIR default AL_THRESHDIR_ABOVE
type RFC_INT length 4
THRESHOLD_GREEN_TO_YELLOW like BAPIPAPROP-TRESHG2Y type RFC_INT length 4
THRESHOLD_RED_TO_YELLOW like BAPIPAPROP-TRESHR2Y type RFC_INT length 4
THRESHOLD_YELLOW_TO_GREEN like BAPIPAPROP-TRESHY2G type RFC_INT length 4
THRESHOLD_YELLOW_TO_RED like BAPIPAPROP-TRESHY2R type RFC_INT length 4
TID structure ALGLOBTID length 84 number of fields 7
TID_SPECIFIC like BAPIPARAMS-BOOL_PARA default ' ' type RFC_CHAR length 1
VALUE_UNIT like BAPIPAPROP-VALUNIT type RFC_CHAR length 4 optional
VARIANT_NAME like BAPIVARINT-NAME type RFC_CHAR length 20 optional
XMI_MSG_CLASS like BAPIPAPROP-MSGCLASS default 'SAP_T100'
type RFC_CHAR length 16
XMI_MSG_ID like BAPIPAPROP-MSGID type RFC_CHAR length 30
exporting
RETURN structure BAPIRET2 length 548 number of fields 14
tables
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 55 of 76
XAL External Interface for Alert Management
Function You can use this method to set the specific properties of a status attribute; with the exceptions of TID
and EXTERNAL_USER_NAME, all parameters are optional.
TID_SPECIFIC Indicator that ensures, when it is set to “X”, that the changes are made
only for the MTE itself. Otherwise, the changes are made for the MTE
class to which the MTE belongs. By default, the changes are made for
the MTE class. (See TID_SPECIFIC)
ALERT_MODE Specifies when a message for the attribute should trigger an alert (the
options are defined in RSALBAPI in the constants
AL_SMSG_ALMODE_*):
• Never
ALERT_SHIFT Specifies whether and how the original color of the message should be
changed when being displayed in the Alert Monitor (the options are
defined in RSALBAPI in the constants AL_SMSG_ALSHIFT_*):
Parameters RETURN Structure BAPIRET2 with the return messages from the method call
(Export)
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 56 of 76
XAL External Interface for Alert Management
Name BAPI_SYSTEM_MTE_SETSMPROP
Exceptions MSG_TID_MISSING
MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_AUTHORIZATION_MISSING
MSG_INTERNAL_ERROR
MSG_NO_OWNER_OF_VARIANT
MSG_CAN_NOT_CREATE_VARIANT
MSG_VARIANT_NOT_DEFINED
MSG_TID_INVALID
MSG_WRONG_SYSTEM
MSG_NO_GROUP_DATA_FOUND
MSG_NO_TID_SPECIFIC_DATA_FOUND
MSG_UNKNOWN_PROBLEM
importing
ALERT_MODE like BAPISMPROP-ALERTMODE type RFC_INT length 4 optional
ALERT_SHIFT like BAPISMPROP-ALERTSHIFT type RFC_INT length 4 optional
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
TID structure BAPITID length 84 number of fields 7
TID_SPECIFIC like BAPIPARAMS-BOOL_PARA default ' ' type RFC_CHAR length 1
VARIANT_NAME like BAPIVARINT-NAME type RFC_CHAR length 20 optional
exporting
RETURN structure BAPIRET2 length 548 number of fields 14
tables
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 57 of 76
XAL External Interface for Alert Management
Function This method creates a complete monitoring tree from a monitor template.
Notes Unlike a monitor template, which contains only the virtual nodes and the top nodes of the real subtrees,
the monitoring tree consists of the virtual nodes and the MTEs of all fully resolved (real) subtrees.
Parameters EXTERNAL_USER_NAME Name of the user in the external system that initiated the method call
(Import)
MAX_TREE_DEPTH Desired tree depth (optional). A tree depth of one, for example, returns
only the nodes that are directly under the specified MTE. Their children
are not returned. By default, the maximum depth has the value 0, mean-
ing that the complete subtree is returned.
TEMPLATE_NODES Table with the nodes of the monitor template (structure BAPITMPLND)
Parameters RETURN Structure BAPIRET2 with the return messages from the method call
(Export)
TREE_NODES Table with all node data of the monitoring tree (structure BAPITNDEXT)
Exceptions MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_INTERNAL_ERROR
MSG_MONITOR_TEMPLATE_MISSING
MSG_CANT_GET_MONI_PRESENTATION
MSG_UNKNOWN_PROBLEM
importing
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
MAX_TREE_DEPTH like BAPIPARAMS-MAXLEVEL default 0 type RFC_INT length 4
VIS_ON_USR_LEVEL like BAPIPARAMS-VISUSRLEV default 3 type RFC_INT length 4
exporting
RETURN structure BAPIRET2 length 548 number of fields 14
tables
TEMPLATE_NODES structure BAPITMPLND length 232 number of fields 13
TREE_NODES structure BAPITNDEXT length 440 number of fields 40
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 58 of 76
XAL External Interface for Alert Management
Function You can use this method to collect all alert data for a specified monitoring tree. If only alert data from
particular subtrees is to be collected, you can optionally specify the top node of these subtrees.
Parameters GET_ALERT_HISTORY Indicator that ensures, if it is set to “X”, that the alerts that have already
(Import) been completed are also returned from the alert database (optional)
EXTERNAL_USER_NAME Name of the user in the external system that initiated the method call
START_TIMESTAMP Start timestamp of the time period for which the alert data is to be read
(optional, as of SAP Basis 4.6C)
END_TIMESTAMP End timestamp of the time period for which the alert data is to be read
(optional, as of SAP Basis 4.6C)
LAST_X_MINUTES Length of the time period in minutes for which the alerts are to be read
(optional, as of SAP Basis 4.6C)
ROOT_NODES Table with the top nodes of the subtrees for which the available alert
data is to be collected (optional); the individual elements contain the TID
of the top node (structure ALGLOBTID, corresponds to the structure
BAPITID)
TREE_NODES Table with all data for the MTEs of the monitoring tree for which alert
data is to be collected (structure BAPITNDEXT)
Parameters RETURN Structure BAPIRET2 with the return messages from the method call
(Export)
ALERT_DATA Table with all data for the collected alerts (structure BAPIALEXT)
Exceptions MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_INTERNAL_ERROR
MSG_MONI_PRESENTATION_MISSING
MSG_INVALID_MONI_TOP_NODE
MSG_CANT_GET_ALERT_DATA
MSG_INVALID_MONI_NODE_DETECTED
MSG_NO_ALERTS_FOUND
MSG_INVALID_TIME_RANGE
MSG_UNKNOWN_PROBLEM
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 59 of 76
XAL External Interface for Alert Management
Name BAPI_SYSTEM_MT_GETALERTDATA
RFC Interface function BAPI_SYSTEM_MT_GETALERTDATA
importing
END_TIMESTAMP structure ALTMSTPUTC length 8 number of fields 1 optional
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
GET_ALERT_HISTORY like BAPIPARAMS-BOOL_PARA default ' ' type RFC_CHAR
length 1
LAST_X_MINUTES structure INT4 length 4 number of fields 1 optional
START_TIMESTAMP structure ALTMSTPUTC length 8 number of fields 1 optional
exporting
RETURN structure BAPIRET2 length 548 number of fields 14
tables
ALERT_DATA structure BAPIALEXT length 1356 number of fields 46
ROOT_NODES structure ALGLOBTID length 84 number of fields 7 optional
TREE_NODES structure BAPITNDEXT length 440 number of fields 40
exceptions
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 60 of 76
XAL External Interface for Alert Management
5.31 Read Current Performance Values for All Specified Performance Attributes
(BAPI_SYSTEM_MT_GETPERFDATA)
Name BAPI_SYSTEM_MT_GETPERFDATA
Short Description Reads the current performance values of all specified performance attributes (as of SAP Basis 4.6C)
BAPI Method
Function This method returns the current values of all specified performance attributes.
Parameters EXTERNAL_USER_NAME Name of the user in the external system that initiated the method call
(Import)
PERF_NODES Table with the TIDs (structure BAPITD) of the desired performance at-
tributes
Parameters RETURN Structure BAPIRET2 with the return messages from the method call
(Export)
CURRENT_VALUES Table in which every entry contains the TID (structure BAPITD), the
current values of the performance attribute (structure BAPIPACVAL),
and a return code (RC)
Exceptions MSG_EXT_USER_MISSING
MSG_CANT_LOG
MSG_NOT_LOGGED_ON
MSG_INTERNAL_ERROR
MSG_C_CALL_FAILED
MSG_UNKNOWN_PROBLEM
importing
EXTERNAL_USER_NAME like BAPIXMLOGR-EXTUSER type RFC_CHAR length 16
exporting
RETURN structure BAPIRET2 length 548 number of fields 14
tables
CURRENT_VALUES structure BAPIPACVAX length 192 number of fields 28
PERF_NODES structure BAPITID length 84 number of fields 7
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 61 of 76
XAL External Interface for Alert Management
Name Description
ALUNIQNUM Unique Identifier (UID) of the alert, which always remains the same for an alert,
unlike the index (see below) (if, for example, a segment is restarted)
ALINDEX Index (number in the array in which the alerts are stored within the monitoring archi-
tecture)
Name Description
ID Message class of the message; the classes used for messages of the XMI interface
are RA and XM (see Error Messages of the Function Modules [page 71])
NUMBER Number of the message within the message class
LOG_MSG_NO Internal sequence number of the message within a log (the number sequence does
not necessarily specify the chronological sequence)
MESSAGE_V1 Up to four values that can be set in variables in a T100 message. The variables are
··· replaced in the order in which the variables appear in the message text
MESSAGE_V4
PARAMETER Name of the parameter in which the error message occurred
ROW Row number of the parameter in which the error message occurred
SYSTEM Name of the logical system in which the message was generated
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 62 of 76
XAL External Interface for Alert Management
Name Description
MTCLASS Type of the MTE (performance attribute, log attribute, text, and so on); the various
types are defined in RSALBAPI in the constants MT_CLASS_*
MTNUMRANGE Number range (for detailed information about the number range, see the document
“Creating a Data Supplier for the Alert Monitor” [DataSup])
MTUID Unique Identifier (UID) of the MTE, which always remains the same for an MTE,
unlike the index (see below) (if, for example, a segment is restarted)
MTINDEX Index (Number within the array for the general properties within the monitoring
segment)
EXTINDEX External index; this refers to the index number in the array in which the MTE also
appears. This means that, for example, a performance attribute has both general
properties and specific performance attribute properties.
Color Description
Yellow Warning
Green Everything OK
Gray Inactive or no current information available
Within the color of an alert, there is another categorization using the severity of the alert. The severity is a num-
ber between 0 and 255; the larger the number, the greater the severity. We use only the numbers up to 50. The
importance of the alert is calculated from the color and the severity of the alert (for example, an alert with the
color yellow and the severity 255 has a lower importance than an alert with the color red and the severity 0).
The monitor reports alerts in the monitoring tree upwards. This means that the color indicator for a node always
displays the highest alert in all elements of its branch. In the case of the same color, the alert with the larger
severity is reported upward in the monitoring tree.
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 63 of 76
XAL External Interface for Alert Management
Name Description
MANDT Name of the client in the SAP R/3 System in which the alert occurred
USERID Logon name of the user in the SAP R/3 System in which the alert occurred
ALSTATUS Status of an alert; the possible statuses are defined in RSALEXTI in the constants
AL_STAT_* . For an explanation of the alert status, see [MonSeg]
STATCHGDAT Date (STATCHGDAT), time (STATCHGTIM), and user (STATCHGUSR) of the last
STATCHGTIM status change of the alert
STATCHGUSR
MSCGLID ID of a message (only for log attributes); if a message of a log attribute triggers an
alert, its ID is written in this field to have the generating message available in the
alert
In the context of the XMI interface, you can use the log attributes to read any messages of the external product
into the monitoring architecture.
Name Description
MSCGLLID ID of a message (only for log attributes); if a message of a log attribute triggers an
alert, its ID is written to the field, so that the generating message is available in the
alert
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 64 of 76
XAL External Interface for Alert Management
Name Description
LINENUMBER Line number of a message in a log or trace external to the monitoring architecture.
This is used by the retrieval function to display the message in the Alert Monitor.
The retrieval function is provided for the Alert Monitor by the owner of the log or
trace.
FROMSGCLAS Using the fields FROMSGCLAS, FROMSGID, TOMSGCLAS, and TOMSGID, you
FROMSGID can define a range of messages to which you can assign a particular importance,
TOMSGCLAS irrespective of their original value. A message is characterized by its message class
TOMSGID (*MSGCLAS) and its message ID (*MSGID).
MSGVALUE Importance of the message by color (MSGVALUE) and severity (SEVERITY) that is
SEVERITY to be assigned to the messages of the range mentioned above
Name Description
ALRELEVVAL Measured value that is used for the comparison with the threshold values. This can
be the last measured value or an average value (see input parameter
RELEVANT_VALUE under Set Specific Properties of a Performance Attribute
(BAPI_SYSTEM_MTE_SETPERFPROP) [page 54]
ALRELVALDT Date(ALRELVALDT) and time (ALRELVALTI) of the measured value relevant for
ALRELVALTI alert generation
LASTALSTAT Most recent alert status of a monitoring attribute. The alert status can be green,
yellow, or red. The latter two statuses can involve an alert.
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 65 of 76
XAL External Interface for Alert Management
Name Description
AVG01PVAL Average performance value for the last minute, five minutes, and 15 minutes; this is
AVG05PVAL calculated from the total of the measured values for the corresponding time period
AVG15PVAL and the number of measurements
AVG01SVAL Total of the performance values of the last minute, five minutes, and 15 minutes
AVG05SVAL
AVG15SVAL
AVG01CVAL Number of measurements for a performance attribute during the last minute, five
AVG05CVAL minutes, and 15 minutes
AVG15CVAL
MAXPFVALUE Largest value that was measured for this performance attribute
MAXPFDATE Date (MAXPFDATE) and time (MAXPFTIME) at which the largest value was meas-
MAXPFTIME ured for this performance attribute
MINPFVALUE Analogous to the fields MAXPF* (see above), but for the smallest value
MINPFDATE
MINPFTIME
MTSYSID TID of the node; the individual components are described in ID of an MTE: TID
MTMCNAME (Structure BAPITID) [page 63]
MTNUMRANGE
MTUID
MTCLASS
MTINDEX
EXTINDEX
NAME Name of the node in the monitor that is associated with this definition
ND_INDEX Information about the position of the node within the monitor definition. The nodes
PAR_INDEX are indexed, and for quicker movement within the definition, the level of the node
ND_LEVEL within the definition (ND_LEVEL, the uppermost level is level 1) and of the node
index of the parent node (PAR_INDEX) are also specified, in addition to the node
index itself (ND_INDEX).
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 66 of 76
XAL External Interface for Alert Management
Name Description
MTSYSID TID of the node; the individual components are described in ID of an MTE: TID
MTMCNAME (Structure BAPITID) [page 63]
MTNUMRANGE
MTUID
MTCLASS
MTINDEX
EXTINDEX
ALTREENUM Information about the position of the node within the monitoring tree. The nodes are
ALIDXINTRE indexes and, for quicker movement within the monitoring tree, the level of the node
ALLEVINTRE within the tree (ALLEVINTRE, the uppermost level has the level 1) and of the node
ALPARINTRE index of the parent node (ALPARINTRE) are specified in addition to the node name
itself (ALIDXINTRE).
OBJECTNAME Name of the monitoring object to which this node belongs
DELIVERSTA Specifies the status of the data messages in the node (such as “No value yet re-
ported” or “Value is obsolete”) You can find the possible statuses in the include
RSALINTI in the constants MT_DLVSTAT_*.
HIGHALVAL Importance of the highest alert that is stored in this node (see also Importance of an
HIGHALSEV Alert (Structure BAPIALDATA) [page 63])
ALSYSID Components of the alert ID of the highest alert that is stored in this node; the indi-
MSEGNAME vidual components are described in Alert ID: AID (Structure BAPIAID) [page 62]
ALUNIQNUM
ALINDEX
ALERTDATE
ALERTTIME
DUMMYALIGN
LASTVALDAT Date (LASTVALDAT) and time (LASTVALTIM) of the last value change in this
LASTVALTIM node; the component LASTVALDUM has no meaning, it is used simply to adjust
LASTVALDUM the length of the structure
ACTUALVAL Importance of the last message in this node (see also Importance of an Alert (Struc-
ACTUALSEV ture BAPIALDATA) [page 63])
VALSYSID If the last message in this node generated an alert, these components contain the
VMSEGNAME associated alert ID; the individual components are described in Alert ID: AID (Struc-
VALUNIQNUM ture BAPIAID) [page 62]
VALINDEX
VALERTDATE
VALERTTIME
VALERTDUM
COUNTOFACT Number of active alerts in this node
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 67 of 76
XAL External Interface for Alert Management
Name Description
TDSTATUS Status of the node (for example, whether alert generation is activated or deacti-
vated, or whether alerts are suppressed during the warm-up phase, and so on); you
can find the possible statuses in the include RSALINTI in the constants
MT_DEFSTAT_*.
Name Description
RC Return value
ALSYSID Alert ID of the alert; the individual components are described in Alert ID: AID (Struc-
MSEGNAME ture BAPIAID) [page 62]
ALUNIQNUM
ALINDEX
ALERTDATE
ALERTTIME
DUMMYALIGN
MTSYSID TID of the node associated with this alert; the individual components are described
MTMCNAME in ID of an MTE: TID (Structure BAPITID) [page 63]
MTNUMRANGE
MTUID
MTCLASS
MTINDEX
EXTINDEX
VALUE Importance of the alert (see also Importance of an Alert (Structure BAPIALDATA)
SEVERITY [page 63])
FIELDNAME General properties of the alert. The individual components are described in General
STATUS Properties of an Alert (Structure BAPIALERT) [page 63], where three of the compo-
OBJECTNAME nents have different names as the components of the structure BAPIALERT with
MANDT the same meaning:
USERID
STATCHGDAT • BAPIALEXT-FIELDNAME corresponds to BAPIALERT-SHORTNAME
STATCHGTIM
STATCHGBY • BAPIALEXT-STATUS corresponds to BAPIALERT-ALSTATUS
TIMEOUTDAT
TIMEOUTTIM • BAPIALEXT-STATCHGBY corresponds to BAPIALERT-STATCHGUSR
REPORTEDBY
MSCGLID
GONEDATE Date and time at which the alert was completed, the component GONEDUMMY has
GONETIME no meaning; it used only to adjust the length of the structure
GONEDUMMY
STATCHGDUM Components with no meaning; they are used only to adjust the length of the struc-
TIMEOUTDUM ture
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 68 of 76
XAL External Interface for Alert Management
Name Description
MSGCLASS Company name of an external management tool (see also Log On to the XMI Inter-
face (BAPI_XMI_LOGON) [page 18])
MSGID Identification key for a message that was uploaded from an external product, and is
used by the XMI interface and associated system management interfaces
MSGARG1 Transfer parameters (...ARG1 - ...ARG4) and their types (...TYPE1 - ...TYPE4); the
ARGTYPE1 type of the transfer variable is usually C (Character). The variables are replaced in
MSGARG2 the sequence in which the variables appear in the message text
ARGTYPE2
MSGARG3
ARGTYPE3
MSGARG4
ARGTYPE4
MSGTEXT Message text
MSG Expanded message (including the resolved parameters) for external tools
Note that the owner of a specified variant corresponds to the company name that was used in the XMI logon
(see Log On to the XMI Interface (BAPI_XMI_LOGON) [page 18]). If you explicitly specify a variant, you must
have created this using transaction RZ21. If no variant is specified, the changes belong to the variant with the
company name from the XMI logon as its name. If no variant of this type exists, it is automatically created.
6.14 Time Basis of Records of the Data History RECTYPE (Data Element
ALPDBRTYP)
Data records of the performance database exist as different aggregates in various granularities, each with one
day as the basic time unit. This is specified by the field RECTYPE of the data element ALPDBRTYP.
A data record of the granularity hours in the aggregate weeks contains the total and number of
measured values for the 24 hours of the day, aggregated for a week:
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 69 of 76
XAL External Interface for Alert Management
Mo Tu We Th Fr Sa Su Mo - Su
00:00 – 01:00 = Σ(Mo–Su[00:00 – 01:00])
01:00 – 02:00
02:00 – 03:00
03:00 – 04:00
04:00 – 05:00
05:00 – 06:00
... ...
23:00 – 00:00
The following table shows the RECTYPE values for all combinations of aggregation and granularity:
Aggregate Granularity
Day I R D H
X Days E F X G
Weeks A B W C
Month J K M L
Quarter N O Q P
Year S T Y U
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 70 of 76
XAL External Interface for Alert Management
MSG_C_CALL_FAILED RA 336 The C function that was ultimately called could not be exe-
cuted.
MSG_CALL_INVALID RA 342 The underlying function call could not be performed (the func-
tion parameters may be incorrectly set).
MSG_MONI_SET_NAME_MISSING RA 351 The name of the monitor set was not specified.
MSG_CANT_READ_MONISET_FROM_DB RA 357 The required data could not be read from the database.
MSG_MONI_PRESENTATION_MISSING RA 593 The monitoring tree elements of the monitoring tree were not
specified.
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 71 of 76
XAL External Interface for Alert Management
MSG_REQUESTS_MISSING RA 377 The requests for history data were not defined.
MSG_INVALID_DATE_RANGE RA 379 An invalid time range was defined for history data.
MSG_NO_ACCESS_TO_ANOTHER_R3 RA 381 An error occurred while accessing another SAP R/3 System.
MSG_NO_OWNER_OF_VARIANT RA 407 The specified user is not the owner of the variant.
MSG_NO_GROUP_DATA_FOUND RA 409 No data available for the MTE class of the MTE.
MSG_AUTHORIZATION_MISSING RA 495 You are not authorized to use the specified function.
MSG_EXT_USER_MISSING XM 048 The name of the external user was not specified in the call.
This name specifies which user started the method call in the
external system.
MSG_CANT_LOG XM 031 The method call was terminated due to an error in the SAP
R/3 XMI logging system.
MSG_NOT_LOGGED_ON XM 028 The external system management tool did not log on to the
CCMS XMI interface. The method call was therefore termi-
nated.
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 72 of 76
XAL External Interface for Alert Management
8 Glossary
Alert A problem message in the CCMS Alert Monitor and monitoring architecture.
Alerts direct the system administrator’s attention to critical or potentially dan-
gerous situations in an SAP system. The CCMS Alert Monitor assess the val-
ues reported by the data suppliers and compares them to predefined alert
threshold values. If the incoming data violates a threshold value, the Alert
Monitor triggers an alert. The alert status of every MTE in a monitoring tree is
clearly displayed and highlighted in the appropriate color.
Alert Monitor Standard data consumer that displays the measured values and alerts for the
monitored monitoring objects and monitoring attributes in a hierarchical struc-
ture.
Analysis method Program or transaction that can be used interactively to gain information about
a system component that is displayed as an MTE in the CCMS monitoring ar-
chitecture.
Attribute group Grouping of MTEs and therefore analogous to an MTE class. However, the
MTE class contains the general properties of the associated MTEs, while the
attribute groups contains their specific properties.
Auto-reaction method Program or transaction that is called automatically by the CCMS monitoring
architecture as soon as an alert is triggered for an MTE to which the method is
assigned. For example, you can assign the auto-reaction method
CCMS_OnAlert_Email to the MTE classes that are most critical in your SAP
system. You are then informed by fax, e-mail, or pager if an alert occurs for
these MTE classes, even if you are not working with the Alert Monitor when the
alert occurs.
Color Categorization of alerts. A red alert indicates an error or a problem, while a
yellow alert means a warning. The alert status green means that everything is
running properly.
CCMS agent Independent process with an RFC-compatible interface to a central monitoring
system and an interface to the shared memory. The CCMS agent establishes a
connection in the CCMS monitoring architecture between the central monitor-
ing system and the host being monitored.
Data collection method Data supplier that is defined in the CCMS monitoring architecture. Data collec-
tion methods report data to monitoring tree elements. Since a data collection
method can be started by the monitoring architecture, it is a passive data sup-
plier.
Data Consumer Program that uses and displays the data from the monitoring architecture (such
as the CCMS monitors).
Data Supplier Program or transaction that collects information about the SAP system and its
environment and registers this information with the CCMS monitoring architec-
ture. There are two types of data supplier:
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 73 of 76
XAL External Interface for Alert Management
• Active data suppliers are run by a component inside or outside the SAP
system that wants to report data into the monitoring architecture.
• Passive data suppliers (or data collection methods) are run periodically by
the monitoring architecture to gather data.
Importance (of an alert) The importance of an alert is defined by its color and within the same color by
its severity. If there are multiple alerts within a subtree, the most important alert
is reported upwards.
Log attribute Monitoring attribute that is similar to a status attribute in that it contains mes-
sages with an alert value. A log attribute can contain multiple messages. It pro-
vides a means of instrumenting log files and trace files for inclusion in the
monitoring architecture.
Method Report, function module, SAP transaction or URL that should be executed by
the CCMS monitoring architecture if certain types of events occur. There are
three types of methods that can be assigned to an MTE:
Data collection methods, analysis methods, and auto-reaction methods.
Each of these attributes has specific properties, however alerts can be trig-
gered for all attributes (except text attributes).
Monitoring context Group of monitoring objects that are organized together under a heading in a
tree. Each independent tree represents a monitoring context within a monitor-
ing segment. The monitoring tree obtains its name from the root element of the
tree.
Monitoring object MTE that contains various monitoring attributes that belong to the same real
object (such as hard disks or components in the SAP system).
Monitoring segment (MS) “Container“ that holds all active components and data required in the monitor-
ing architecture. The monitoring segment is realized using two technical im-
plementations:
• Shared memory (memory-oriented file)
• Range of tables in the database
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 74 of 76
XAL External Interface for Alert Management
Monitoring tree Tree structure that displays the system components monitored by the monitor-
ing architecture. Depending on the definition, a monitoring tree can display all
or only a part of all of the available nodes (or MTEs).
Monitoring tree element (MTE) Nodes in the monitoring tree. There are three types:
• Monitoring attributes
• Monitoring objects
• Summary nodes
MTE class Grouping of MTEs. MTE classes contain information on general properties and
method assignments for monitoring objects and monitoring attributes.
Performance attribute Monitoring attribute that collects and averages performance values that have
been reported to the monitoring architecture. If these values violate the set
threshold values, an alert is triggered.
Properties variant Grouping of Customizing data that is then called in accordance with the system
requirements of the administrator. In this way you can, for example, assign a
properties variant to an operation mode so that you work with different Custom-
izing settings during the day and during the night.
Severity Categorization of alerts within the same alert color. The severity is a value
between 0 and 255, with 255 as the maximum severity. The monitoring archi-
tecture uses only severity from 0 to 50 so that users can ensure that alerts for
certain MTEs are always reported upwards by assigning higher severity to
these MTEs.
Status attribute Monitoring attribute in which an error message text and alert status can be
reported.
Text attribute Monitoring attribute that allows a data supplier to report technical information.
The text can be updated as required. However, no values can be reported and
no alerts van be triggered.
Threshold value Value used to trigger an alert when a value in a performance attribute exceeds
or falls below the threshold value.
Variant See Properties Variant
Virtual MTE MTE for visual structuring of monitors. No values can be reported for virtual
MTEs themselves, and they are not stored in the monitoring segment.
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 75 of 76
XAL External Interface for Alert Management
9 Additional Information
[AlMon] Online Documentation for the Alert Monitor
To display this documentation, call the SAP Library, and choose mySAP Technology Compo-
nents → SAP Web Application Server → Computing Center Management System (BC-CCM)
→ Monitoring in the CCMS → The Alert Monitor.
Start the SAP Service Marketplace, and go to the System Management and Alert Monitoring
area (http://service.sap.com/monitoring). Choose Monitoring in Details, and choose the Precon-
figured Monitors document from the list.
Start the SAP Service Marketplace, and go to the System Management and Alert Monitoring
area (http://service.sap.com/monitoring). Choose Monitoring in Details, and then choose the
document CCMS Agents: Features, Installation, and Usage from the list.
Start the SAP Service Marketplace, and go to the System Management and Alert Monitoring
area (http://service.sap.com/monitoring). Choose Developer´s Zone, and choose the document
How to Write a Data Supplier for the Alert Monitor from the list.
To display this documentation, call the SAP Library, and choose mySAP Technology Compo-
nents → SAP Web Application Server → ABAP Programming and Runtime Environment (BC-
ABA) → External Programming Interfaces → RFC Programming in ABAP.
SAP AG XAL External Interface for Alert Management November 12, 2002
Page 76 of 76