COMPRES SAP (Comparison results for order objects) Structure details
Description: Comparison results for order objects
Structure field list including key, data, relationships and ABAP select examples
COMPRES 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 "Comparison results for order objects" 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_COMPRES TYPE COMPRES.
The COMPRES table consists of various fields, each holding specific information or linking keys about Comparison results for order objects data available in SAP. These include AUFNR1 (Order Number), MAUFNR1 (Number of superior order), STUFE1 (Level (in multi-level BOM explosions)), WEGXX1 (Path (for multi-level BOM explosions)).. 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: Can be enhanced (character-type or numeric)
SAP COMPRES 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 |
OBJTY | Data objects of a task list | CP_OBJECT | CHAR | 1 | PLN_OBJECT | ||||
AUFNR1 | Order Number | AUFNR | CHAR | 12 | Assigned to domain | ALPHA | AUFNR | ANR | |
MAUFNR1 | Number of superior order | MAUFNR | CHAR | 12 | Assigned to domain | ALPHA | AUFNR | UAF | |
STUFE1 | Level (in multi-level BOM explosions) | HISTU | DEC | 2 | DEC2 | ||||
WEGXX1 | Path (for multi-level BOM explosions) | WEGXX | DEC | 4 | DEC4 | ||||
VSNMR1 | Number or description of a version | VSNMR | CHAR | 12 | VSNMR | VS2 | |||
AUFPL1 | Routing number of operations in the order | CO_AUFPL | NUMC | 10 | AUFPL | ||||
POSNR1 | Order Item Number | CO_POSNR | NUMC | 4 | CO_POSNR | ||||
PLNFL1 | Sequence | PLNFOLGE | CHAR | 6 | ALPHA | PLNFOLGE | |||
APLFL1 | Sequence | PLNFOLGE | CHAR | 6 | ALPHA | PLNFOLGE | |||
APLZL1 | General counter for order | CO_APLZL | NUMC | 8 | Assigned to domain | CO_APLZL | |||
SUMNR1 | Node number of the superior operation | SUMKNTNR | NUMC | 8 | KNTNR | ||||
RSNUM1 | Number of Reservation/Dependent Requirement | RSNUM | NUMC | 10 | Assigned to domain | RSNUM | RES | ||
RSPOS1 | Item Number of Reservation/Dependent Requirement | RSPOS | NUMC | 4 | RSPOS | RPO | |||
RSART1 | Record type | RSART | CHAR | 1 | RSART | ||||
PZLFH1 | Item counter for production resources/tools | PZLFH | NUMC | 8 | PZLFH | ||||
DBSKZ1 | Direct procurement indicator | DBSKZ | CHAR | 1 | DBSKZ | ||||
AUFNR2 | Order Number | AUFNR | CHAR | 12 | Assigned to domain | ALPHA | AUFNR | ANR | |
MAUFNR2 | Number of superior order | MAUFNR | CHAR | 12 | Assigned to domain | ALPHA | AUFNR | UAF | |
STUFE2 | Level (in multi-level BOM explosions) | HISTU | DEC | 2 | DEC2 | ||||
WEGXX2 | Path (for multi-level BOM explosions) | WEGXX | DEC | 4 | DEC4 | ||||
VSNMR2 | Number or description of a version | VSNMR | CHAR | 12 | VSNMR | VS2 | |||
AUFPL2 | Routing number of operations in the order | CO_AUFPL | NUMC | 10 | AUFPL | ||||
POSNR2 | Order Item Number | CO_POSNR | NUMC | 4 | CO_POSNR | ||||
PLNFL2 | Sequence | PLNFOLGE | CHAR | 6 | ALPHA | PLNFOLGE | |||
APLFL2 | Sequence | PLNFOLGE | CHAR | 6 | ALPHA | PLNFOLGE | |||
APLZL2 | General counter for order | CO_APLZL | NUMC | 8 | Assigned to domain | CO_APLZL | |||
SUMNR2 | Node number of the superior operation | SUMKNTNR | NUMC | 8 | KNTNR | ||||
RSNUM2 | Number of Reservation/Dependent Requirement | RSNUM | NUMC | 10 | Assigned to domain | RSNUM | RES | ||
RSPOS2 | Item Number of Reservation/Dependent Requirement | RSPOS | NUMC | 4 | RSPOS | RPO | |||
RSART2 | Record type | RSART | CHAR | 1 | RSART | ||||
PZLFH2 | Item counter for production resources/tools | PZLFH | NUMC | 8 | PZLFH | ||||
DBSKZ2 | Direct procurement indicator | DBSKZ | CHAR | 1 | DBSKZ | ||||
RESULT | OCM: Result of comparison of two order objects | OCM_COMP_RES | CHAR | 1 | OCM_COMP_RES | ||||
LOWDIFF | Difference exists at lower level | OCM_LOW_DIFF | CHAR | 1 | CHAR1 |
Key field | Non-key field |
How do I retrieve data from SAP structure COMPRES using ABAP code?
As COMPRES 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 COMPRES as there is no data to select.How to access SAP table COMPRES
Within an ECC or HANA version of SAP you can also view further information about COMPRES 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