Fonction SAP BAPI_XBP_JOB_COUNT - Count how many jobs there are with a particular name

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
EXTERNAL_USER_NAME BAPIXMLOGR-EXTUSER C 16 Name of the SAP-External User
JOBNAME BAPIXMJOB-JOBNAME C 32 Job Name

Paramètre Reférence Type Long. Description
NUMBER_OF_JOBS BAPIXMAUX-INT4 I 4 Job Count
RETURN BAPIRET2 u 548

Paramètre Reférence Long. Facultatif Description
JOB_TABLE BAPIXMJOB 388

Functionality
You use this method to determine the number of jobs that match a jobspecification. the method also returns the job definitions in tableform.
The method allows you to specify the job name generically. Example:AJOB*.

Further information
XBP documentation (SAPnet/CCMS)

Description
The number of jobs that have the specified name. The job name must notbe unique. The combination of job name and job number identifies thejob uniquely.

Description
INCLUDE BAPI_TABLE

Value range
MSG_JOBNAME_MISSING: You have not identified the job that is to beadded to the job step. The job name is missing.
MSG_NO_JOBS_FOUND: No jobs were found with the specified job name.
MSG_PROBLEM_DETECTED: The background processing system detected anerror. See the R/3 System log for an exact description of the problem.
MSG_CANT_LOG: The method call was terminated due to an error in the R/3System XMI logging system.
MSG_EXT_USER_MISSING: The external user name was not specified in thecall. This name specifies the user who transmitted the method call inthe external system.
MSG_NOT_LOGGED_ON: The external system administration tool has notlogged onto the CCMS XMI interface. As a result the method call wasterminated.

Default
INCLUDE BAPI_XBP_EXTERNAL_USER_NAME ID TX
INCLUDE BAPI_XBP_JOBNAME ID TX

Description
This table returns the jobs that were found.
INCLUDE BAPI_XBP_RESOURCE_INFO_TBL ID TX