SAP EVALUATE_FORM__AVE_CONDITION Function Module for Evaluate Formula and Average Condition









EVALUATE_FORM__AVE_CONDITION is a standard evaluate form ave condition SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Evaluate Formula and Average Condition 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 evaluate form ave condition FM, simply by entering the name EVALUATE_FORM__AVE_CONDITION into the relevant SAP transaction such as SE37 or SE38.

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



Function EVALUATE_FORM__AVE_CONDITION 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 'EVALUATE_FORM__AVE_CONDITION'"Evaluate Formula and Average Condition
EXPORTING
I_KOMK = "
I_KOMP = "
I_OICF4 = "
I_KOMV = "
* I_ANALYSIS = ' ' "
* I_READ_UNTIL_DATE = SY-DATUM "
* I_TRY_DIRECT_CONV = "

IMPORTING
E_KOMK = "
E_KOMP = "
E_OICF4 = "
E_KOMV = "

TABLES
XOICF5 = "
XOICF6 = "
* XOIUF6 = "
* XOICFR = "
* XOICER = "
* XOIUFR = "

EXCEPTIONS
QUANTITY_CONVERSION_ERROR = 1 CURRENCY_CONVERSION_ERROR = 2
.



IMPORTING Parameters details for EVALUATE_FORM__AVE_CONDITION

I_KOMK -

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

I_KOMP -

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

I_OICF4 -

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

I_KOMV -

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

I_ANALYSIS -

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

I_READ_UNTIL_DATE -

Data type:
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TRY_DIRECT_CONV -

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

EXPORTING Parameters details for EVALUATE_FORM__AVE_CONDITION

E_KOMK -

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

E_KOMP -

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

E_OICF4 -

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

E_KOMV -

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

TABLES Parameters details for EVALUATE_FORM__AVE_CONDITION

XOICF5 -

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

XOICF6 -

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

XOIUF6 -

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

XOICFR -

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

XOICER -

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

XOIUFR -

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

EXCEPTIONS details

QUANTITY_CONVERSION_ERROR - Quantity conversion fails

Data type:
Optional: No
Call by Reference: Yes

CURRENCY_CONVERSION_ERROR - Currency conversion fails

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for EVALUATE_FORM__AVE_CONDITION 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_komk  TYPE KOMK, "   
lv_i_komk  TYPE KOMK, "   
lt_xoicf5  TYPE STANDARD TABLE OF OICF5, "   
lv_quantity_conversion_error  TYPE OICF5, "   
lv_e_komp  TYPE KOMP, "   
lv_i_komp  TYPE KOMP, "   
lt_xoicf6  TYPE STANDARD TABLE OF OICF6, "   
lv_currency_conversion_error  TYPE OICF6, "   
lt_xoiuf6  TYPE STANDARD TABLE OF OIUF6, "   
lv_e_oicf4  TYPE OICF4, "   
lv_i_oicf4  TYPE OICF4, "   
lv_e_komv  TYPE KOMV, "   
lv_i_komv  TYPE KOMV, "   
lt_xoicfr  TYPE STANDARD TABLE OF OICFR, "   
lt_xoicer  TYPE STANDARD TABLE OF OICER, "   
lv_i_analysis  TYPE OICER, "   ' '
lt_xoiufr  TYPE STANDARD TABLE OF OIUFR, "   
lv_i_read_until_date  TYPE OIUFR, "   SY-DATUM
lv_i_try_direct_conv  TYPE C. "   

  CALL FUNCTION 'EVALUATE_FORM__AVE_CONDITION'  "Evaluate Formula and Average Condition
    EXPORTING
         I_KOMK = lv_i_komk
         I_KOMP = lv_i_komp
         I_OICF4 = lv_i_oicf4
         I_KOMV = lv_i_komv
         I_ANALYSIS = lv_i_analysis
         I_READ_UNTIL_DATE = lv_i_read_until_date
         I_TRY_DIRECT_CONV = lv_i_try_direct_conv
    IMPORTING
         E_KOMK = lv_e_komk
         E_KOMP = lv_e_komp
         E_OICF4 = lv_e_oicf4
         E_KOMV = lv_e_komv
    TABLES
         XOICF5 = lt_xoicf5
         XOICF6 = lt_xoicf6
         XOIUF6 = lt_xoiuf6
         XOICFR = lt_xoicfr
         XOICER = lt_xoicer
         XOIUFR = lt_xoiufr
    EXCEPTIONS
        QUANTITY_CONVERSION_ERROR = 1
        CURRENCY_CONVERSION_ERROR = 2
. " EVALUATE_FORM__AVE_CONDITION




ABAP code using 7.40 inline data declarations to call FM EVALUATE_FORM__AVE_CONDITION

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.

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
DATA(ld_i_analysis) = ' '.
 
 
DATA(ld_i_read_until_date) = SY-DATUM.
 
 


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!