SAP Function BAPI_XBP_JOB_JOBLOG_READ - Read Job Log for a Job

Parameter Reference Type Length Default Optional Text
DIRECTION BTCCHAR1 C 1 X Read Direction (B = From Beginning, E = From End)
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
LINES BTCINT4 I 4 X No. of Lines
PROT_NEW BTCH0000-CHAR1 C 1 X Reference type CHAR1 for background processing

Parameter Reference Type Length Text
RETURN BAPIRET2 u 548

Parameter Reference Length Optional Text
JOB_PROTOCOL BAPIXMPROT 572 X Job Log
JOB_PROTOCOL_NEW TBTC5 572 X Job Log Entries in List Format

Functionality
With this method, you can import a job log to display it to a user orto examine it for error messages.

Notes
You cannot read the log until all the jobs have been processed.

Further information
XBP docuemntation (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 have specified by job name andjob count does not exist in the R/3 System.
MSG_NO_PRIVILEGE_GIVEN: The R/3 user with whom the external system orthis program has logged onto the R/3 System does not have authorizationto read the specified job log. You can find information on theauthorization required in the R/3 online help on background processing.
MSG_NO_JOB_PROTOCOL: No log exists for the specified job. The job hasprobably not yet been executed. It is also possible that the job loghas been deleted from the operating system level.
MSG_NO_JOB_PROTOCOL_IS_EMPTY: The job log does not contain any entries.
MSG_PROBLEM_DETECTED: The background processing system has detected anerror. For a detailed description of the problem, see the R/3 Systemlog.
MSG_CANT_LOG: The method call was terminated due to an error in theR/3 System XMI logging system.
MSG_EXT_USER_MISSING:The external user name was not specified in thecall. This name specified which user in an external system 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_EXTERNAL_USER_NAME ID TX
INCLUDE BAPI_XBP_JOBCOUNT ID TX
INCLUDE BAPI_XBP_JOBNAME ID TX

Description
This table contains the messages that were collected in the job log.
INCLUDE BAPI_DATAELEMENT