SAP R/3 Jobs abend in TWS, but are successful on R/3 system

Technote (troubleshooting)


Problem(Abstract)

A successfully run SAP R/3 job appears as ABEND on the Tivoli Workload Scheduler (TWS) for Applications side.

Symptom

An SAP R/3 job shows as ABEND in TWS for Applications, but shows successful on the SAP R/3 side.


Cause

TWS for Applications for SAP Extended Agent (XA) attempts to retrieve the SAP joblog and SPOOLLIST and append it to the TWS joblog.

If the joblog/SPOOLLIST is too large, the extended agent may be unable to retrieve it and will report an error and the job in TWS for Applications will show ABEND. Usually it is the SPOOLLIST that has the potential to cause an issue by being too large.


Diagnosing the problem

The job log shows:


EEWO1027I The RFC connection is established: (1)
EEWO0109E An internal error has occurred. The following RFC function: BAPI_XBP_JOB_SPOOLLIST_READ_20 failed after the following number of attempts: 5.
EEWO0920W An internal error has occurred. The spoollist of the following job cannot be read: Job name: !1 Job ID: !2.
EEWO0103E R3batch has run out of memory (the function RfcAllocParamSpace has failed in the following module: bdc_scan).
EEWO0122E An internal error has occurred. R3batch could not scan the R/3 joblog for BDCWAIT messages.
EEWO0103E R3batch has run out of memory (the function RfcAllocParamSpace has failed in the following module: bapi_logoff).
EEWO1014I The job was aborted: Exit Status : 1


Resolving the problem

It is possible to turn off these retrievals.


Retrieval of joblogs of SAP jobs

Once a SAP job has been run successfully, its joblog is retrieved by r3batch and appended to the Tivoli Workload Scheduler joblog.

For jobs with large joblogs, this can take a significant amount of time. To control the retrieval of the joblog the RETRIEVE_JOBLOG option is available as follows:

  • At a global level in the r3batch.opts global options file.
  • At a local level in the workstation_r3batch.opts local options file.
  • At a job level.

If this option is not specified, the joblog is added to the stdlist.

This section describes how to enable or disable the retrieval of the joblog at the respective levels:
  • Global level:
    To retrieve the SAP joblogs in the stdlist, specify the following option in the r3batch.opts global options file:
      RETRIEVE_JOBLOG
      • Indicates whether to enable or disable the retrieval of the joblog.
      • Possible values are ON or OFF.
      • The default value is ON.
  • Local level:
    To retrieve the SAP joblogs in the stdlist, specify the following option in the workstation_r3batch.opts local options file:
      RETRIEVE_JOBLOG
      • Indicates whether to enable or disable the retrieval of the joblog.
      • Possible values are ON or OFF.
      • The default value is ON.
  • Job level:
    At the job level, use the COMPOSER command line, the Job Scheduling Console (JSC) version 8.4, or the Tivoli Dynamic Workload Console (TDWC) as follows::
      Specify the following options in the Tivoli Workload Scheduler job definition:
        -flag ENABLE_JOBLOG
          To enable the retrieval of SAP joblogs
        -flag DISABLE_JOBLOG
          To disable the retrieval of SAP joblogs
      NOTE: If you disable the retrieval of SAP joblogs you also disable the return code mapping for the joblog entries.
      Also, see Technote # 1208067 in the "Related information" section below for more information about the retrieval of SAP joblogs.

    Related information

    TWS for Applications for SAP joblog retrieval (large fi

    Historical Number

    1249816

    Product Alias/Synonym

    Maestro
    TWS4APPS
    ITWS
    TWS

    Rate this page:

    (0 users)Average rating

    Document information


    More support for:

    Tivoli Workload Scheduler for Applications
    XA for SAP

    Software version:

    8.4, 8.5, 8.6

    Operating system(s):

    AIX, HP Itanium, HP-UX, Linux, Solaris, Windows

    Reference #:

    1389958

    Modified date:

    2013-02-19

    Translate my page

    Machine Translation

    Content navigation