VARI SAP (ABAP/4: Variant storage (similar to INDX)) Table details
Dictionary Type: Table
Description: ABAP/4: Variant storage (similar to INDX)
Description: ABAP/4: Variant storage (similar to INDX)
Table field list including key, data, relationships and ABAP select examples
VARI is a standard SAP Table which is used to store ABAP/4: Variant storage (similar to INDX) data and is available within R/3 SAP systems depending on the version and release level.
The VARI table consists of various fields, each holding specific information or linking keys about ABAP/4: Variant storage (similar to INDX) data available in SAP. These include RELID (Relation ID), REPORT (ABAP: Program Name in Variant Key), VARIANT (ABAP: Name of variant (without program name)), SRTF2 (Next record counter in EXPORT/IMPORT data tables).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .
Delivery Class: W - System table, contents transportable via separate TR objectsDisplay/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified
SAP VARI table fields - Full list of fields found in SAP data dictionary
Field | Description | Data Element | Data Type | length (Dec) | Check table | Conversion Routine | Domain Name | MemoryID | SHLP |
MANDT | Client | MANDT | CLNT | 3 | Assigned to domain | MANDT | |||
RELID | Relation ID | RELID | CHAR | 2 | RELID | ||||
REPORT | ABAP: Program Name in Variant Key | VARI_REPRT | CHAR | 40 | Assigned to domain | PROGRAMM | |||
VARIANT | ABAP: Name of variant (without program name) | VARIANT | CHAR | 14 | Assigned to domain | VARIANT | |||
SRTF2 | Next record counter in EXPORT/IMPORT data tables | INDX_SRTF2 | INT4 | 10 | SYBIN4 | ||||
VDATE | ABAP: Date of a variant | VARI_VDATE | DATS | 8 | SYDATS | ||||
VTIME | ABAP: Time of a variant | VARI_VTIME | TIMS | 6 | SYTIME | ||||
VERNR | ABAP: Program version number | TRDIR_VERN | CHAR | 6 | SYCHAR06 | ||||
CLUSTR | BIN2 data element for SYST | SYBIN2 | INT2 | 5 | SYBIN2 | ||||
CLUSTD | Contents of variant | VARILRAW | LRAW | 2886 | VARILRAW |
Key field | Non-key field |
How do I retrieve data from SAP table VARI using ABAP code
The following ABAP code Example will allow you to do a basic selection on VARI to SELECT all data from the tableDATA: WA_VARI TYPE VARI.
SELECT SINGLE *
FROM VARI
INTO CORRESPONDING FIELDS OF WA_VARI
WHERE...
How to access SAP table VARI
Within an ECC or HANA version of SAP you can also view further information about VARI and the data within it using relevant transactions such asSE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).
Search for further information about these or an SAP related objects