NTAB_CMP SAP (Nametab of View or Table for Nametab Comparison) Structure details

Dictionary Type: Structure
Description: Nametab of View or Table for Nametab Comparison




ABAP Code to SELECT data from NTAB_CMP
Related tables to NTAB_CMP
Access table NTAB_CMP




Structure field list including key, data, relationships and ABAP select examples

NTAB_CMP 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 "Nametab of View or Table for Nametab Comparison" 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_NTAB_CMP TYPE NTAB_CMP.

The NTAB_CMP table consists of various fields, each holding specific information or linking keys about Nametab of View or Table for Nametab Comparison data available in SAP. These include VARIANT (extended table maintenance: Name of a selection variant), FIELDNAME (Field Name), TXTFIELD (Flag (X or Blank)), FOFFSET (Offset of a field).. 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:
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified


SAP NTAB_CMP structure 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
VIEWNAMEName of SAP table view VIEWNAMECHAR30Assigned to domainVIEWNAMEDVI
VARIANTextended table maintenance: Name of a selection variant VIM_VARICHAR14Assigned to domainVIM_VARI
FIELDNAMEField Name FIELDNAMECHAR30Assigned to domainFDNAMEDFD
TXTFIELDFlag (X or Blank) AS4FLAGCHAR1AS4FLAG
FOFFSETOffset of a field DOFFSETNUMC6DOFFSET
INTLENInternal Length in Bytes INTLENNUMC6DDLENG
DECIMALSNumber of Decimal Places DECIMALSNUMC6DDLENG
SIGNFlag for sign in numerical fields SIGNFLAGCHAR1AS4FLAG
INTTYPEABAP data type (C,D,N,...) INTTYPECHAR1INTTYPE
DATATYPEData Type in ABAP Dictionary DATATYPE_DCHAR4DTYPEDATATYPE
DOMNAMEDomain name DOMNAMECHAR30Assigned to domainDOMNAMEDD_DOMA
ROLLNAMEData element (semantic domain) ROLLNAMECHAR30Assigned to domainROLLNAMEROLDD_DTEL
KEYFLAGIdentifies a key field of a table KEYFLAGCHAR1KEYFLAG
PRTFRKYFLDCHAR01 data element for SYST SYCHAR01CHAR1SYCHAR01
CLI_FIELDFlag (X or Blank) AS4FLAGCHAR1AS4FLAG
CHECKTABLETable Name TABNAMECHAR30Assigned to domainAS4TABDTB
REFTABLETable for reference field REFTABLECHAR30Assigned to domainAS4TAB
REFFIELDReference field for currency and qty fields REFFIELDCHAR30Assigned to domainFDNAME
READONLYMaintenance attribute for view field VFLDROFLAGCHAR1VFLDRDONLY
FLAGFlag (X or Blank) AS4FLAGCHAR1AS4FLAG
LANGULanguage Key DDLANGUAGELANG1Assigned to domainISOLASPRAS
OUTPUTLENOutput Length OUTPUTLENNUMC6DDLENG
CONVEXITConversion Routine CONVEXITCHAR5CONVEXIT
FIELDTEXTShort Description of Repository Objects AS4TEXTCHAR60AS4TEXT
REPTEXTHeading REPTEXTCHAR55REPTEXT
SCRTEXT_SShort Field Label SCRTEXT_SCHAR10SCRTEXT_S
SCRTEXT_MMedium Field Label SCRTEXT_MCHAR20SCRTEXT_M
SCRTEXT_LLong Field Label SCRTEXT_LCHAR40SCRTEXT_L
TEXTHeading REPTEXTCHAR55REPTEXT
WIDTHOutput Length OUTPUTLENNUMC6DDLENG
WIDTH_CUSTOutput Length OUTPUTLENNUMC6DDLENG
NT_INDEXIternal table index AD_INDEXINT410INT4
CMP_FLAGVersion Number Component CHAR2CHAR2CHAR2
COMPAREFlag (X or Blank) AS4FLAGCHAR1AS4FLAG
ADJUSTFlag (X or Blank) AS4FLAGCHAR1AS4FLAG
VISIBLEFlag (X or Blank) AS4FLAGCHAR1AS4FLAG
FIELD_POSPosition of the field in the table TABFDPOSNUMC4AS4POS

Key field Non-key field



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

As NTAB_CMP 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 NTAB_CMP as there is no data to select.

How to access SAP table NTAB_CMP

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

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


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!