SAP OIURV_READ_CMCC_DATA Function Module for Read Contract Marketing Cost Control Header for selection criteria









OIURV_READ_CMCC_DATA is a standard oiurv read cmcc data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read Contract Marketing Cost Control Header for selection criteria 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 oiurv read cmcc data FM, simply by entering the name OIURV_READ_CMCC_DATA into the relevant SAP transaction such as SE37 or SE38.

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



Function OIURV_READ_CMCC_DATA 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 'OIURV_READ_CMCC_DATA'"Read Contract Marketing Cost Control Header for selection criteria
EXPORTING
I_CMCC_CT_NO = "Contract Number
* I_WC_NO = "Well Completion Number
* I_MP_NO = "Measurement point number
* I_CMCC_MP_NO = "Measurement point number
* I_CMCC_WL_NO = "Well ID Number
* I_CMCC_WC_NO = "Well Completion Number
* I_CMCC_MATNR = "Material number
I_EFF_FROM_DT = "Effective From Date
I_EFF_TO_DT = "Effective To Date
* I_CT_NO = "Contract Number
* I_WL_NO = "Well ID Number

IMPORTING
E_COUNT = "

TABLES
REPODATA = "Structure for Contract Marketing Cost Control Header

EXCEPTIONS
NONE_FOUND = 1
.



IMPORTING Parameters details for OIURV_READ_CMCC_DATA

I_CMCC_CT_NO - Contract Number

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

I_WC_NO - Well Completion Number

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

I_MP_NO - Measurement point number

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

I_CMCC_MP_NO - Measurement point number

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

I_CMCC_WL_NO - Well ID Number

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

I_CMCC_WC_NO - Well Completion Number

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

I_CMCC_MATNR - Material number

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

I_EFF_FROM_DT - Effective From Date

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

I_EFF_TO_DT - Effective To Date

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

I_CT_NO - Contract Number

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

I_WL_NO - Well ID Number

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

EXPORTING Parameters details for OIURV_READ_CMCC_DATA

E_COUNT -

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

TABLES Parameters details for OIURV_READ_CMCC_DATA

REPODATA - Structure for Contract Marketing Cost Control Header

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

EXCEPTIONS details

NONE_FOUND - No records found

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

Copy and paste ABAP code example for OIURV_READ_CMCC_DATA 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_e_count  TYPE I, "   
lt_repodata  TYPE STANDARD TABLE OF ROIUCP_CMCC, "   
lv_none_found  TYPE ROIUCP_CMCC, "   
lv_i_cmcc_ct_no  TYPE ROIUCP_CMCC-CT_NO, "   
lv_i_wc_no  TYPE ROIUCP_CMCC-WC_NO, "   
lv_i_mp_no  TYPE ROIUCP_CMCC-MP_NO, "   
lv_i_cmcc_mp_no  TYPE ROIUCP_CMCC-MP_NO, "   
lv_i_cmcc_wl_no  TYPE ROIUCP_CMCC-WL_NO, "   
lv_i_cmcc_wc_no  TYPE ROIUCP_CMCC-WC_NO, "   
lv_i_cmcc_matnr  TYPE ROIUCP_CMCC-MATNR, "   
lv_i_eff_from_dt  TYPE ROIUCP_CMCC-EFF_FROM_DT, "   
lv_i_eff_to_dt  TYPE ROIUCP_CMCC-EFF_TO_DT, "   
lv_i_ct_no  TYPE ROIUCP_CMCC-CT_NO, "   
lv_i_wl_no  TYPE ROIUCP_CMCC-WL_NO. "   

  CALL FUNCTION 'OIURV_READ_CMCC_DATA'  "Read Contract Marketing Cost Control Header for selection criteria
    EXPORTING
         I_CMCC_CT_NO = lv_i_cmcc_ct_no
         I_WC_NO = lv_i_wc_no
         I_MP_NO = lv_i_mp_no
         I_CMCC_MP_NO = lv_i_cmcc_mp_no
         I_CMCC_WL_NO = lv_i_cmcc_wl_no
         I_CMCC_WC_NO = lv_i_cmcc_wc_no
         I_CMCC_MATNR = lv_i_cmcc_matnr
         I_EFF_FROM_DT = lv_i_eff_from_dt
         I_EFF_TO_DT = lv_i_eff_to_dt
         I_CT_NO = lv_i_ct_no
         I_WL_NO = lv_i_wl_no
    IMPORTING
         E_COUNT = lv_e_count
    TABLES
         REPODATA = lt_repodata
    EXCEPTIONS
        NONE_FOUND = 1
. " OIURV_READ_CMCC_DATA




ABAP code using 7.40 inline data declarations to call FM OIURV_READ_CMCC_DATA

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 CT_NO FROM ROIUCP_CMCC INTO @DATA(ld_i_cmcc_ct_no).
 
"SELECT single WC_NO FROM ROIUCP_CMCC INTO @DATA(ld_i_wc_no).
 
"SELECT single MP_NO FROM ROIUCP_CMCC INTO @DATA(ld_i_mp_no).
 
"SELECT single MP_NO FROM ROIUCP_CMCC INTO @DATA(ld_i_cmcc_mp_no).
 
"SELECT single WL_NO FROM ROIUCP_CMCC INTO @DATA(ld_i_cmcc_wl_no).
 
"SELECT single WC_NO FROM ROIUCP_CMCC INTO @DATA(ld_i_cmcc_wc_no).
 
"SELECT single MATNR FROM ROIUCP_CMCC INTO @DATA(ld_i_cmcc_matnr).
 
"SELECT single EFF_FROM_DT FROM ROIUCP_CMCC INTO @DATA(ld_i_eff_from_dt).
 
"SELECT single EFF_TO_DT FROM ROIUCP_CMCC INTO @DATA(ld_i_eff_to_dt).
 
"SELECT single CT_NO FROM ROIUCP_CMCC INTO @DATA(ld_i_ct_no).
 
"SELECT single WL_NO FROM ROIUCP_CMCC INTO @DATA(ld_i_wl_no).
 


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!