Fonction SAP BAPI_XBP_JOB_STATUS_CHECK - Reconcile job status according to DB with actual status

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
ACTUAL_STATUS BAPIXMJOB-STATUS C 1 Current Job Status
RETURN BAPIRET2 u 548
STATUS_ACCORDING_TO_DB BAPIXMJOB-STATUS C 1 Job Status According to Database

Functionality
Problems in the R/3 System (such as termination of work processes inthe background processing system or network or database problems) maylead to differences in the status that is saved in the database and theactual job status.
With this method you can determine the status of a job. With thedatabase status Ready or Active, the method checkswhether this status really actually applies. If there are anydifferences, the method updates the job status stored in the database.

Further information
XBP-Dokumentation (SAPnet/CCMS)

Description
This parameter contains the actual status of the job.
The job may have one of the following statuses:

  • 'R' Active, is being executed.

  • 'Y' Ready, the job has been released and the start requirements have
  • been met. The job is waiting for a free work process.
    • 'P' Scheduled but not yet released.

    • 'S' Released, waiting for the start requirements to be met. The job
    • can then be executed.
      • 'A' Terminated.

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

      • 'X' The status cannot be determined.
      • 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_NO_PRIVILEGE_GIVEN: The R/3 user with whom the calling programlogged onto the R/3 System does not have authorization to check orchange the status of the specified job. For information on thenecessary authorizations, see the SAP online help on backgroundprocessing.
        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 a job in the database.
        The following statuses are possible:

        • 'R' Active, the job is being executed.

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

          • 'S' Released, waiting for the start requirements to be met. The job
          • 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