In this topic, we described about the below sections -
Almost all the background jobs in the system are scheduled. All the scheduled jobs have some end date provided during the definition. These jobs won’t run after the job end date and occupies some space in the server as well. As part of clean-up process, the scheduled background jobs should be deleted from the SAP system once the job task is completed.
There are two ways of background jobs deletion –
- Single Job Deletion
- Multiple Job Deletion
Single Job Deletion -
SM37 transaction used to delete the single background job.
Step-1: Go to SM37.
Step-2: Enter the Job name and click on Execute button.
Step-3: Select the Job and click on Delete button.
Step-4: It opens dialog box for asking confirmation. Click on “yes” to continue with deletion.
Step-5: The job entry deleted from the job list.
Multiple Jobs Deletion -
RSBTCDEL2 (New version of RSBTCDEL) used to delete the multiple jobs. Old job logs will be deleted and will not show in the job overview.
Step-1: Go to SE38.
Step-2: Enter the program name RSBTCDEL2 and click on Execute.
Step-3: It navigates to the “delete of jobs”. Fill the below details and click on execute.
- Differentiation Specification of Jobs: Specify job name if only one. If want to delete multiple, enter * for all jobs. If want to delete jobs from a specific user, enter the username.
- Status, Classes, and Time Specification: First select the job status which should add to the deletion. If the status selected, modify the time period of Deletion based on the requirement.
It is impossible to delete the job which is in inactive status.
- Performance Optimization: Specify Commit value. Commit value is proportional to program performance. If the commit value is high then job deletion will run faster. Recommended value is >= 1000.
- Execution: It is recommended to use the Test run option to simulate the deletion. Jobs will not be deleted. Once the result looks okay, uncheck the test run and execute again.
Step-4: The result look shown like below.
Step-5: Go back to the “deletion of Jobs”.
Uncheck “test run” and execute to delete the jobs.
Step-6: It opens a dialog box for asking confirmation. Click on “yes” to continue with deletion.
Step-7: Once the job successfully deleted, it shows the message on the status bar.