Fonction SAP BAPI_XBP_JOB_START_IMMEDIATELY - Start job immediately

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
TARGET_GROUP BPGRP0101-SRVGRP C 20 X Server Group Name Background Processing
TARGET_SERVER BAPIXMJOB-EXECSERVER C 20 Target Application Server for the Job

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548

Functionality
With this method, you execute a job in the R/3 background processingsystem. The method specifies that the job should be startedimmediately. If this is not possible (for example, if no backgroundwork processes are free at that time), the job is placed in a queue andis processed as soon as possible.
Alternative: Methode BackgroundJob.StartASAP. This method specifiesthat the job should be started immediately, however it also allows thejob to be started later if it cannot be started immediately.
Before you can use this method, you must define the job with themethods BackgroundJob.Open and BackgroundJob.AddABAPStep orBackgroundJob.AddExternalStep and BackgroundJob.Close.

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_NO_IMMEDIATE_START_POSS: The job could not be started as no workprocess for the background processing system was available to executethe job. All work processes were occupied, or there were no such workprocesses in the R/3 System or the target instance. The job was notreleased and is not executed.
MSG_NO_EXECUTE_PRIVILEGE: The R/3 user with whom the calling programhas logged onto the R/3 System does not have authorization to releasejobs. A job cannot be started until it is released.
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.


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

664858Batch job: Target server field populated unnecessarily