SAP CO_OCB_CONVERT_COMPRES Function Module for NOTRANSL: Vergleichsergebnis in Dialogformat konvertieren









CO_OCB_CONVERT_COMPRES is a standard co ocb convert compres SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Vergleichsergebnis in Dialogformat konvertieren processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for co ocb convert compres FM, simply by entering the name CO_OCB_CONVERT_COMPRES into the relevant SAP transaction such as SE37 or SE38.

Function Group: COOCB
Program Name: SAPLCOOCB
Main Program: SAPLCOOCB
Appliation area: C
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CO_OCB_CONVERT_COMPRES pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'CO_OCB_CONVERT_COMPRES'"NOTRANSL: Vergleichsergebnis in Dialogformat konvertieren
EXPORTING
OBJNR1_IMP = "Object number
OBJNR2_IMP = "Object number
COMPTYP_IMP = "Type/origin/purpose of comparison result
* CDATE_IMP = "Created On
* CTIME_IMP = "Time created
CUSER_IMP = "User Name
* COMPNUM_IMP = "Unambiguous identification number of a comparison result

IMPORTING
COMPH_EXP = "Header entries for comparisons (online)
COMPNUM_EXP = "Unambiguous identification number of a comparison result

TABLES
HEADERS_COMP_RESULT = "Comparison results for order objects
* COMPHDR_TAB_EXP = "Comparison result, indiv. records for order headers (online)
* COMPITM_TAB_EXP = "Individual comparison result for items (online)
* COMPSQU_TAB_EXP = "Single comparison result for order sequences (Online)
* COMPOPR_TAB_EXP = "Individual comparison result for order operations (online)
* COMPCMP_TAB_EXP = "Individual comparison result for components (online)
* COMPPRT_TAB_EXP = "Individual comparison result for PRTs (online)
* COMPF_TAB_EXP = "Secondary field names (online)
* ET_COMPMSG = "Message for single comparison analysis (online)
ITEMS_COMP_RESULT = "Comparison results for order objects
SEQUENCES_COMP_RESULT = "Comparison results for order objects
OPERATIONS_COMP_RESULT = "Comparison results for order objects
SUBOPERS_COMP_RESULT = "Comparison results for order objects
COMPONENTS_COMP_RESULT = "Comparison results for order objects
TOOLS_COMP_RESULT = "Comparison results for order objects
PRIMARY_FIELDS = "Field names
SECONDARY_FIELDS = "Field names
.



IMPORTING Parameters details for CO_OCB_CONVERT_COMPRES

OBJNR1_IMP - Object number

Data type: AUFK-OBJNR
Optional: No
Call by Reference: Yes

OBJNR2_IMP - Object number

Data type: AUFK-OBJNR
Optional: No
Call by Reference: Yes

COMPTYP_IMP - Type/origin/purpose of comparison result

Data type: COMPH-COMPTYP
Optional: No
Call by Reference: Yes

CDATE_IMP - Created On

Data type: COMPH-CDATE
Optional: Yes
Call by Reference: Yes

CTIME_IMP - Time created

Data type: COMPH-CTIME
Optional: Yes
Call by Reference: Yes

CUSER_IMP - User Name

Data type: COMPH-CUSER
Optional: No
Call by Reference: Yes

COMPNUM_IMP - Unambiguous identification number of a comparison result

Data type: COMPH-COMPNUM
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for CO_OCB_CONVERT_COMPRES

COMPH_EXP - Header entries for comparisons (online)

Data type: COMPHD
Optional: No
Call by Reference: No ( called with pass by value option)

COMPNUM_EXP - Unambiguous identification number of a comparison result

Data type: COMPH-COMPNUM
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for CO_OCB_CONVERT_COMPRES

HEADERS_COMP_RESULT - Comparison results for order objects

Data type: COMPRES
Optional: No
Call by Reference: No ( called with pass by value option)

COMPHDR_TAB_EXP - Comparison result, indiv. records for order headers (online)

Data type: COMPHDRD
Optional: Yes
Call by Reference: No ( called with pass by value option)

COMPITM_TAB_EXP - Individual comparison result for items (online)

Data type: COMPITMD
Optional: Yes
Call by Reference: No ( called with pass by value option)

COMPSQU_TAB_EXP - Single comparison result for order sequences (Online)

Data type: COMPSQUD
Optional: Yes
Call by Reference: No ( called with pass by value option)

COMPOPR_TAB_EXP - Individual comparison result for order operations (online)

Data type: COMPOPRD
Optional: Yes
Call by Reference: No ( called with pass by value option)

COMPCMP_TAB_EXP - Individual comparison result for components (online)

Data type: COMPCMPD
Optional: Yes
Call by Reference: No ( called with pass by value option)

COMPPRT_TAB_EXP - Individual comparison result for PRTs (online)

Data type: COMPPRTD
Optional: Yes
Call by Reference: No ( called with pass by value option)

COMPF_TAB_EXP - Secondary field names (online)

Data type: COMPFD
Optional: Yes
Call by Reference: No ( called with pass by value option)

ET_COMPMSG - Message for single comparison analysis (online)

Data type: COMPMSGD
Optional: Yes
Call by Reference: Yes

ITEMS_COMP_RESULT - Comparison results for order objects

Data type: COMPRES
Optional: No
Call by Reference: No ( called with pass by value option)

SEQUENCES_COMP_RESULT - Comparison results for order objects

Data type: COMPRES
Optional: No
Call by Reference: No ( called with pass by value option)

OPERATIONS_COMP_RESULT - Comparison results for order objects

Data type: COMPRES
Optional: No
Call by Reference: No ( called with pass by value option)

SUBOPERS_COMP_RESULT - Comparison results for order objects

Data type: COMPRES
Optional: No
Call by Reference: No ( called with pass by value option)

COMPONENTS_COMP_RESULT - Comparison results for order objects

Data type: COMPRES
Optional: No
Call by Reference: No ( called with pass by value option)

TOOLS_COMP_RESULT - Comparison results for order objects

Data type: COMPRES
Optional: No
Call by Reference: No ( called with pass by value option)

PRIMARY_FIELDS - Field names

Data type: FNAMES
Optional: No
Call by Reference: No ( called with pass by value option)

SECONDARY_FIELDS - Field names

Data type: FNAMES
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for CO_OCB_CONVERT_COMPRES Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.

DATA:
lv_comph_exp  TYPE COMPHD, "   
lv_objnr1_imp  TYPE AUFK-OBJNR, "   
lt_headers_comp_result  TYPE STANDARD TABLE OF COMPRES, "   
lt_comphdr_tab_exp  TYPE STANDARD TABLE OF COMPHDRD, "   
lt_compitm_tab_exp  TYPE STANDARD TABLE OF COMPITMD, "   
lt_compsqu_tab_exp  TYPE STANDARD TABLE OF COMPSQUD, "   
lt_compopr_tab_exp  TYPE STANDARD TABLE OF COMPOPRD, "   
lt_compcmp_tab_exp  TYPE STANDARD TABLE OF COMPCMPD, "   
lt_compprt_tab_exp  TYPE STANDARD TABLE OF COMPPRTD, "   
lt_compf_tab_exp  TYPE STANDARD TABLE OF COMPFD, "   
lt_et_compmsg  TYPE STANDARD TABLE OF COMPMSGD, "   
lv_objnr2_imp  TYPE AUFK-OBJNR, "   
lv_compnum_exp  TYPE COMPH-COMPNUM, "   
lt_items_comp_result  TYPE STANDARD TABLE OF COMPRES, "   
lv_comptyp_imp  TYPE COMPH-COMPTYP, "   
lt_sequences_comp_result  TYPE STANDARD TABLE OF COMPRES, "   
lv_cdate_imp  TYPE COMPH-CDATE, "   
lt_operations_comp_result  TYPE STANDARD TABLE OF COMPRES, "   
lv_ctime_imp  TYPE COMPH-CTIME, "   
lt_subopers_comp_result  TYPE STANDARD TABLE OF COMPRES, "   
lv_cuser_imp  TYPE COMPH-CUSER, "   
lt_components_comp_result  TYPE STANDARD TABLE OF COMPRES, "   
lv_compnum_imp  TYPE COMPH-COMPNUM, "   
lt_tools_comp_result  TYPE STANDARD TABLE OF COMPRES, "   
lt_primary_fields  TYPE STANDARD TABLE OF FNAMES, "   
lt_secondary_fields  TYPE STANDARD TABLE OF FNAMES. "   

  CALL FUNCTION 'CO_OCB_CONVERT_COMPRES'  "NOTRANSL: Vergleichsergebnis in Dialogformat konvertieren
    EXPORTING
         OBJNR1_IMP = lv_objnr1_imp
         OBJNR2_IMP = lv_objnr2_imp
         COMPTYP_IMP = lv_comptyp_imp
         CDATE_IMP = lv_cdate_imp
         CTIME_IMP = lv_ctime_imp
         CUSER_IMP = lv_cuser_imp
         COMPNUM_IMP = lv_compnum_imp
    IMPORTING
         COMPH_EXP = lv_comph_exp
         COMPNUM_EXP = lv_compnum_exp
    TABLES
         HEADERS_COMP_RESULT = lt_headers_comp_result
         COMPHDR_TAB_EXP = lt_comphdr_tab_exp
         COMPITM_TAB_EXP = lt_compitm_tab_exp
         COMPSQU_TAB_EXP = lt_compsqu_tab_exp
         COMPOPR_TAB_EXP = lt_compopr_tab_exp
         COMPCMP_TAB_EXP = lt_compcmp_tab_exp
         COMPPRT_TAB_EXP = lt_compprt_tab_exp
         COMPF_TAB_EXP = lt_compf_tab_exp
         ET_COMPMSG = lt_et_compmsg
         ITEMS_COMP_RESULT = lt_items_comp_result
         SEQUENCES_COMP_RESULT = lt_sequences_comp_result
         OPERATIONS_COMP_RESULT = lt_operations_comp_result
         SUBOPERS_COMP_RESULT = lt_subopers_comp_result
         COMPONENTS_COMP_RESULT = lt_components_comp_result
         TOOLS_COMP_RESULT = lt_tools_comp_result
         PRIMARY_FIELDS = lt_primary_fields
         SECONDARY_FIELDS = lt_secondary_fields
. " CO_OCB_CONVERT_COMPRES




ABAP code using 7.40 inline data declarations to call FM CO_OCB_CONVERT_COMPRES

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
"SELECT single OBJNR FROM AUFK INTO @DATA(ld_objnr1_imp).
 
 
 
 
 
 
 
 
 
 
"SELECT single OBJNR FROM AUFK INTO @DATA(ld_objnr2_imp).
 
"SELECT single COMPNUM FROM COMPH INTO @DATA(ld_compnum_exp).
 
 
"SELECT single COMPTYP FROM COMPH INTO @DATA(ld_comptyp_imp).
 
 
"SELECT single CDATE FROM COMPH INTO @DATA(ld_cdate_imp).
 
 
"SELECT single CTIME FROM COMPH INTO @DATA(ld_ctime_imp).
 
 
"SELECT single CUSER FROM COMPH INTO @DATA(ld_cuser_imp).
 
 
"SELECT single COMPNUM FROM COMPH INTO @DATA(ld_compnum_imp).
 
 
 
 


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!