COMPRES SAP (Comparison results for order objects) Structure details

Dictionary Type: Structure
Description: Comparison results for order objects




ABAP Code to SELECT data from COMPRES
Related tables to COMPRES
Access table COMPRES




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
OBJTYData objects of a task list CP_OBJECTCHAR1PLN_OBJECT
AUFNR1Order Number AUFNRCHAR12Assigned to domainALPHAAUFNRANR
MAUFNR1Number of superior order MAUFNRCHAR12Assigned to domainALPHAAUFNRUAF
STUFE1Level (in multi-level BOM explosions) HISTUDEC2DEC2
WEGXX1Path (for multi-level BOM explosions) WEGXXDEC4DEC4
VSNMR1Number or description of a version VSNMRCHAR12VSNMRVS2
AUFPL1Routing number of operations in the order CO_AUFPLNUMC10AUFPL
POSNR1Order Item Number CO_POSNRNUMC4CO_POSNR
PLNFL1Sequence PLNFOLGECHAR6ALPHAPLNFOLGE
APLFL1Sequence PLNFOLGECHAR6ALPHAPLNFOLGE
APLZL1General counter for order CO_APLZLNUMC8Assigned to domainCO_APLZL
SUMNR1Node number of the superior operation SUMKNTNRNUMC8KNTNR
RSNUM1Number of Reservation/Dependent Requirement RSNUMNUMC10Assigned to domainRSNUMRES
RSPOS1Item Number of Reservation/Dependent Requirement RSPOSNUMC4RSPOSRPO
RSART1Record type RSARTCHAR1RSART
PZLFH1Item counter for production resources/tools PZLFHNUMC8PZLFH
DBSKZ1Direct procurement indicator DBSKZCHAR1DBSKZ
AUFNR2Order Number AUFNRCHAR12Assigned to domainALPHAAUFNRANR
MAUFNR2Number of superior order MAUFNRCHAR12Assigned to domainALPHAAUFNRUAF
STUFE2Level (in multi-level BOM explosions) HISTUDEC2DEC2
WEGXX2Path (for multi-level BOM explosions) WEGXXDEC4DEC4
VSNMR2Number or description of a version VSNMRCHAR12VSNMRVS2
AUFPL2Routing number of operations in the order CO_AUFPLNUMC10AUFPL
POSNR2Order Item Number CO_POSNRNUMC4CO_POSNR
PLNFL2Sequence PLNFOLGECHAR6ALPHAPLNFOLGE
APLFL2Sequence PLNFOLGECHAR6ALPHAPLNFOLGE
APLZL2General counter for order CO_APLZLNUMC8Assigned to domainCO_APLZL
SUMNR2Node number of the superior operation SUMKNTNRNUMC8KNTNR
RSNUM2Number of Reservation/Dependent Requirement RSNUMNUMC10Assigned to domainRSNUMRES
RSPOS2Item Number of Reservation/Dependent Requirement RSPOSNUMC4RSPOSRPO
RSART2Record type RSARTCHAR1RSART
PZLFH2Item counter for production resources/tools PZLFHNUMC8PZLFH
DBSKZ2Direct procurement indicator DBSKZCHAR1DBSKZ
RESULTOCM: Result of comparison of two order objects OCM_COMP_RESCHAR1OCM_COMP_RES
LOWDIFFDifference exists at lower level OCM_LOW_DIFFCHAR1CHAR1

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 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!