COMT_ATTR_DESC SAP (Description of a Set Type Attribute (History)) Structure details
Description: Description of a Set Type Attribute (History)
Related tables to COMT_ATTR_DESC
Access table COMT_ATTR_DESC
Structure field list including key, data, relationships and ABAP select examples
COMT_ATTR_DESC 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 "Description of a Set Type Attribute (History)" 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_COMT_ATTR_DESC TYPE COMT_ATTR_DESC.
The COMT_ATTR_DESC table consists of various fields, each holding specific information or linking keys about Description of a Set Type Attribute (History) data available in SAP. These include GENFLAG (Set Type Has Been Generated), KEY_FLAG (Attribute Is Used as Key Field), DOMNAME (Domain name), ATTR_DATATYPE (Data Type of Attribute).. 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: Cannot Be Enhanced
SAP COMT_ATTR_DESC 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 |
FIELD_NAME | Field name | NAME_FELD | CHAR | 30 | Assigned to domain | FDNAME | DFD | ||
GENFLAG | Set Type Has Been Generated | COMT_FRGTYPE_GENFLAG | CHAR | 1 | XFELD | ||||
KEY_FLAG | Attribute Is Used as Key Field | COMT_KEY_FLAG | CHAR | 1 | COM_BOOLEAN | ||||
DOMNAME | Domain name | DOMNAME | CHAR | 30 | Assigned to domain | DOMNAME | DD_DOMA | ||
ATTR_DATATYPE | Data Type of Attribute | COMT_ATTR_DATATYPE | CHAR | 4 | COMC_ATTRTYPES | ATTR_DATATYPE | |||
ATTR_DECIMALS | Number of Allowed Decimal Places for the Attribute | COMT_ATTR_DECIMALS | NUMC | 6 | DDLENG | ||||
ATTR_GUID | GUID of an Attribute (16 Characters) | COMT_ATTRIBUTE_GUID | RAW | 16 | SYSUUID | ||||
ATTR_ID | Attribute | COMT_ATTR_ID_30 | CHAR | 30 | ATTR_ID_30 | COM_ATTRIBUT | COM_ATTRIBUTE_SH | ||
ATTR_LENGTH | Attribute Length | COMT_ATTR_LENGTH | NUMC | 6 | DDLENG | ||||
ATTR_TEXT | Attribute Description | COMT_ATTR_TEXT | CHAR | 40 | COMT_TXT40 | ||||
ATTR_MV_POSSIBLE | Prepare Attribute for Multiple Values | COMT_MULTIVALUE_OPTION | CHAR | 1 | COM_BOOLEAN | ||||
ATTR_CHECKBOX | Checkbox | COMT_CHECKBOX | CHAR | 1 | CHAR1_X | ||||
ATTR_TABNAME | Value Table for Attributes | COMT_ATTR_TABNAME | CHAR | 16 | DBOBJ_NAME | DTB | DD_DBTB_16 | ||
DB_TABLE | Database Table for Multi-Value Attributes | COMT_ATTR_DB_TABLE | CHAR | 30 | DDOBJNAME | ||||
DB_HIST_TABLE | Table for Historical Values of Multi-Value Attributes | COMT_ATTR_DB_HIST_TABLE | CHAR | 30 | DDOBJNAME | ||||
ATTR_DB_CLASS | Class Name for Multi-Value Attributes | COMT_ATTR_DB_CLASS | CHAR | 30 | CLASSNAME | ||||
LOWER_CASE | Lowercase Permitted/Not Permitted for Attributes | COMT_ATTR_LOWER_CASE | CHAR | 1 | AS4FLAG | ||||
INTERNAL_ONLY | Attribute May Only Be Used Internally in SAP | COMT_ATTR_INTERNAL | CHAR | 1 | COM_BOOLEAN |
Key field | Non-key field |
How do I retrieve data from SAP structure COMT_ATTR_DESC using ABAP code?
As COMT_ATTR_DESC 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 COMT_ATTR_DESC as there is no data to select.How to access SAP table COMT_ATTR_DESC
Within an ECC or HANA version of SAP you can also view further information about COMT_ATTR_DESC 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