Previous Topic: USESETDEFAULTS Statement—Specify Whether Request Set Defaults Take Precedence over Program DefaultsNext Topic: VERSION Statement—Specify the Operating System Version


VARIANT Statement—Specify Variant Name

The VARIANT statement specifies the name of the variant. It is mandatory if the ABAP program requires it.

Supported Job Types

This statement is optional for the following job types:

Syntax

This statement has the following format:

VARIANT variant
variant

Specifies the name of the variant. The value corresponds to the SAPGUI ABAP program Variant field on the Create Step dialog.

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

Notes:

Example: Specify the Variant Name

This example specifies the variant named TEST for the BTCTEST ABAP:

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