Variant Definition File - USAP
Overview
Universal Connector for SAP variant definition files contain statements that specify the attributes of variants.
These variant definitions are used by the SUBMIT and MODIFY commands to define or modify variants in an SAP system.
This page provides a detailed description of the syntax options and requirements for variant definition files.
Variant Definition File Syntax
The USAP variant definition file is used to create or modify a variant in an SAP system. There are three types of statements used to define a variant:
- Variant Header Statement
- Variant Text Statement
- Variant Content Statement
A variant definition requires a Variant Header statement followed by Text and Content statements. Statements are made up of keyword = value assignments and are terminated with a semi-colon (;). Each statement type has a specific unique keyword that is required to start the keyword = value assignment list.
The following figure illustrates the syntax of a Universal Connector for SAP variant definition.
Variant Definition File Statement Keywords
The following tables list the keywords available for each statement, the maximum length of the associated values, whether or not they are required, and any restricted value sets. The first keyword in each table is the keyword required to start the corresponding statement.
Keywords for Variant Header Statement
The following table identifies the keywords for a Variant Header statement.
Keyword |
Length |
Required |
Restricted Values |
---|---|---|---|
VARIANT_NAME |
14 |
Yes |
Variant name. |
REPORT |
40 |
Yes |
ABAP report for which variant is defined. |
Keywords for Variant Text Statement
The following table identifies the keywords for a Variant Text statement.
Keyword |
Length |
Required |
Restricted Values |
---|---|---|---|
VARIANT_TEXT |
30 |
Yes |
|
LANGUAGE |
2 |
Yes |
|
Keywords for Variant Content Statement
The following table identifies the keywords for a Variant Content statement.
Keyword |
Length |
Required |
Restricted Values |
---|---|---|---|
SELNAME |
8 |
Yes |
|
KIND |
1 |
Yes |
Field type:
|
SIGN |
1 |
Yes |
Selection sign:
|
OPTION |
2 |
Yes |
Selection option:
|
LOW |
45 |
No |
Selection value. |
HIGH |
45 |
No |
Selection value. |
PROTECTED |
1 |
No |
|
APPENDAGE |
1 |
No |
|
VNAME |
30 |
No |
Name of variant variable. |
VTYPE |
1 |
No |
Variant variable type:
|
INVISIBLE |
1 |
No |
Hide field:
|
NOINT |
1 |
No |
Hide field 'BIS':
|
SCREENNR |
4 |
No |
Screen number. |
NO_IMPORT |
1 |
No |
Save field without values:
|
OBLI |
1 |
No |
Required field:
|
Sample Variant Definition File
The following figure illustrates a sample variant definition file.
This file will define variant SAMPLE_1 for ABAP report RSUSR002. The USER field will contain value S*.