SAP CO_OCC_DISPLAY_CONFIGURATION Function Module for NOTRANSL: Anzeige der Merkmalbewertung zu registriertem Objekt









CO_OCC_DISPLAY_CONFIGURATION is a standard co occ display configuration 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: Anzeige der Merkmalbewertung zu registriertem Objekt 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 occ display configuration FM, simply by entering the name CO_OCC_DISPLAY_CONFIGURATION into the relevant SAP transaction such as SE37 or SE38.

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



Function CO_OCC_DISPLAY_CONFIGURATION 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_OCC_DISPLAY_CONFIGURATION'"NOTRANSL: Anzeige der Merkmalbewertung zu registriertem Objekt
EXPORTING
CUOBJ_IMP = "Configuration (internal object number)
* AUFNR_IMP = "Order Number
* POSNR_IMP = "Order Item Number
* VERNR_IMP = "Internal counter
* I_NO_OCM = ' ' "Checkbox
* AUTYP = "Order Category
* IS_OWNER = "General Indicator
.



IMPORTING Parameters details for CO_OCC_DISPLAY_CONFIGURATION

CUOBJ_IMP - Configuration (internal object number)

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

AUFNR_IMP - Order Number

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

POSNR_IMP - Order Item Number

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

VERNR_IMP - Internal counter

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

I_NO_OCM - Checkbox

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

AUTYP - Order Category

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

IS_OWNER - General Indicator

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

Copy and paste ABAP code example for CO_OCC_DISPLAY_CONFIGURATION 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_cuobj_imp  TYPE INOB-CUOBJ, "   
lv_aufnr_imp  TYPE AFPO-AUFNR, "   
lv_posnr_imp  TYPE AFPO-POSNR, "   
lv_vernr_imp  TYPE COMPH-VERNR, "   
lv_i_no_ocm  TYPE XFELD, "   SPACE
lv_autyp  TYPE CAUFV-AUTYP, "   
lv_is_owner  TYPE RC27X-FLG_SEL. "   

  CALL FUNCTION 'CO_OCC_DISPLAY_CONFIGURATION'  "NOTRANSL: Anzeige der Merkmalbewertung zu registriertem Objekt
    EXPORTING
         CUOBJ_IMP = lv_cuobj_imp
         AUFNR_IMP = lv_aufnr_imp
         POSNR_IMP = lv_posnr_imp
         VERNR_IMP = lv_vernr_imp
         I_NO_OCM = lv_i_no_ocm
         AUTYP = lv_autyp
         IS_OWNER = lv_is_owner
. " CO_OCC_DISPLAY_CONFIGURATION




ABAP code using 7.40 inline data declarations to call FM CO_OCC_DISPLAY_CONFIGURATION

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 CUOBJ FROM INOB INTO @DATA(ld_cuobj_imp).
 
"SELECT single AUFNR FROM AFPO INTO @DATA(ld_aufnr_imp).
 
"SELECT single POSNR FROM AFPO INTO @DATA(ld_posnr_imp).
 
"SELECT single VERNR FROM COMPH INTO @DATA(ld_vernr_imp).
 
DATA(ld_i_no_ocm) = ' '.
 
"SELECT single AUTYP FROM CAUFV INTO @DATA(ld_autyp).
 
"SELECT single FLG_SEL FROM RC27X INTO @DATA(ld_is_owner).
 


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!