Show TOC Start of Content Area

Function documentation Background Processing  Locate the document in its SAP Library structure

Use

Using this function, you can schedule jobs for various background processing:

      To archive messages processed successfully

      To delete messages that are not to be archived

      To restart messages with errors

      To reschedule lost messages

Prerequisites

You have started the message monitor on the initial screen of the PCK and are in Background Processing.

Features

Archiving

You require two archiving sessions to archive messages:

      One session to write the messages to the archive

      One session to delete the persisted messages that have been archived

To do this, you schedule an archiving job, which implicitly schedules the sessions to write to the archive and delete the archived messages.

You can define one or more rules for each archiving job; these rules contain the conditions that a message must meet in order to be archived by the job. At least one of the defined rules must be met for archiving to take place.

All information that is displayed for a message in message monitoring is archived, in addition to the audit log for each message.

Deleting

A standard delete job is created automatically. It runs once a day. You can schedule additional delete jobs; however, you cannot define rules for them.

Restarting

Instead of restarting messages with errors manually with message monitoring, you can schedule a job to automatically restart these messages. This is possible for all messages for which the number of defined restart attempts has been exceeded (messages with the system error status).

You can define one or more rules for each job to restart messages; these rules contain conditions that a message must meet in order to be restarted by the job. At least one of the defined rules must be met for restarting to take place.

Rescheduling

A standard job to reschedule messages is created automatically. The job runs once a day and ensures that messages lost as a result of database failure, for example, are rescheduled. You can schedule additional rescheduling jobs; however, you cannot define rules for them.

Activities

Scheduling Jobs

To schedule archiving jobs, make the following specifications:

Information in the Job List

Column

Description

Status

Status of the job. The following are possible statuses:

Red (This graphic is explained in the accompanying text): Job processing contained errors

Yellow (This graphic is explained in the accompanying text): Job processing partly successful

Green (This graphic is explained in the accompanying text): Job processing successful

Gray (This graphic is explained in the accompanying text): Job has not been run

Error statuses for red or yellow statuses are listed in the job log.

Job Name

Name of the job

Job Type

Type of job (archiving job or delete job)

Next Run

Date and time of the next scheduled execution of the job

You can either create a new job or select and edit an existing job. Enter the following:

Specifications for Configuring a Job

Column

Description

Active

Activates (or deactivates) the job

Job Name

Name of the job that you want to create or change

Job Type

Type of job (archiving job or delete job)

Start Date/Time

Date and time when the job is first to be started

Frequency

Frequency in days or hours with which the job is to be started

As soon as you have saved a new job, it appears in the list of existing jobs and can be changed or deleted. If the job already existed, it appears with the changed values after it is saved. The name of the person who last changed the job is displayed along with the date and time of the last change.

Note

You cannot delete the standard delete job; you can only deactivate it.

You can start a job at any time, irrespective of when the next execution is scheduled, by choosing Execute. The job log provides the following additional information relating to the execution of a job:

      Date and time of the last scheduled execution of the job

      Number of messages that were archived or deleted when the last job was run

      Total number of jobs run

      Total number of messages that were archived or deleted to date by a particular job

If you want to define rules for a job, select the respective job and choose Rules.

Defining Rules

There are three input fields that you use to formulate conditions in order to define a rule for archiving jobs.

Input Fields for Conditions

Entry

Description

Field

Field of the message header

<Operator>

Available operators are Equals and Contains

Value

Values that the content of the field must correspond to, or that the content of the field must contain

Once you have chosen Add to confirm your entries, the rule appears in the Current Rule field. You can now add additional conditions. All conditions of a rule must be met in order for messages to be selected based on this rule.

Once you have finished defining your rule, choose Save. The rule appears in the list of rules defined for this job. You can add additional rules or delete existing rules as you require.

If no rules are defined, the job archives all messages for which the persist duration has been exceeded.

 

 

End of Content Area