R3_GET_JOBLOG

Use R3_GET_JOBLOG to retrieve the job log of an SAP job that has already run in SAP, and write it to the report. This script element addresses SAP jobs that were not started through the AE. Therefore, you can access the job log of sub-jobs with IS-U or SARA. The job log is available in the report of the AE job that uses the script element.

Important! You can read the job log of one individual SAP job at a time. Wildcard characters are not allowed.

Transaction: SM37
Interface: AE and Standard

Syntax

R3_GET_JOBLOG

    NAME=...
    ,JOBCOUNT=...
    [,BEG_LOGLINES=...]
    [,END_LOGLINES=...]

Parameters

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

  • NAME=
    Name of the SAP job
    Format: script literal

  • JOBCOUNT=
    Number of the SAP job. Use it together with the NAME= parameter to clearly identify an individual SAP job.
    Format: script literal

  • BEG_LOGLINES=
    (Optional) Determines the number of lines that should be added to the AE job report starting from the beginning of the SAP job log

  • END_LOGLINES=
    (Optional) Determines the number of lines that should be added to the AE job report starting from the end of the SAP job log
    Default value: The complete job log is used if neither END_LOGLINES nor BEG_LOGLINES are defined. If you define only one of these two parameters, the corresponding lines of the job log are read either from the beginning, or the end. No job log is added if you define the value 0 in both parameters.
    Allowed values: numbers

Example

The following example retrieves the job log of the job "SWWERRE" with the 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: