Fonction SAP BAPI_XBP_JOB_ADD_ABAP_STEP - Add Job Step with ABAP Program to a Job

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
ABAP_PROGRAM_NAME BAPIXMREP-REPORTID C 40 ABAP Program Name
ABAP_VARIANT_NAME BAPIXMREP-VARIANTNAM C 14 SPACE X ABAP Variant Name
ALLARCPAR BAPIARCPAR u 328 SPACE X ImageLink structure
ALLPRIPAR BAPIPRIPAR u 176 SPACE X BAPI structure for transferring print parameters
ARCHIVE_PARAMETERS BAPIXMARCH u 23 SPACE X Archive Parameters
EXTERNAL_USER_NAME BAPIXMLOGR-EXTUSER C 16 Name of the SAP-External User
FREE_SELINFO RSDSRANGE_T_SSEL h 40 X Table Type of RSDS_RANGE_S
JOBCOUNT BAPIXMJOB-JOBCOUNT C 8 Job Count
JOBNAME BAPIXMJOB-JOBNAME C 32 Job Name
LANGUAGE BAPIXMSTEP-LANGUAGE C 1 SY-LANGU X Language for List Output
PRINT_PARAMETERS BAPIXMPRNT u 48 SPACE X Print parameters
SAP_USER_NAME BAPIXMSTEP-AUTHCKNAM C 12 SY-UNAME X SAP User Name for Authorization Check

Paramètre Reférence Type Long. Description
RETURN BAPIRET2 u 548
STEP_NUMBER BAPIXMJOB-STEPCOUNT I 4 Job Step Sequential ID Number

Paramètre Reférence Long. Facultatif Description
SELINFO RSPARAMS 102 X ABAP: General Structure for PARAMETERS and SELECT-OPTIONS

Functionality
This method deals with the second step of scheduling a job in the R/3background processing system. With this method you add a job step tothe job that you created with BackgroundJob.Open. This job stepinstructs the job to execute the external program.
Jobs can contain any number of jobs. It can also contain differenttypes of job steps (ABAP, external programs or commands). Here onlyABAP job steps are installed.
With the method call BackgroundJob.Close you finish defining the joband transfer it with the status Scheduled without start date tothe background processing system.
With the method call BackgroundJob.StartImmediately orBackgroundJob.StartAsSoonAsPossible, you instruct the system to executethe job.

Further information
XBP-Dokumentation (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_PROGRAM_NAME_MISSING: You have not specified the executing ABAPprogram.
MSG_INVALID_PRINT_PARAMS: The data in the PRINT_PARAMETERS structurewas invalid.
MSG_INVALID_ARCHIVE_PARAMS: The data in the ARCHIVE_PARAMETERSstructure was invalid.
MSG_NO_ARCHIVE_INFO: You have not transferred data for archiving(ARCHIVE_PARAMETERS parameter).
MSG_PROBLEM_DETECTED: The background processing system has detected anerror. You can find an exact 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 external user name was not specified in thecall. This name specifies the user in the external system who triggeredthe method call.
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_STEP_NUMBER ID TX
INCLUDE BAPI_XBP_ABAP_PROGRAM_NAME_A ID TX
INCLUDE BAPI_XBP_ABAP_VARIANT_NAME_A
INCLUDE BAPI_XBP_ARCHIVE_PARAMETERS ID TX
INCLUDE BAPI_XBP_EXTERNAL_USER_NAME ID TX
INCLUDE BAPI_XBP_JOBCOUNT ID TX
INCLUDE BAPI_XBP_JOBNAME ID TX
INCLUDE BAPI_XBP_LANGUAGE ID TX
INCLUDE BAPI_XBP_PRINT_PARAMETERS ID TX


INCLUDE BAPI_XBP_SAP_USER_NAME ID TX