Previous Topic: EXPIRATION Statement—Specify the Number of Days Before the Spool Request is DeletedNext Topic: FILENAME Statement—Specify File to Monitor


FAILUREMSG Statement—Specify Failure Message for ABAP

The FAILUREMSG statement specifies a string that indicates the failure of the SAP step (ABAP). If the string matches the SAP ABAP output for the step, the step is considered failed.

Supported Job Type

This statement is optional for the SAP R/3 job type.

Syntax

This statement has the following format:

FAILUREMSG 'message'
message

Specifies a string that indicates the failure of the step. If the string matches the SAP ABAP output for the step, the step is considered failed even if the step succeeds on the SAP system.

Limits: Up to 128 valid SAP characters; case-sensitive

Example: Use a Failure Message to Determine an ABAP's Failure

This example specifies the failure message, 'Internal problem'. If the string is found in the ABAP spool output, the scheduling manager treats the BTCTEST ABAP as failed.

SAPJOBNAME SAPTEST
AGENT SAPHTAGENT
SAPUSER J01PROD
ABAPNAME BTCTEST
   VARIANT TEST
   FAILUREMSG 'Internal problem'