R3_GET_JOBLOG
Use the R3_GET_JOBLOG script element to retrieve the job log of an SAP job that has already run in SAP and write it to the activation report. This script element is intended for SAP jobs that were not started through AE, allowing you to access the job log of sub-jobs using 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 SAP job at a time. Wildcard characters are not supported.
Transaction: SM37
Interface: AE and Standard
Syntax
R3_GET_JOBLOG NAME=...,JOBCOUNT=...[,BEG_LOGLINES=...][,END_LOGLINES=...]
Parameters
| Parameter | Description | Format |
|---|---|---|
| NAME= | Name of the SAP job | Script literal |
| JOBCOUNT= | Number of the SAP job. Use together with NAME= to uniquely identify a specific SAP job. | Script literal |
| BEG_LOGLINES=
(Optional) |
Number of lines to transfer from the beginning of the SAP job log to the AE job report. Note: If neither BEG_LOGLINES= nor END_LOGLINES= is specified, the complete job log is transferred. If only one is specified, that value is applied. Specifying 0 for both parameters transfers no job log. |
Number |
| END_LOGLINES=
(Optional) |
Number of lines to transfer from the end of the SAP job log to the AE job report. Note: If neither BEG_LOGLINES= nor END_LOGLINES= is specified, the complete job log is transferred. If only one is specified, that value is applied. Specifying 0 for both parameters transfers no job log. |
Number |
Examples
The following example retrieves the job log of the SAP job SWWERRE with 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 Job started
11.12.2001 00:08:35 00 550 Step 001 started (program RSWWERRE, variant, user name NI)
11.12.2001 00:08:35 WI 137 0 work items processed
11.12.2001 00:08:35 00 517 Job finished
See also: