Automation Engine Script Guide > AE JCL for Applications > SAP > R3_GET_JOBLOG

R3_GET_JOBLOG

Retrieves the job log of an SAP job from SAP and writes it to the report.

Transaction: SM37

Interface: AE and Standard

Syntax

R3_GET_JOBLOG

Syntax

Description/Format

NAME= 

Name of the SAP job.
Format: script literal

JOBCOUNT= 

Number of the SAP job.
Format: script literal

In combination with NAME (SAP job name), you can clearly identify an individual SAP job.

BEG_LOGLINES= Determines the number of lines that should bepassed on to the AE job report (starting with the SAP job log's beginning).
END_LOGLINES=

Number of lines that should be written to the AE job report (starting with the SAP job log's ending).

By default, the complete job log is used if neither the parameter END_LOGLINES nor BEG_LOGLINES are specified. If only one of these two parameters is specified, the corresponding job-log lines (either from the beginning or the end) are read.
No job log is transferred if the value "0" is specified in both parameters.

Both parameters only accept numeric values.

Comments

This script element is used to determine the job log of an SAP job that has already run and was not started directly with AE. Therefore, you can access the job log of sub-jobs with IS-U or SARA. The job log is available in the "Report" tab of the AE job that uses the script element.

Only the job log of one individual SAP job can be read at a time. It is not possible to use wildcard characters.

Example

The following example retrieves the job log of the job "SWWERRE" and job number "23483501".

R3_GET_JOBLOG NAME='SWWERRE',JOBCOUNT=23483501

The following lines are written to the report:

Date        Time      MsgId/Nr  Message
11.12.2001  00:08:35  00 516    SJob started
11.12.2001  00:08:35  00 550    SStep 001 started (program RSWWERRE, variant, user name NI)
11.12.2001  00:08:35  WI 137    SS0 work items processed
11.12.2001  00:08:35  00 517    SJob finished

  

See also: