SAP OIU_VA_AVERAGE_WELL_TEST Function Module for Average Well Test (AT) Theoretical Calculation Method









OIU_VA_AVERAGE_WELL_TEST is a standard oiu va average well test SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Average Well Test (AT) Theoretical Calculation Method 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 va average well test FM, simply by entering the name OIU_VA_AVERAGE_WELL_TEST into the relevant SAP transaction such as SE37 or SE38.

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



Function OIU_VA_AVERAGE_WELL_TEST 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_VA_AVERAGE_WELL_TEST'"Average Well Test (AT) Theoretical Calculation Method
EXPORTING
I_EFF_FROM_DT = "
* I_PRD_HRS = "Number of Hours
* I_VT_CD = "
I_REQUEST = "
I_EFF_TO_DT = "
I_WL_NO = "
I_WC_NO = "
* I_RTO_CD = "
* I_WT_MAJPD_CD = "
I_STRM_TYPE_CD = "
* I_TST_QY = "
I_MAJPD = "

IMPORTING
E_THEO_VOL = "Volume and Factor

EXCEPTIONS
FATAL_ERROR = 1 WARNING_ERROR = 2
.



IMPORTING Parameters details for OIU_VA_AVERAGE_WELL_TEST

I_EFF_FROM_DT -

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

I_PRD_HRS - Number of Hours

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

I_VT_CD -

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

I_REQUEST -

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

I_EFF_TO_DT -

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

I_WL_NO -

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

I_WC_NO -

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

I_RTO_CD -

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

I_WT_MAJPD_CD -

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

I_STRM_TYPE_CD -

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

I_TST_QY -

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

I_MAJPD -

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

EXPORTING Parameters details for OIU_VA_AVERAGE_WELL_TEST

E_THEO_VOL - Volume and Factor

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

EXCEPTIONS details

FATAL_ERROR -

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

WARNING_ERROR -

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

Copy and paste ABAP code example for OIU_VA_AVERAGE_WELL_TEST 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_theo_vol  TYPE OIUPR_VOL_FAC, "   
lv_fatal_error  TYPE OIUPR_VOL_FAC, "   
lv_i_eff_from_dt  TYPE OIU_PR_WCTCM-EFF_FROM_DT, "   
lv_i_prd_hrs  TYPE OIU_PR_WCDT-HRS, "   
lv_i_vt_cd  TYPE ROIU_PR_DNAP-VT_CD, "   
lv_i_request  TYPE ROIU_PR_REQUEST, "   
lv_i_eff_to_dt  TYPE OIU_PR_WCTCM-EFF_TO_DT, "   
lv_warning_error  TYPE OIU_PR_WCTCM, "   
lv_i_wl_no  TYPE OIU_PR_WCTCM-WL_NO, "   
lv_i_wc_no  TYPE OIU_PR_WCTCM-WC_NO, "   
lv_i_rto_cd  TYPE OIU_PR_WCTCM-RTO_CD, "   
lv_i_wt_majpd_cd  TYPE OIU_PR_WCTCM-WT_MAJPD_CD, "   
lv_i_strm_type_cd  TYPE OIU_PR_WCDT-STRM_TYPE_CD, "   
lv_i_tst_qy  TYPE OIU_PR_WCTCM-TST_QY, "   
lv_i_majpd  TYPE ROIU_PR_REQUEST-MAJPD_CD. "   

  CALL FUNCTION 'OIU_VA_AVERAGE_WELL_TEST'  "Average Well Test (AT) Theoretical Calculation Method
    EXPORTING
         I_EFF_FROM_DT = lv_i_eff_from_dt
         I_PRD_HRS = lv_i_prd_hrs
         I_VT_CD = lv_i_vt_cd
         I_REQUEST = lv_i_request
         I_EFF_TO_DT = lv_i_eff_to_dt
         I_WL_NO = lv_i_wl_no
         I_WC_NO = lv_i_wc_no
         I_RTO_CD = lv_i_rto_cd
         I_WT_MAJPD_CD = lv_i_wt_majpd_cd
         I_STRM_TYPE_CD = lv_i_strm_type_cd
         I_TST_QY = lv_i_tst_qy
         I_MAJPD = lv_i_majpd
    IMPORTING
         E_THEO_VOL = lv_e_theo_vol
    EXCEPTIONS
        FATAL_ERROR = 1
        WARNING_ERROR = 2
. " OIU_VA_AVERAGE_WELL_TEST




ABAP code using 7.40 inline data declarations to call FM OIU_VA_AVERAGE_WELL_TEST

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 EFF_FROM_DT FROM OIU_PR_WCTCM INTO @DATA(ld_i_eff_from_dt).
 
"SELECT single HRS FROM OIU_PR_WCDT INTO @DATA(ld_i_prd_hrs).
 
"SELECT single VT_CD FROM ROIU_PR_DNAP INTO @DATA(ld_i_vt_cd).
 
 
"SELECT single EFF_TO_DT FROM OIU_PR_WCTCM INTO @DATA(ld_i_eff_to_dt).
 
 
"SELECT single WL_NO FROM OIU_PR_WCTCM INTO @DATA(ld_i_wl_no).
 
"SELECT single WC_NO FROM OIU_PR_WCTCM INTO @DATA(ld_i_wc_no).
 
"SELECT single RTO_CD FROM OIU_PR_WCTCM INTO @DATA(ld_i_rto_cd).
 
"SELECT single WT_MAJPD_CD FROM OIU_PR_WCTCM INTO @DATA(ld_i_wt_majpd_cd).
 
"SELECT single STRM_TYPE_CD FROM OIU_PR_WCDT INTO @DATA(ld_i_strm_type_cd).
 
"SELECT single TST_QY FROM OIU_PR_WCTCM INTO @DATA(ld_i_tst_qy).
 
"SELECT single MAJPD_CD FROM ROIU_PR_REQUEST INTO @DATA(ld_i_majpd).
 


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!