Fonction SAP BAPI_XBP_JOB_DEFINITION_GET - Read job definition

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
JOBLG_ATTR BAPIXMJOBLOG u 32 Job Log Attributes
JOB_HEAD BAPIXMJOB u 388 Job Header Data (Name, Class, and so on)
RECIPIENT BAPIXMRECIP u 249 Structure for Spool List Recipients
RETURN BAPIRET2 u 548

Paramètre Reférence Long. Facultatif Description
SPOOL_ATTR BAPIXMSPOOLID 348 X Parameters of a Spool Request
STEP_TBL BAPIXMSTEP 980 Job Step Values

Functionality
With this method you can read the definition of a background job. Youcan use this, for example, to implement a job display function.

Notes
You cannot use this method to change a job definition. The interfaceonly lets you change job step definitions and delete or cancel jobs.

Further information
XBP documentation (SAPnet/CCMS)
INCLUDE BAPI_XBP_JOB_HEAD ID TX

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 have specified by job name andjob count does not exist in the R/3 System.
MSG_JOB_DOESNT_HAVE_STEPS: No job step definitions were found for thejob. This exception may occur, for example, if a job definition hasbeen created (BAPI_XBP_JOB_OPEN and BAPI_XBP_JOB_CLOSE were executed),but no job steps have been created yet (BAPI_XBP_JOB_ADD_ABAP_STEP or_ADD_EXT_STEP).
MSG_PROBLEM_DETECTED: The background processing system detected anerror. For a detailed description of the problem, see the R/3 Systemlog.
MSG_CANT_LOG: The method call was terminated because of an error in theR/3 System XMI logging system.
MSG_EXT_USER_MISSING: The name of the external user was not specifiedin the call. This name specifies which user transmitted the call in anexternal system.
MSG_NOT_LOGGED_ON: The external system administration tool has notlogged onto the CCMS XMI interface. The method call was thereforeterminated.

Default
INCLUDE BAPI_XBP_EXTERNAL_USER_NAME ID TX
INCLUDE BAPI_XBP_JOBCOUNT ID TX
INCLUDE BAPI_XBP_JOBNAME ID TX
INCLUDE BAPI_XBP_STEP_TBL ID TX