SAP OIU_OUT_TOL_COMP Function Module for Computation for Out of Tolerance
OIU_OUT_TOL_COMP is a standard oiu out tol comp SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Computation for Out of Tolerance 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 out tol comp FM, simply by entering the name OIU_OUT_TOL_COMP into the relevant SAP transaction such as SE37 or SE38.
Function Group: OIU_CONTRACT_VOL_MP
Program Name: SAPLOIU_CONTRACT_VOL_MP
Main Program: SAPLOIU_CONTRACT_VOL_MP
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function OIU_OUT_TOL_COMP 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_OUT_TOL_COMP'"Computation for Out of Tolerance.
EXPORTING
I_DN_NO = "Delivery network number
I_VOL = "Standard volume
I_SA_DT = "Sales date
I_PIPLN_ACTL = "pipeline actual energy value or volume
I_PIPLN_IMB = "Plant/pipeline imbalance energy value or volume
I_OVRD_NOM = "override nominations quantity
IMPORTING
E_ALLOC_DIFF = "Production/Allocation Difference
E_CA_ALLOC_TOL_PC = "CA Allocation Tolerance Percentage
E_OUT_TOL_FLG = "Out of Tolerance Flag
IMPORTING Parameters details for OIU_OUT_TOL_COMP
I_DN_NO - Delivery network number
Data type: OIU_SB_CAMPH-DN_NOOptional: No
Call by Reference: No ( called with pass by value option)
I_VOL - Standard volume
Data type: ROIU_SB_CAMPH-STD_VOLOptional: No
Call by Reference: No ( called with pass by value option)
I_SA_DT - Sales date
Data type: OIU_SB_CAMPH-SA_DTOptional: No
Call by Reference: No ( called with pass by value option)
I_PIPLN_ACTL - pipeline actual energy value or volume
Data type: ROIU_SB_CAMPGD-PIPLN_ACTL_QYOptional: No
Call by Reference: No ( called with pass by value option)
I_PIPLN_IMB - Plant/pipeline imbalance energy value or volume
Data type: ROIU_SB_CAMPGD-PIPLN_IMB_QYOptional: No
Call by Reference: No ( called with pass by value option)
I_OVRD_NOM - override nominations quantity
Data type: ROIU_SB_CAMPGD-OVRD_NOM_QYOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for OIU_OUT_TOL_COMP
E_ALLOC_DIFF - Production/Allocation Difference
Data type: ROIU_SB_CAMPH-PROD_ALLOC_DIFOptional: No
Call by Reference: No ( called with pass by value option)
E_CA_ALLOC_TOL_PC - CA Allocation Tolerance Percentage
Data type: ROIU_SB_CAMPH-CA_ALLOC_TOL_PCOptional: No
Call by Reference: No ( called with pass by value option)
E_OUT_TOL_FLG - Out of Tolerance Flag
Data type: ROIU_SB_CAMPH-OUT_TOL_FLGOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for OIU_OUT_TOL_COMP 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_SB_CAMPH-DN_NO, " | |||
| lv_e_alloc_diff | TYPE ROIU_SB_CAMPH-PROD_ALLOC_DIF, " | |||
| lv_i_vol | TYPE ROIU_SB_CAMPH-STD_VOL, " | |||
| lv_e_ca_alloc_tol_pc | TYPE ROIU_SB_CAMPH-CA_ALLOC_TOL_PC, " | |||
| lv_i_sa_dt | TYPE OIU_SB_CAMPH-SA_DT, " | |||
| lv_e_out_tol_flg | TYPE ROIU_SB_CAMPH-OUT_TOL_FLG, " | |||
| lv_i_pipln_actl | TYPE ROIU_SB_CAMPGD-PIPLN_ACTL_QY, " | |||
| lv_i_pipln_imb | TYPE ROIU_SB_CAMPGD-PIPLN_IMB_QY, " | |||
| lv_i_ovrd_nom | TYPE ROIU_SB_CAMPGD-OVRD_NOM_QY. " |
|   CALL FUNCTION 'OIU_OUT_TOL_COMP' "Computation for Out of Tolerance |
| EXPORTING | ||
| I_DN_NO | = lv_i_dn_no | |
| I_VOL | = lv_i_vol | |
| I_SA_DT | = lv_i_sa_dt | |
| I_PIPLN_ACTL | = lv_i_pipln_actl | |
| I_PIPLN_IMB | = lv_i_pipln_imb | |
| I_OVRD_NOM | = lv_i_ovrd_nom | |
| IMPORTING | ||
| E_ALLOC_DIFF | = lv_e_alloc_diff | |
| E_CA_ALLOC_TOL_PC | = lv_e_ca_alloc_tol_pc | |
| E_OUT_TOL_FLG | = lv_e_out_tol_flg | |
| . " OIU_OUT_TOL_COMP | ||
ABAP code using 7.40 inline data declarations to call FM OIU_OUT_TOL_COMP
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_SB_CAMPH INTO @DATA(ld_i_dn_no). | ||||
| "SELECT single PROD_ALLOC_DIF FROM ROIU_SB_CAMPH INTO @DATA(ld_e_alloc_diff). | ||||
| "SELECT single STD_VOL FROM ROIU_SB_CAMPH INTO @DATA(ld_i_vol). | ||||
| "SELECT single CA_ALLOC_TOL_PC FROM ROIU_SB_CAMPH INTO @DATA(ld_e_ca_alloc_tol_pc). | ||||
| "SELECT single SA_DT FROM OIU_SB_CAMPH INTO @DATA(ld_i_sa_dt). | ||||
| "SELECT single OUT_TOL_FLG FROM ROIU_SB_CAMPH INTO @DATA(ld_e_out_tol_flg). | ||||
| "SELECT single PIPLN_ACTL_QY FROM ROIU_SB_CAMPGD INTO @DATA(ld_i_pipln_actl). | ||||
| "SELECT single PIPLN_IMB_QY FROM ROIU_SB_CAMPGD INTO @DATA(ld_i_pipln_imb). | ||||
| "SELECT single OVRD_NOM_QY FROM ROIU_SB_CAMPGD INTO @DATA(ld_i_ovrd_nom). | ||||
Search for further information about these or an SAP related objects