Fonction SAP BAPI_XBP_JOB_STATUS_GET - Determine Status of a Job

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
JOBCOUNT BAPIXMJOB-JOBCOUNT C 8 Job Count
JOBNAME BAPIXMJOB-JOBNAME C 32 Job Name

Paramètre Reférence Type Long. Description
HAS_CHILD BTCH0000-CHAR1 C 1 Flag: Job Has Child Jobs
RETURN BAPIRET2 u 548
STATUS BAPIXMJOB-STATUS C 1

Functionality
Use this method to determine the status of a job in the R/3 backgroundprocessing system.

Further information
XBP documentation (SAPnet/CCMS)

Description
INCLUDE BAPI_TABLE

Value range
MSG_JOBID_MISSING: You have not identified the job to which the jobstep is to be added. Either the job name or the job count is missing,or both.
MSG_JOB_DOES_NOT_EXIST: The job that you specified by job name and jobcount does not exist in the R/3 System.
MSG_PROBLEM_DETECTED: The background processing system has detected anerror. You can find a detailed description of the problem in the R/3system log.
MSG_CANT_LOG: The method call was terminated due to an error in the R/3XMI logging system.
MSG_EXT_USER_MISSING: The name of the external user was not specifiedin the call. This name specifies the user who triggered the method callin the external system.
MSG_NOT_LOGGED_ON: The external system administration tool has notlogged onto the CCMS XMI interface. The method call was terminated as aresult.

Description
This parameter contains the status of the specified job. The followingstatuses are possible:

  • 'R' Active, is being executed.

  • 'Y' Ready, the job is released and meets the start requirements.
  • However the job is waiting for a free work process.
    • 'P' Scheduled but not yet released.

    • 'S' The job is released and is waiting to meet the start requirements.
    • It can then be executed.
      • 'A' Terminated.

      • 'F' Complete, all job steps were successfully executed.

      • INCLUDE BAPI_XBP_EXTERNAL_USER_NAME ID TX
        INCLUDE BAPI_XBP_JOBCOUNT ID TX
        INCLUDE BAPI_XBP_JOBNAME ID TX