SAP OIU_CHECK_DN_LINK_FOR_WC_MP Function Module for Check that a measurement point or well completion is valid for a DN









OIU_CHECK_DN_LINK_FOR_WC_MP is a standard oiu check dn link for wc mp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Check that a measurement point or well completion is valid for a DN 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 oiu check dn link for wc mp FM, simply by entering the name OIU_CHECK_DN_LINK_FOR_WC_MP into the relevant SAP transaction such as SE37 or SE38.

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



Function OIU_CHECK_DN_LINK_FOR_WC_MP 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 'OIU_CHECK_DN_LINK_FOR_WC_MP'"Check that a measurement point or well completion is valid for a DN
EXPORTING
I_DN_NO = "Delivery network number
* I_MP_NO = "Measurement Point Number
* I_WL_NO = "Well ID Number
* I_WC_NO = "Well Completion Number
I_EFF_FROM = "Effective From Date
I_EFF_TO = "Effective To Date

IMPORTING
E_EFF_TO = "Effective To Date

EXCEPTIONS
INVALID_INPUTS = 1 NOT_VALID = 2
.



IMPORTING Parameters details for OIU_CHECK_DN_LINK_FOR_WC_MP

I_DN_NO - Delivery network number

Data type: OIU_PR_DN-DN_NO
Optional: No
Call by Reference: Yes

I_MP_NO - Measurement Point Number

Data type: OIU_PR_MP-MP_NO
Optional: Yes
Call by Reference: Yes

I_WL_NO - Well ID Number

Data type: OIU_PR_WELL-WL_NO
Optional: Yes
Call by Reference: Yes

I_WC_NO - Well Completion Number

Data type: OIU_PR_WC-WC_NO
Optional: Yes
Call by Reference: Yes

I_EFF_FROM - Effective From Date

Data type: OIU_PR_DN_LINK-EFF_FROM_DT
Optional: No
Call by Reference: Yes

I_EFF_TO - Effective To Date

Data type: OIU_PR_DN_LINK-EFF_TO_DT
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for OIU_CHECK_DN_LINK_FOR_WC_MP

E_EFF_TO - Effective To Date

Data type: OIU_PR_DN_LINK-EFF_TO_DT
Optional: No
Call by Reference: Yes

EXCEPTIONS details

INVALID_INPUTS -

Data type:
Optional: No
Call by Reference: Yes

NOT_VALID -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for OIU_CHECK_DN_LINK_FOR_WC_MP 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_i_dn_no  TYPE OIU_PR_DN-DN_NO, "   
lv_e_eff_to  TYPE OIU_PR_DN_LINK-EFF_TO_DT, "   
lv_invalid_inputs  TYPE OIU_PR_DN_LINK, "   
lv_i_mp_no  TYPE OIU_PR_MP-MP_NO, "   
lv_not_valid  TYPE OIU_PR_MP, "   
lv_i_wl_no  TYPE OIU_PR_WELL-WL_NO, "   
lv_i_wc_no  TYPE OIU_PR_WC-WC_NO, "   
lv_i_eff_from  TYPE OIU_PR_DN_LINK-EFF_FROM_DT, "   
lv_i_eff_to  TYPE OIU_PR_DN_LINK-EFF_TO_DT. "   

  CALL FUNCTION 'OIU_CHECK_DN_LINK_FOR_WC_MP'  "Check that a measurement point or well completion is valid for a DN
    EXPORTING
         I_DN_NO = lv_i_dn_no
         I_MP_NO = lv_i_mp_no
         I_WL_NO = lv_i_wl_no
         I_WC_NO = lv_i_wc_no
         I_EFF_FROM = lv_i_eff_from
         I_EFF_TO = lv_i_eff_to
    IMPORTING
         E_EFF_TO = lv_e_eff_to
    EXCEPTIONS
        INVALID_INPUTS = 1
        NOT_VALID = 2
. " OIU_CHECK_DN_LINK_FOR_WC_MP




ABAP code using 7.40 inline data declarations to call FM OIU_CHECK_DN_LINK_FOR_WC_MP

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 DN_NO FROM OIU_PR_DN INTO @DATA(ld_i_dn_no).
 
"SELECT single EFF_TO_DT FROM OIU_PR_DN_LINK INTO @DATA(ld_e_eff_to).
 
 
"SELECT single MP_NO FROM OIU_PR_MP INTO @DATA(ld_i_mp_no).
 
 
"SELECT single WL_NO FROM OIU_PR_WELL INTO @DATA(ld_i_wl_no).
 
"SELECT single WC_NO FROM OIU_PR_WC INTO @DATA(ld_i_wc_no).
 
"SELECT single EFF_FROM_DT FROM OIU_PR_DN_LINK INTO @DATA(ld_i_eff_from).
 
"SELECT single EFF_TO_DT FROM OIU_PR_DN_LINK INTO @DATA(ld_i_eff_to).
 


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!