Periodic Tasks

Use

We recommend a periodic cleanup of all processed messages to avoid a waste of disk and memory space.

The following periodic tasks are recommended for the Integration Engine and the Business Process Engine. They need to be performed at regular intervals. The frequency specified depends on the load in your system and therefore may vary.

Task

Recommended Frequency

Details

Archiving messages:

SAP_BC_XMB_ARCHIVE<client>

Once a day

This job moves messages to be archived to the archive and deletes archived messages from the database.

Schedule this job with transaction SXMB_ADM ( Schedule Archive Jobs ).

More information:

Alternatively, you can schedule job SAP_SOA_ARCHIVE_PLAN using transaction SM36.

Deletion of messages and message table:

SAP_BC_XMB_DELETE_<client>

Once a day

This job is used to delete individual messages. It can also be used to delete all messages from a table by deleting the whole table and creating it again. Individual messages that cannot be deleted are saved in a temporary table in the meantime.

Schedule this job with transaction SXMB_ADM ( Schedule Deletion Jobs ).

More information: Archiving and Deleting .

Alternatively, you can schedule job SAP_SOA_DELETE_MESSAGES or SAP_SOA_TABLE_SWITCH using transaction SM36.

Deletion of history data:

SAP_BC_XMB_HIST_DELETE_<client>

Once a week

This job is used to delete history data.

History data consists of a small amount of header information from deleted messages. It is stored in a separate table with a minimum retention period of seven days.

Schedule this job with transaction SXMB_ADM ( Schedule Deletion Jobs ).

More information: Archiving and Deleting .

Alternatively, you can schedule job SAP_SOA_DELETE_HISTORY using transaction SM36.

Cache update/refresh

 

With the release of change lists, a cache update job is automatically started in a background task.

Message queue processing

 

Is automatically started by the qRFC scheduler. Standard procedures regarding housekeeping of qRFC tables apply.

Monitoring error situations of processes:

SWWERRE

Every 3 minutes

This job is automatically scheduled by transaction SWF_XI_CUSTOMIZING.

It is important that this task is scheduled for the Business Process Engine (BPE). The frequency can be changed by using transaction SWWD.

Monitoring of deadlines for processes:

SWWDHEX

Every 3 minutes

This job is automatically scheduled by transaction SWF_XI_CUSTOMIZING.

It is important that this task is scheduled for the BPE. The frequency can be changed by using transaction SWWA.

Managing the correct processing of the event queue:

SWEQSRV

Every minute

This job is automatically scheduled by transaction SWF_XI_CUSTOMIZING.

This is an optional periodic task for the BPE. The frequency can be changed by using transaction SWEQADM.

Clean-up of workflow system:

SWWCLEAR

Every few minutes

This job is automatically scheduled by transaction SWF_XI_CUSTOMIZING.

It deletes the job logs for SWWDHEX and SWWERRE.

Processing of delayed messages:

SXMS_DELAYED_MSG_PROC<client>

Every 5 minutes

Schedule this job with transaction SXMSJOBS.

It tests (for a given client) the conditions for time and event-controlled processing of messages.

Check status of IDoc adapter:

SXMS_REFRESH_ADAPTER_STATUS

Between 1 hour and 1 day, depending on the intensity of the usage of the IDoc adapter

Use transaction SM36 to schedule this job on your Integration Server.

This job checks the status of messages that were sent to the IDoc adapter. Since the IDoc adapter does not send response messages, it is not automatically known whether a message was processed or not.

Performance monitoring, aggregation:

SAP_XMB_PERF_AGGREGATE

Every hour

Use transaction SM36 to schedule this job on your Integration Server.

It reads and aggregates auditing data and runtime data.

Performance monitoring, reorganization:

SAP_XMB_PERF_REORG

Every hour

Use transaction SM36 to schedule this job on your Integration Server.

It deletes aggregated runtime data after a time period specified with configuration parameter DAYS_TO_KEEP_DATA.

Schedule this job half an hour later than SAP_XMB_PERF_AGGREGATE.

Find and restart failed messages:

RSXMB_RESTART_MESSAGES

Every 5 minutes (10 times)

This program searches for failed (could not be processed correctly) or missing (were deleted manually from the queue) messages and tries to restart these messages automatically. The maximum number of restart attempts and the interval between these attempts is set with the qRFC scheduler. After the maximum number of restarts, the restart is canceled if it was not successful.

Background job for creating ccBPM packages and reconfiguration:

SWF_XI_DISPATCH

Every minute

This job is automatically scheduled by transaction SWF_XI_CUSTOMIZING. This is a prerequisite and requires periodic task for activating the ccBPM packaging functionality. It triggers background execution of RSWF_XI_DISPATCH report.

Reorganization of the ccBPM packaging data:

SWF_XI_REORG

Once a day

(when the ccBPM is overloaded, it happens usually at midnight)

This job removes the additional runtime and monitoring data, created during the message processing, when the ccBPM packaging functionality is activated. The job is automatically scheduled by transaction SWF_XI_CUSTOMIZING by default at midnight system time. It triggers background execution of RSWF_XI_REORG report.

For background jobs used to perform periodic tasks recommended for the Advanced Adapter Engine, refer to Background Processing.