COMT_PRODUCT_HISTORY SAP (History of Attribute Changes) Structure details
Description: History of Attribute Changes
Related tables to COMT_PRODUCT_HISTORY
Access table COMT_PRODUCT_HISTORY
Structure field list including key, data, relationships and ABAP select examples
COMT_PRODUCT_HISTORY 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 "History of Attribute Changes" 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_PRODUCT_HISTORY TYPE COMT_PRODUCT_HISTORY.
The COMT_PRODUCT_HISTORY table consists of various fields, each holding specific information or linking keys about History of Attribute Changes data available in SAP. These include SEGMENT_TEXT (Set Type Description), COMPONENT_TYPE (Product Component Type), ATTR_ID (Attribute), ATTR_TEXT (Attribute Description).. 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_PRODUCT_HISTORY 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 |
SEGMENT_ID | Identification of a Set Type | COMT_FRGTYPE_ID | CHAR | 16 | CHAR16 | COM_SETTYPE_GENERATED | |||
SEGMENT_TEXT | Set Type Description | COMT_FRGTYPE_TEXT | CHAR | 40 | COMT_TXT40 | ||||
COMPONENT_TYPE | Product Component Type | COMT_PROD_COMP_TYPE | CHAR | 2 | COM_PROD_COMP_TYPE | ||||
ATTR_ID | Attribute | COMT_ATTR_ID_30 | CHAR | 30 | ATTR_ID_30 | COM_ATTRIBUT | COM_ATTRIBUTE_SH | ||
ATTR_TEXT | Attribute Description | COMT_ATTR_TEXT | CHAR | 40 | COMT_TXT40 | ||||
FIELD_NAME | Field name | NAME_FELD | CHAR | 30 | Assigned to domain | FDNAME | DFD | ||
ATTR_DATATYPE | Data Type of Attribute | COMT_ATTR_DATATYPE | CHAR | 4 | Assigned to domain | ATTR_DATATYPE | |||
ATTR_LENGTH | Attribute Length | COMT_ATTR_LENGTH | NUMC | 6 | DDLENG | ||||
ATTR_DECIMALS | Number of Allowed Decimal Places for the Attribute | COMT_ATTR_DECIMALS | NUMC | 6 | DDLENG | ||||
VALUE_CONTEXT | Key Values for an Attribute Value | COMT_ATTR_CONTEXT | CHAR | 45 | TEXT45 | ||||
VALUE_OLD | Old Value of an Attribute | COMT_ATTRIBUTE_VALUE_OLD | CHAR | 255 | COM_ATTRIBUTE_VALUE | ||||
VALUE_NEW | New Value of an Attribute | COMT_ATTRIBUTE_VALUE_NEW | CHAR | 255 | COM_ATTRIBUTE_VALUE | ||||
VALID_TO | Valid To (Time Stamp) | COMT_VALID_TO | DEC | 15 | TSTPS | BCOS_TSTMP | |||
PR_ORG_TYPE | Indicator for Organizational Dependency | COMT_PR_ORG_TYPE | CHAR | 10 | Assigned to domain | COM_PR_ORG_TYPE | |||
PR_ORG_ID | Identification of an Organizational Unit | COMT_PR_ORG_ID | CHAR | 32 | CHAR32 | ||||
VALID_FROM | Valid From (Time Stamp) | COMT_VALID_FROM | DEC | 15 | TSTPS | BCOS_TSTMP | |||
UPNAME | Name of the User Who Last Changed the Set | COMT_UPNAME | CHAR | 12 | UNAME | ||||
LOGSYS | Original System | COMT_LOGSYS | CHAR | 10 | Assigned to domain | ALPHA | LOGSYS | COM_LOGSYS | COM_PRODUCT_LOGSYS |
UPDATE_TYPE | Type of Change | UPDATE_TYPE | CHAR | 1 | UPDATE_TYPE |
Key field | Non-key field |
How do I retrieve data from SAP structure COMT_PRODUCT_HISTORY using ABAP code?
As COMT_PRODUCT_HISTORY 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_PRODUCT_HISTORY as there is no data to select.How to access SAP table COMT_PRODUCT_HISTORY
Within an ECC or HANA version of SAP you can also view further information about COMT_PRODUCT_HISTORY 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