Fonction SAP BP_JOB_SELECT - Select Background Requests

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ADK_MODE BTCH0000-CHAR1 C 1 SPACE X Reference type CHAR1 for background processing
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)
SELECTION CHAR2 C 2 'AL' X Single-Character Flag

Paramètre Reférence Type Long. Description
JOBSEL_PARAM_OUT BTCSELECT u 236 Selection Parameters (Output)
LOCAL_CLIENT BTCH0000-CHAR1 C 1 Reference type CHAR1 for background processing
NR_OF_JOBS_FOUND I I 4

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ERROR_CODE I I 4 X Special Additional Error Code

Paramètre Reférence Long. Facultatif Description
JOBNAME_EXT_SEL NJRANGE 67 X Batch selection range for job name
JOBSELECT_JOBLIST TBTCJOB 668 Selected Jobs
USERNAME_EXT_SEL UNRANGE 27 X Batch selection range for user name

Exception Description
INVALID_DIALOG_TYPE 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)


INCLUDE BC_BP_JOB_SELECT OBJECT DOKU ID TX

Description
Returns the selection criteria used to generate a list of jobs.

Value range
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 selection criteria for a job are to be specifiedby the user, or provided directly to the function module when it iscalled.

Value range
The following values are permitted:

  • BTC_YES: The system displays a selection window. All values that are
  • provided when the function module is called are displayed on the screen.
    • BTC_NO: The job selection criteria are provided directly to the
    • function module when it is called.

      Description
      Use this structure to pass job selection parameters to the functionmodule. The selection criteria are the same as those available in thebackground job maintenance function (transaction SM37). For informationabout the selection criteria, see the online help for SM37.

      Value range
      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 table contains the TBTCJOB entries for the selection jobs.
      The jobs are displayed to the user in the foramt that is used in thejob overview of the maintenance function for background processing(transaction SM37).

835846BP_JOB_SELECT: Jobs are not selected correctly
1462586P25:MON:SDL: Dynpro send in Background in RSAP_IDOC_JOBS
1504366P25:Dump in module RSBATCH_INFORM_MANAGER: Job not found
1059852Workflow background jobs are scheduled several times
715355BP_JOB_SELECT: Optimizing the job selection
837691Background jobs are deleted in unintentionally
856093BP_JOB_SELECT: Job name parameter