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:
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:
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.
No comments:
Post a Comment