Entering content frame

Overview documentation Managing Jobs:  Generating Job Lists Locate the document in its SAP Library structure

With function module BP_JOB_MAINTENANCE (transaction SM37), you can call the full job maintenance system of the background processing system, starting with the job selection screen.

Since many users are not familiar with job maintenance and have no desire to search for their jobs, you can use the function modules BP_JOB_SELECT and BP_JOBLIST_PROCESSOR to select and display a list of jobs for the users of your program.

Use BP_JOB_SELECT to generate an internal table of jobs.  Then, with BP_JOBLIST_PROCESSOR, you can display the selected jobs in the list format used by the job maintenance system. 

You can also use BP_FIND_JOBS_WITH_PROGRAM to select jobs that run a particular program.  Use this function module with BP_JOBLIST_PROCESSOR to display a job list to your users.  Like BP_JOBLIST_SELECT; BP_FIND_JOBS_WITH_PROGRAM offers interactive and silent modes. 

For an example that uses BP_FIND_JOBS_WITH_PROGRAM, please see Displaying Job Status:  SHOW_JOBSTATE.

You can display a job list in three modes:

·        Display mode:  The user can view job attributes and such job products as spool requests and job logs.  He or she cannot, however, change jobs or perform such operations as releasing a job to run.

·        Edit mode:  The user can perform all maintenance operations for which he or she is authorized.

·        Select mode:  The user is requested to select a job from the list. When the selection is made, the list is closed and the TBTCJOB structure of the selected job is returned to your program.

Authorizations

The authorization tests for background processing are in effect for processing of job lists.  These authorizations are described in the Users, Authorizations, and System Security guide  and in Basis Customizing.

Sample Program:  Generating a Job List

 

 

Leaving content frame