COMT_PRODUCT_HISTORY SAP (History of Attribute Changes) Structure details

Dictionary Type: Structure
Description: History of Attribute Changes




ABAP Code to SELECT data from COMT_PRODUCT_HISTORY
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_IDIdentification of a Set Type COMT_FRGTYPE_IDCHAR16CHAR16COM_SETTYPE_GENERATED
SEGMENT_TEXTSet Type Description COMT_FRGTYPE_TEXTCHAR40COMT_TXT40
COMPONENT_TYPEProduct Component Type COMT_PROD_COMP_TYPECHAR2COM_PROD_COMP_TYPE
ATTR_IDAttribute COMT_ATTR_ID_30CHAR30ATTR_ID_30COM_ATTRIBUTCOM_ATTRIBUTE_SH
ATTR_TEXTAttribute Description COMT_ATTR_TEXTCHAR40COMT_TXT40
FIELD_NAMEField name NAME_FELDCHAR30Assigned to domainFDNAMEDFD
ATTR_DATATYPEData Type of Attribute COMT_ATTR_DATATYPECHAR4Assigned to domainATTR_DATATYPE
ATTR_LENGTHAttribute Length COMT_ATTR_LENGTHNUMC6DDLENG
ATTR_DECIMALSNumber of Allowed Decimal Places for the Attribute COMT_ATTR_DECIMALSNUMC6DDLENG
VALUE_CONTEXTKey Values for an Attribute Value COMT_ATTR_CONTEXTCHAR45TEXT45
VALUE_OLDOld Value of an Attribute COMT_ATTRIBUTE_VALUE_OLDCHAR255COM_ATTRIBUTE_VALUE
VALUE_NEWNew Value of an Attribute COMT_ATTRIBUTE_VALUE_NEWCHAR255COM_ATTRIBUTE_VALUE
VALID_TOValid To (Time Stamp) COMT_VALID_TODEC15TSTPSBCOS_TSTMP
PR_ORG_TYPEIndicator for Organizational Dependency COMT_PR_ORG_TYPECHAR10Assigned to domainCOM_PR_ORG_TYPE
PR_ORG_IDIdentification of an Organizational Unit COMT_PR_ORG_IDCHAR32CHAR32
VALID_FROMValid From (Time Stamp) COMT_VALID_FROMDEC15TSTPSBCOS_TSTMP
UPNAMEName of the User Who Last Changed the Set COMT_UPNAMECHAR12UNAME
LOGSYSOriginal System COMT_LOGSYSCHAR10Assigned to domainALPHALOGSYSCOM_LOGSYSCOM_PRODUCT_LOGSYS
UPDATE_TYPEType of Change UPDATE_TYPECHAR1UPDATE_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 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!