Previous Topic: SUBMIT_MODIFIER Statement—Specify Additional Variables and FlagsNext Topic: TABLE_NAME Statement—Specify the Name of the Table to Monitor


SUCCESSMSG Statement—Specify Success Message for ABAP

The SUCCESSMSG statement specifies a string that indicates the success of the SAP step (ABAP). If the string matches the SAP ABAP output for the step, the step is considered successful.

Supported Job Type

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

Syntax

This statement has the following format:

SUCCESSMSG 'message'
message

Specifies a string that indicates the success of the step. If the string matches the SAP ABAP output for the step, the step is considered successfully completed even if the step fails on the SAP system.

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

Notes:

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

This example defines the success message, Program Selections. If the string is found in the ABAP spool output, the scheduling manager considers the BTCTEST ABAP as successful.

SAPJOBNAME SAPTEST
AGENT SAPHTAGENT
STARTMODE I
ABAPNAME BTCTEST
   STEPUSER user14
   VARIANT TEST
   SUCCESSMSG 'Program Selections'