SAP OIC_EVALUATE_FORMULA Function Module for F&A - Prepare and Evaluate Formula (Second Level Analysis optional)









OIC_EVALUATE_FORMULA is a standard oic evaluate formula SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for F&A - Prepare and Evaluate Formula (Second Level Analysis optional) 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 oic evaluate formula FM, simply by entering the name OIC_EVALUATE_FORMULA into the relevant SAP transaction such as SE37 or SE38.

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



Function OIC_EVALUATE_FORMULA 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 'OIC_EVALUATE_FORMULA'"F&A - Prepare and Evaluate Formula (Second Level Analysis optional)
EXPORTING
* IV_SLA_ANALYSIS = 'X' "Single-character flag
IS_KOMK = "Communication Header for Pricing
IS_KOMP = "Pricing Communication Item
IS_KOMV = "Pricing Communications-Condition Record

IMPORTING
ES_KOMK = "Communication Header for Pricing
ES_KOMP = "Pricing Communication Item
ES_KOMV = "Pricing Communications-Condition Record
ES_OICF4 = "Formula Header -Working Structure for Maintenance Dialog

TABLES
* ET_OICF5 = "Formula Term - Working Structure for Maintenance Dialog
* ET_OICF6 = "Formula Term - Working Structure for Maintenance Dialog
* ET_OIUF6 = "Group items
* ET_OICFR = "Formula evaluation results structure
* ET_OICER = "Second level analysis error log
* ET_OIUFR = "E&P structure for second level analysis / detail for groups

EXCEPTIONS
QUANTITY_CONVERSION_ERROR = 1 CURRENCY_CONVERSION_ERROR = 2
.



IMPORTING Parameters details for OIC_EVALUATE_FORMULA

IV_SLA_ANALYSIS - Single-character flag

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

IS_KOMK - Communication Header for Pricing

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

IS_KOMP - Pricing Communication Item

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

IS_KOMV - Pricing Communications-Condition Record

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

EXPORTING Parameters details for OIC_EVALUATE_FORMULA

ES_KOMK - Communication Header for Pricing

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

ES_KOMP - Pricing Communication Item

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

ES_KOMV - Pricing Communications-Condition Record

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

ES_OICF4 - Formula Header -Working Structure for Maintenance Dialog

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

TABLES Parameters details for OIC_EVALUATE_FORMULA

ET_OICF5 - Formula Term - Working Structure for Maintenance Dialog

Data type: OICF5
Optional: Yes
Call by Reference: Yes

ET_OICF6 - Formula Term - Working Structure for Maintenance Dialog

Data type: OICF6
Optional: Yes
Call by Reference: Yes

ET_OIUF6 - Group items

Data type: OIUF6
Optional: Yes
Call by Reference: Yes

ET_OICFR - Formula evaluation results structure

Data type: OICFR
Optional: Yes
Call by Reference: Yes

ET_OICER - Second level analysis error log

Data type: OICER
Optional: Yes
Call by Reference: Yes

ET_OIUFR - E&P structure for second level analysis / detail for groups

Data type: OIUFR
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

QUANTITY_CONVERSION_ERROR -

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

CURRENCY_CONVERSION_ERROR -

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

Copy and paste ABAP code example for OIC_EVALUATE_FORMULA 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_es_komk  TYPE KOMK, "   
lt_et_oicf5  TYPE STANDARD TABLE OF OICF5, "   
lv_iv_sla_analysis  TYPE CHAR1, "   'X'
lv_quantity_conversion_error  TYPE CHAR1, "   
lv_es_komp  TYPE KOMP, "   
lv_is_komk  TYPE KOMK, "   
lt_et_oicf6  TYPE STANDARD TABLE OF OICF6, "   
lv_currency_conversion_error  TYPE OICF6, "   
lv_es_komv  TYPE KOMV, "   
lv_is_komp  TYPE KOMP, "   
lt_et_oiuf6  TYPE STANDARD TABLE OF OIUF6, "   
lv_is_komv  TYPE KOMV, "   
lv_es_oicf4  TYPE OICF4, "   
lt_et_oicfr  TYPE STANDARD TABLE OF OICFR, "   
lt_et_oicer  TYPE STANDARD TABLE OF OICER, "   
lt_et_oiufr  TYPE STANDARD TABLE OF OIUFR. "   

  CALL FUNCTION 'OIC_EVALUATE_FORMULA'  "F&A - Prepare and Evaluate Formula (Second Level Analysis optional)
    EXPORTING
         IV_SLA_ANALYSIS = lv_iv_sla_analysis
         IS_KOMK = lv_is_komk
         IS_KOMP = lv_is_komp
         IS_KOMV = lv_is_komv
    IMPORTING
         ES_KOMK = lv_es_komk
         ES_KOMP = lv_es_komp
         ES_KOMV = lv_es_komv
         ES_OICF4 = lv_es_oicf4
    TABLES
         ET_OICF5 = lt_et_oicf5
         ET_OICF6 = lt_et_oicf6
         ET_OIUF6 = lt_et_oiuf6
         ET_OICFR = lt_et_oicfr
         ET_OICER = lt_et_oicer
         ET_OIUFR = lt_et_oiufr
    EXCEPTIONS
        QUANTITY_CONVERSION_ERROR = 1
        CURRENCY_CONVERSION_ERROR = 2
. " OIC_EVALUATE_FORMULA




ABAP code using 7.40 inline data declarations to call FM OIC_EVALUATE_FORMULA

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_iv_sla_analysis) = 'X'.
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!