Variants are client dependent.
VARIANT VALUES: The variant values are stored in a cluster table named VARI.
VARIANT DIRECTORY: The table VARID is a directory of variants present in system.
This table stores values such as : Variant Name , Report name for which variant is created , Information about when and by whom the variant was created ,version of variant , protected , transport and environment information.
- Protected: This tells whether the variant is protected or not.If a variant is a protected variant then it can be modified only by the user who has created it.
- Transport: This gives the information whether a variant can be transported to other systems or not.
- Environment: Gives information about the variants usage in foreground or only in background processing.
Program : RSVARENT can be used to unprotect variants. It takes report and variant name as input.
How to use table TVARVC for dynamic variants ?: The table TVARVC can be used for creating variants where input data needs to be changed frequently.
We have to first maintain high and low values for a field in the table TVARVC .Transaction STVARVC can be used to maintain these values in client 000. In other clients the table can de directly maintained in SM30.
This values can be then used in variants while saving the variant attributes.
To create dynamic value for any field, Click on Selection variable and then press F4.
The F4 for
the selection variable shows the following options.
T –
Table Variable for TVARVC
D –
Dynamic data calculation.When T is selected values will be fetched from TVARVC table. Press F4 on 'Name of Variable' for the field and select the desired entry.
When D is selected it corresponds to dynamic date calculations and hence is suitable for date fields.