Tuesday, 13 September 2011

New Monitoring for Long-Running jobs - CCMS_LONGRUNNING_JOB_COLLECT

This is really interesting .. Because when my manager asked me to setup an alert for long running jobs i was just searching in RZ20 for monitors and i found this ..

By giving the monitor name in Service market place i found a wonderful note which clearly explains the Setup and Usage of this monitor ..

CCMS_LONGRUNNING_JOB_COLLECT
This is available in the following support packs and EHPs

SAP_BASIS 620 SAPKB62068
SAP_BASIS 640 SAPKB64026
SAP_BASIS 700 SAPKB70022

The data supplier uses method CCMS_LONGRUNNING_JOB_COLLECT which calls
function module SALK_REPORT_LONGRUNNING_JOBS. The method definition
defines the static parameters:
MAX_RUNTIME_IN_MIN 360
TRACE X
AUTO_COMPLETE_ALERTS
With MAX_RUNTIME_IN_MIN you can set the number of minutes a job is allowed
to run before an alert is generated for it. If AUTO_COMPLETE_ALERTS is
set, then the data supplier automatically completes alerts when the job for
which the alert was generated is completed. Such alerts remain visible in
the Alert History.

The data supplier adds the MTE (Monitoring Tree Element) 'Long-Running
Jobs' to the system-wide batch monitor, visible in RZ20, SAP CCMS Monitor
Templates -> Background Processing.

By default, the data supplier alerts for all jobs that exceed the time
limit. You can modify this behavior by adding entries to the table
ALLONGJOB_CTRL. In this table, you can either 1) restrict monitoring to a
positive list of jobs. Only these jobs will be monitored, if positive
customizing entries are added. Or 2) you can subtract jobs that belong to a
negative list of job names from the default 'monitor-all-jobs' behavior.

Note : source SAP NOTE 1138223

1 comment: