NTAB_CMP SAP (Nametab of View or Table for Nametab Comparison) Structure details
Description: Nametab of View or Table for Nametab Comparison
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 |
VIEWNAME | Name of SAP table view | VIEWNAME | CHAR | 30 | Assigned to domain | VIEWNAME | DVI | ||
VARIANT | extended table maintenance: Name of a selection variant | VIM_VARI | CHAR | 14 | Assigned to domain | VIM_VARI | |||
FIELDNAME | Field Name | FIELDNAME | CHAR | 30 | Assigned to domain | FDNAME | DFD | ||
TXTFIELD | Flag (X or Blank) | AS4FLAG | CHAR | 1 | AS4FLAG | ||||
FOFFSET | Offset of a field | DOFFSET | NUMC | 6 | DOFFSET | ||||
INTLEN | Internal Length in Bytes | INTLEN | NUMC | 6 | DDLENG | ||||
DECIMALS | Number of Decimal Places | DECIMALS | NUMC | 6 | DDLENG | ||||
SIGN | Flag for sign in numerical fields | SIGNFLAG | CHAR | 1 | AS4FLAG | ||||
INTTYPE | ABAP data type (C,D,N,...) | INTTYPE | CHAR | 1 | INTTYPE | ||||
DATATYPE | Data Type in ABAP Dictionary | DATATYPE_D | CHAR | 4 | DTYPE | DATATYPE | |||
DOMNAME | Domain name | DOMNAME | CHAR | 30 | Assigned to domain | DOMNAME | DD_DOMA | ||
ROLLNAME | Data element (semantic domain) | ROLLNAME | CHAR | 30 | Assigned to domain | ROLLNAME | ROL | DD_DTEL | |
KEYFLAG | Identifies a key field of a table | KEYFLAG | CHAR | 1 | KEYFLAG | ||||
PRTFRKYFLD | CHAR01 data element for SYST | SYCHAR01 | CHAR | 1 | SYCHAR01 | ||||
CLI_FIELD | Flag (X or Blank) | AS4FLAG | CHAR | 1 | AS4FLAG | ||||
CHECKTABLE | Table Name | TABNAME | CHAR | 30 | Assigned to domain | AS4TAB | DTB | ||
REFTABLE | Table for reference field | REFTABLE | CHAR | 30 | Assigned to domain | AS4TAB | |||
REFFIELD | Reference field for currency and qty fields | REFFIELD | CHAR | 30 | Assigned to domain | FDNAME | |||
READONLY | Maintenance attribute for view field | VFLDROFLAG | CHAR | 1 | VFLDRDONLY | ||||
FLAG | Flag (X or Blank) | AS4FLAG | CHAR | 1 | AS4FLAG | ||||
LANGU | Language Key | DDLANGUAGE | LANG | 1 | Assigned to domain | ISOLA | SPRAS | ||
OUTPUTLEN | Output Length | OUTPUTLEN | NUMC | 6 | DDLENG | ||||
CONVEXIT | Conversion Routine | CONVEXIT | CHAR | 5 | CONVEXIT | ||||
FIELDTEXT | Short Description of Repository Objects | AS4TEXT | CHAR | 60 | AS4TEXT | ||||
REPTEXT | Heading | REPTEXT | CHAR | 55 | REPTEXT | ||||
SCRTEXT_S | Short Field Label | SCRTEXT_S | CHAR | 10 | SCRTEXT_S | ||||
SCRTEXT_M | Medium Field Label | SCRTEXT_M | CHAR | 20 | SCRTEXT_M | ||||
SCRTEXT_L | Long Field Label | SCRTEXT_L | CHAR | 40 | SCRTEXT_L | ||||
TEXT | Heading | REPTEXT | CHAR | 55 | REPTEXT | ||||
WIDTH | Output Length | OUTPUTLEN | NUMC | 6 | DDLENG | ||||
WIDTH_CUST | Output Length | OUTPUTLEN | NUMC | 6 | DDLENG | ||||
NT_INDEX | Iternal table index | AD_INDEX | INT4 | 10 | INT4 | ||||
CMP_FLAG | Version Number Component | CHAR2 | CHAR | 2 | CHAR2 | ||||
COMPARE | Flag (X or Blank) | AS4FLAG | CHAR | 1 | AS4FLAG | ||||
ADJUST | Flag (X or Blank) | AS4FLAG | CHAR | 1 | AS4FLAG | ||||
VISIBLE | Flag (X or Blank) | AS4FLAG | CHAR | 1 | AS4FLAG | ||||
FIELD_POS | Position of the field in the table | TABFDPOS | NUMC | 4 | AS4POS |
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 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