Scheduling Delete Jobs Outside of Archive Administration

Use

To allow you more control over the delete phase of your archiving sessions, you can schedule delete programs outside of Archive Administration. This is useful if, for example, you do not want to schedule delete jobs using Archive Administration or you want to limit the number of delete jobs scheduled simultaneously.

There are two methods for automating the delete phase. You can directly schedule the delete program or you can schedule the RSARCHD program that in turn schedules the delete program.

  • Delete jobs are only scheduled for those sessions that have the status Incomplete in archive management.
  • Sessions To Be Archived those marked as Invalid are not processed

Figure 1: Direct Scheduling Versus Indirect Scheduling Using RSARCHD

Prerequisites

If you want to directly schedule the delete program, you have determined the name of the delete program for the relevant archiving object using transaction AOBJ.

Procedure

Directly Scheduling Delete Jobs

  1. To schedule the jobs, use the SAP job scheduler (transaction SM36) or an external job scheduler.

The delete program is executed for the archive file with the lowest key that has the status Write Completed from the archiving session with the lowest number.

  1. To automate this process, schedule the program to run periodically.

Indirectly Scheduling Delete Jobs (RSARCHD Program)

The delete program is executed for one or more archive files with the lowest keys that have the status Write Completed from the archiving sessions with the lowest numbers.

To schedule the RSARCHD program, use the SAP job scheduler (transaction SM36) or an external job scheduler.

See Also

Program documentation for RSARCHD