Fonction SAP BAPI_XBP_JOB_SPOOLLST_READ_RW - Read ABAP Job Step Spool List (Raw Format)

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
STEP_NUMBER BAPIXMJOB-STEPCOUNT I 4 Step Number

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

Paramètre Reférence Long. Facultatif Description
SPOOL_LIST BAPIXMSPOO 255 Job Step Spool Request

Functionality
This method delivers the contents, in raw format, of the spool requestthat was created by a job step. The method delivers only spool requeststhat contain SAP R/3 list data.
BAPI_XBP_JOB_SPOOLLIST_READ delivers a spool list in ASCII format.

Further information
XBP documentation (SAPNet/CCMS)

Description
INCLUDE BAPI_TABLE

Value range
MSG_JOBID_MISSING: You have not identified the job that is to be addedto the job step. The job name, the job count, or both are missing.
MSG_JOB_DOES_NOT_EXIST: The job that you specified using the job nameand job count does not exist in the SAP R/3 System.
MSG_JOB_DOESNT_HAVE_STEPS: No job steps were defined for the specifiedjob. Without job steps, which specify the programs that are to be run,the system cannot create a spool request.
MSG_INVALID_STEP_COUNT: The job does not have a job step with thespecified job step.
MSG_STEP_COUNT_MISSING: You have not specified a step number. Thisspecification is required, as every ABAP job step can create a spoolrequest.
MSG_INVALID_SPOOLID: The spool request number that is assigned to thespecified job step is invalid. The system could not find acorresponding spool request. The spool request has possibly beendeleted.
MSG_NO_SPOOLLIST: The spool request that is assigned to the job stepdoes not contain any list data and the system therefore cannot displayit.
MSG_PROBLEM_DETECTED: Background processing detected an error. For adetailed description of the problem, see the SAP R/3 system log.
MSG_CANT_LOG: The method call was terminated due to an error in the SAPR/3 XMI logging system.
MSG_EXT_USER_MISSING: The name of the external user was not specifiedin the call. This This name specifies which user in the external systemtriggered the method call.
MSG_NO_PRIVILEGE_GIVEN: The SAP R/3 user with which the calling programlogged on to the SAP R/3 System, is not authorized to display the spoolrequest for the specified job step. For information about the requiredauthorizations, see the SAP online help.
MSG_NOT_LOGGED_ON: The external system administration tool is notlogged on to the CCMS XMI interface. The method call was thereforeterminated.


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

Description
This structure contains the lines of the spool request that was createdby the specified job step. Only spool requests that contain SAP R/3list data are returned.