Managing "Easy-Method" Jobs with BP_JOBVARIANT_OVERVIEW

Locate the document in its SAP Library structure

With BP_JOBVARIANT_OVERVIEW, you can offer your users a simplified display and management function for their "express-method" jobs.

The function module does the following:

  • displays the job title, report name and variant, start time specification, status, and scheduling user of each selected "express" job
  • allows users to change the start specification and restart period of jobs that have not yet been run
  • allows a user to display the job log and spool output of completed jobs
  • allows users to delete jobs that are not currently executing.

Example

You could use the following code to let users check on jobs that they have scheduled with the sample code shown in Easy Job Scheduling Using BP_JOBVARIANT_SCHEDULE:

call function 'BP_JOBVARIANT_SCHEDULE' " Schedule jobs;
" counterpart to
exporting " BP_JOBVARIANT_OVERVIEW
title_name = 'Documentation Check' " Displayed as title of
" of scheduling screens
job_name = 'DocuCheck' " Name of background
" processing job
prog_name = 'RSTWGZS2' " Name of ABAP
" report that is to be
" run -- used also to
" select variants
exceptions
no_such_report = 01. " PROG_NAME program
" not found.

call function 'BP_JOBVARIANT_OVERVIEW'
exporting
title_name = 'Documentation Check'
" Displayed as title
" of overview screen
job_name = 'DokuCheck' " Jobs with this name
" are listed
prog_name = 'RSTWGZS2'
exceptions
no_such_job = 01.

The user is presented with the following screen:

This graphic is explained in the accompanying text

From this screen, your users can do the following, subject to background processing authorizations:

  • delete or change the start time of jobs that have not yet started
  • display the job logs and spool output generated by jobs that have been completed.
End of Content Area

No comments:

topics