Fonction SAP BP_JOB_SELECT_SM37B - Select Background Requests

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ENDDATE TBTCO-ENDDATE D 8 ' ' X
ENDTIME TBTCO-ENDTIME T 6 ' ' X
JOBSELECT_DIALOG BTCH0000-CHAR1 C 1 Dialog Box Yes(Y) / No(N)
JOBSEL_PARAM_IN BTCSELECT u 236 SPACE X Selection Parameters (Input)

Paramètre Reférence Type Long. Description
JOBSEL_PARAM_OUT BTCSELECT u 236 Selection Parameters (Output)

Paramètre Reférence Long. Facultatif Description
JOBSELECT_JOBLIST TBTCJOB 668 X Selected Jobs
JOBSELECT_JOBLIST_B TBTCJOB_BK 856 Selected Jobs with Program Name

Exception Description
INVALID_DIALOG_TYPE
JOBNAME_MISSING Job Name is Missing (Wildcards Allowed)
NO_JOBS_FOUND No Jobs Found That Match Selection Criteria
SELECTION_CANCELED User Cancels Selection
USERNAME_MISSING User Name Missing (Wildcards Allowed)

Functionality
You can use this function module to determine the jobs (records in theformat TBTCJOB) that correspond to the selection criteria that you havespecified.

Example
You can use BP_JOB_SELECT to determine jobs that you want to continueprocessing. You can, for example, select jobs that correspond to acertain naming convention, and check their status with the fieldTBTCJOB-STATUS.

Description
Returns the selection criteria used to generate a list of jobs.
If JOBSELECT_DIALOG is set to BTC_YES, then the structure reflects anychanges to the selection criteria made by the user.
These selection criteria can be used as input for theJOBLIST_REFR_PARAM parameter of the BP_JOBLIST_PROCESSOR functionmodule.

Description
Specify whether the criteria for selecting a job should be collectedfrom the user, or are only passed to the function module in the call.
Permissible values are as follows:
BTC_YES: A selection screen is presented to the user. Any valuessupplied in the call are filled in on the screen.
BTC_NO: Job selection criteria must be supplied in the call to thefunction module.

Description
Use this structure to pass job selection parameters to the functionmodule. The selection criteria are the same as those available in thebackground maintenance management function (Transaction SM37). You canfind information on the selection criteria in the online help inTransaction SM37.
If JOBSELECT_DIALOG is set to BTC_YES, then the values in the structureare filled in as default values on the selection screen that ispresented to the user.
Otherwise, the values in the structure are used directly to selectjobs.
Note: For performance reasons, you should always specify a user in theselection parameters. A generic value such as P* or the value * isacceptable if you wish to select jobs from more than one user.

Description
This structure contains the TBTCJOB entries of the jobs that wereselected.
The jobs are presented to the user in the format used in the joboverview of the background administration function (Transaction SM37).

Description
This structure contains the TBTCJOB entries of the jobs that wereselected.

835846BP_JOB_SELECT: Jobs are not selected correctly