SAP VTB_SH Hierarchy Structure Standing Instructions (general) Table data and field list

VTB_SH is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "Hierarchy Structure Standing Instructions (general)" Information within sap ABAP programs.

This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.

i.e. DATA: wa_VTB_SH TYPE VTB_SH.

The VTB_SH table consists of various fields, each holding specific information or linking keys about Hierarchy Structure Standing Instructions (general) data available in SAP. These include SANLF (Product Category), GSART (Product Type), SFHAART (Financial Transaction Type), SI_COMP (Character Field Length = 10)... 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. .

VTB_SH structure Technical Details:

Delivery Class:
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Cannot Be Enhanced


SAP VTB_SH structure fields - Full list of fields found in SAP data dictionary

Looking for S/4HANA specific information? Click here to explore the details, fields and extensibility available for this table in the SAP S/4HANA version of the VTB_SH table. Also check whether the table still exists or has been transformed into a CDS view as part of the HANA simplifications.
Field Description Data Element Data Type length (Dec) Check table Conversion Routine Domain Name MemoryID SHLP
RANTYPContract Type RANTYPCHAR1RANTYP
SANLFProduct Category SANLF_DICHAR3CHAR3
GSARTProduct Type VVSARTCHAR3Assigned to domainVVSARTSANVVSART_APPL_BAS
SFHAARTFinancial Transaction Type TB_SFHAARTCHAR3Assigned to domainT_SFHAARTT02C_AT10
SI_COMPCharacter Field Length = 10 CHAR10CHAR10CHAR10
SI_ALLOC1Character Field Length = 10 CHAR10CHAR10CHAR10
SI_ALLOC2Character Field Length = 10 CHAR10CHAR10CHAR10

Key field Non-key field



How do I retrieve data from SAP structure VTB_SH using ABAP code?

As VTB_SH is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on VTB_SH as there is no data to select.

How to access SAP table VTB_SH

Within an ECC or HANA version of SAP you can also view further information about VTB_SH and the data within it using relevant transactions such as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).