COMPH SAP (OCM: Comparison result (header entry)) Table details
Dictionary Type: Table
Description: OCM: Comparison result (header entry)
Description: OCM: Comparison result (header entry)
Table field list including key, data, relationships and ABAP select examples
COMPH is a standard SAP Table which is used to store OCM: Comparison result (header entry) data and is available within R/3 SAP systems depending on the version and release level.
The COMPH table consists of various fields, each holding specific information or linking keys about OCM: Comparison result (header entry) data available in SAP. These include COMPNUM (Unambiguous identification number of a comparison result), OBJKEY1 (Object number), OBJKEY2 (Object number), COMPTYP (Type/origin/purpose of comparison result).. 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: A - Application table (master and transaction data)Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Can be enhanced (character-type or numeric)
SAP COMPH table 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 |
MANDT | Client | MANDT | CLNT | 3 | Assigned to domain | MANDT | |||
COMPNUM | Unambiguous identification number of a comparison result | COMPNUM | NUMC | 10 | NUMC10 | ||||
OBJKEY1 | Object number | J_OBJNR | CHAR | 22 | Assigned to domain | J_OBJNR | ONR | ||
OBJKEY2 | Object number | J_OBJNR | CHAR | 22 | Assigned to domain | J_OBJNR | ONR | ||
COMPTYP | Type/origin/purpose of comparison result | COMPTYP | CHAR | 1 | CHAR1 | ||||
CDATE | Created on | CATS_ERSDA | DATS | 8 | DATUM | ||||
CTIME | Time created | C_TIME | TIMS | 6 | UZEIT | ||||
CUSER | User Name | UNAME | CHAR | 12 | UNAME | ||||
STATUS | Processing status of change record | OCM_STATUS | CHAR | 1 | CHAR1 | ||||
MAXCONFTYP | Type of conflict | OCM_CONF_TYP | NUMC | 1 | NUMC1 | ||||
OCMPF | Profile for OCM PP / PS | OCM_PROFILE | CHAR | 6 | CHAR6 | ||||
VERNR | Internal counter | CUCOZHL | NUMC | 4 | CUCOZHL | ||||
FUNCT | Function to be carried out by system | CO_FUNCT | CHAR | 3 | CO_FUNCT | ||||
TSCOMPL | Time stamp for the completion of a change process | COCM_TSCOMPL | DEC | 15 | TZNTSTMPS | ||||
AENNR | Change Number | AENNR | CHAR | 12 | Assigned to domain | AENNR | AENNR | AEN |
Key field | Non-key field |
How do I retrieve data from SAP table COMPH using ABAP code
The following ABAP code Example will allow you to do a basic selection on COMPH to SELECT all data from the tableDATA: WA_COMPH TYPE COMPH.
SELECT SINGLE *
FROM COMPH
INTO CORRESPONDING FIELDS OF WA_COMPH
WHERE...
How to access SAP table COMPH
Within an ECC or HANA version of SAP you can also view further information about COMPH 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