SAP CPE_FORMULA_EVALUATION_TRIGGER Function Module for CPE_D - Trigger CPE Formulas Evaluation
CPE_FORMULA_EVALUATION_TRIGGER is a standard cpe formula evaluation trigger SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for CPE_D - Trigger CPE Formulas Evaluation 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 cpe formula evaluation trigger FM, simply by entering the name CPE_FORMULA_EVALUATION_TRIGGER into the relevant SAP transaction such as SE37 or SE38.
Function Group: CPE_FORMULA_TRIGGER
Program Name: SAPLCPE_FORMULA_TRIGGER
Main Program: SAPLCPE_FORMULA_TRIGGER
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function CPE_FORMULA_EVALUATION_TRIGGER 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 'CPE_FORMULA_EVALUATION_TRIGGER'"CPE_D - Trigger CPE Formulas Evaluation.
EXPORTING
IS_CALLER_DATA = "CPE Caller Data for Formula Evaluation
IT_TERMROUNDIN_WRK = "CPE Term - Tab. Type Work for Input for Rounding
IT_PERIODDTIN_WRK = "CPE Term - Tab. Type Work for Changed Input for Period Det.
* IT_FORMREF = "CPE - Table Type for Formula Reference Document
* IV_LOG_PRIORITY = 4 "CPE - Log: Priority of Log Entry
* IV_CALLED_REMOTELY = 'X' "boolean variable (X=true, -=false, space=unknown)
IV_EXTENSION_XML = "CPE Extension in XML format
IT_FORMDOC_WRK = "CPE Formula - Tab. Type Work for Grouping and General Result
IT_FORMINPUT_WRK = "CPE Formula -Tab. Type Work for Changed Input for Gen. Data
IT_FORMCONVIN_WRK = "CPE Formula - Tab. Type Work for Input for Conversion
IT_FORMROUNDIN_WRK = "CPE Formula - Tab. Type Work for Input for Rounding
IT_TERMGRPOUT_WRK = "CPE Term - Tab. Type Work for Chang. Grouping/Gen. Term Res.
* IT_TERMOUT_WRK = "CPE Term - Table Type Work Structure for General Result
IT_TERMCONVIN_WRK = "CPE Term - Tab. Type Work for Input for Conversion
IT_TERMINPUT_WRK = "CPE Term - Tab. Type Work for Changed Input for Gen. Data
IMPORTING
EV_EVALUATION_ERROR = "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
EV_EXTENSION_XML = "CPE Extension in XML format
ET_FORMDOC_WRK = "CPE Formula - Tab. Type Work for Grouping and General Result
ET_FORMCONVOUT_WRK = "CPE Formula - Tab. Type Work for Result of Conversion
ET_TERMGRPOUT_WRK = "CPE Term - Tab. Type Work for Chang. Grouping/Gen. Term Res.
ET_TERMOUT_WRK = "CPE Term - Tab. Type Work for General Result
ET_TERMCONVOUT_WRK = "CPE Term - Tab. Type Work for Result of Conversion
ET_PERIODDTOUT_WRK = "CPE Term - Tab. Type Work for Result of Period Determination
ET_PDT_PRCQUOT_WRK = "Table Type of Work Structure for Price Quotation Data
ET_LOG = "CPE - Table for Log Data in Documents
IMPORTING Parameters details for CPE_FORMULA_EVALUATION_TRIGGER
IS_CALLER_DATA - CPE Caller Data for Formula Evaluation
Data type: CPET_FE_CALLER_DATAOptional: No
Call by Reference: No ( called with pass by value option)
IT_TERMROUNDIN_WRK - CPE Term - Tab. Type Work for Input for Rounding
Data type: CPET_TERMROUNDIN_WRK_TABOptional: No
Call by Reference: No ( called with pass by value option)
IT_PERIODDTIN_WRK - CPE Term - Tab. Type Work for Changed Input for Period Det.
Data type: CPET_PERIODDTIN_WRK_TABOptional: No
Call by Reference: No ( called with pass by value option)
IT_FORMREF - CPE - Table Type for Formula Reference Document
Data type: CPET_FORMREF_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IV_LOG_PRIORITY - CPE - Log: Priority of Log Entry
Data type: CPET_LOG_PRIORITYDefault: 4
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_CALLED_REMOTELY - boolean variable (X=true, -=false, space=unknown)
Data type: BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
IV_EXTENSION_XML - CPE Extension in XML format
Data type: STRINGOptional: No
Call by Reference: No ( called with pass by value option)
IT_FORMDOC_WRK - CPE Formula - Tab. Type Work for Grouping and General Result
Data type: CPET_FORMDOC_WRK_TABOptional: No
Call by Reference: No ( called with pass by value option)
IT_FORMINPUT_WRK - CPE Formula -Tab. Type Work for Changed Input for Gen. Data
Data type: CPET_FORMINPUT_WRK_TABOptional: No
Call by Reference: No ( called with pass by value option)
IT_FORMCONVIN_WRK - CPE Formula - Tab. Type Work for Input for Conversion
Data type: CPET_FORMCONVIN_WRK_TABOptional: No
Call by Reference: No ( called with pass by value option)
IT_FORMROUNDIN_WRK - CPE Formula - Tab. Type Work for Input for Rounding
Data type: CPET_FORMROUNDIN_WRK_TABOptional: No
Call by Reference: No ( called with pass by value option)
IT_TERMGRPOUT_WRK - CPE Term - Tab. Type Work for Chang. Grouping/Gen. Term Res.
Data type: CPET_TERMGRPOUT_WRK_TABOptional: No
Call by Reference: No ( called with pass by value option)
IT_TERMOUT_WRK - CPE Term - Table Type Work Structure for General Result
Data type: CPET_TERMOUT_WRK_TABOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_TERMCONVIN_WRK - CPE Term - Tab. Type Work for Input for Conversion
Data type: CPET_TERMCONVIN_WRK_TABOptional: No
Call by Reference: No ( called with pass by value option)
IT_TERMINPUT_WRK - CPE Term - Tab. Type Work for Changed Input for Gen. Data
Data type: CPET_TERMINPUT_WRK_TABOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CPE_FORMULA_EVALUATION_TRIGGER
EV_EVALUATION_ERROR - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
Data type: BOOLE_DOptional: No
Call by Reference: No ( called with pass by value option)
EV_EXTENSION_XML - CPE Extension in XML format
Data type: STRINGOptional: No
Call by Reference: No ( called with pass by value option)
ET_FORMDOC_WRK - CPE Formula - Tab. Type Work for Grouping and General Result
Data type: CPET_FORMDOC_WRK_TABOptional: No
Call by Reference: No ( called with pass by value option)
ET_FORMCONVOUT_WRK - CPE Formula - Tab. Type Work for Result of Conversion
Data type: CPET_FORMCONVOUT_WRK_TABOptional: No
Call by Reference: No ( called with pass by value option)
ET_TERMGRPOUT_WRK - CPE Term - Tab. Type Work for Chang. Grouping/Gen. Term Res.
Data type: CPET_TERMGRPOUT_WRK_TABOptional: No
Call by Reference: No ( called with pass by value option)
ET_TERMOUT_WRK - CPE Term - Tab. Type Work for General Result
Data type: CPET_TERMOUT_WRK_TABOptional: No
Call by Reference: No ( called with pass by value option)
ET_TERMCONVOUT_WRK - CPE Term - Tab. Type Work for Result of Conversion
Data type: CPET_TERMCONVOUT_WRK_TABOptional: No
Call by Reference: No ( called with pass by value option)
ET_PERIODDTOUT_WRK - CPE Term - Tab. Type Work for Result of Period Determination
Data type: CPET_PERIODDTOUT_WRK_TABOptional: No
Call by Reference: No ( called with pass by value option)
ET_PDT_PRCQUOT_WRK - Table Type of Work Structure for Price Quotation Data
Data type: CPET_PDT_PRCQUOT_WRK_TABOptional: No
Call by Reference: No ( called with pass by value option)
ET_LOG - CPE - Table for Log Data in Documents
Data type: CPET_LOG_TABOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CPE_FORMULA_EVALUATION_TRIGGER 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_is_caller_data | TYPE CPET_FE_CALLER_DATA, " | |||
| lv_ev_evaluation_error | TYPE BOOLE_D, " | |||
| lv_ev_extension_xml | TYPE STRING, " | |||
| lv_it_termroundin_wrk | TYPE CPET_TERMROUNDIN_WRK_TAB, " | |||
| lv_it_perioddtin_wrk | TYPE CPET_PERIODDTIN_WRK_TAB, " | |||
| lv_it_formref | TYPE CPET_FORMREF_TAB, " | |||
| lv_iv_log_priority | TYPE CPET_LOG_PRIORITY, " 4 | |||
| lv_iv_called_remotely | TYPE BOOLEAN, " 'X' | |||
| lv_iv_extension_xml | TYPE STRING, " | |||
| lv_et_formdoc_wrk | TYPE CPET_FORMDOC_WRK_TAB, " | |||
| lv_it_formdoc_wrk | TYPE CPET_FORMDOC_WRK_TAB, " | |||
| lv_it_forminput_wrk | TYPE CPET_FORMINPUT_WRK_TAB, " | |||
| lv_et_formconvout_wrk | TYPE CPET_FORMCONVOUT_WRK_TAB, " | |||
| lv_et_termgrpout_wrk | TYPE CPET_TERMGRPOUT_WRK_TAB, " | |||
| lv_it_formconvin_wrk | TYPE CPET_FORMCONVIN_WRK_TAB, " | |||
| lv_et_termout_wrk | TYPE CPET_TERMOUT_WRK_TAB, " | |||
| lv_it_formroundin_wrk | TYPE CPET_FORMROUNDIN_WRK_TAB, " | |||
| lv_it_termgrpout_wrk | TYPE CPET_TERMGRPOUT_WRK_TAB, " | |||
| lv_et_termconvout_wrk | TYPE CPET_TERMCONVOUT_WRK_TAB, " | |||
| lv_it_termout_wrk | TYPE CPET_TERMOUT_WRK_TAB, " | |||
| lv_et_perioddtout_wrk | TYPE CPET_PERIODDTOUT_WRK_TAB, " | |||
| lv_it_termconvin_wrk | TYPE CPET_TERMCONVIN_WRK_TAB, " | |||
| lv_et_pdt_prcquot_wrk | TYPE CPET_PDT_PRCQUOT_WRK_TAB, " | |||
| lv_et_log | TYPE CPET_LOG_TAB, " | |||
| lv_it_terminput_wrk | TYPE CPET_TERMINPUT_WRK_TAB. " |
|   CALL FUNCTION 'CPE_FORMULA_EVALUATION_TRIGGER' "CPE_D - Trigger CPE Formulas Evaluation |
| EXPORTING | ||
| IS_CALLER_DATA | = lv_is_caller_data | |
| IT_TERMROUNDIN_WRK | = lv_it_termroundin_wrk | |
| IT_PERIODDTIN_WRK | = lv_it_perioddtin_wrk | |
| IT_FORMREF | = lv_it_formref | |
| IV_LOG_PRIORITY | = lv_iv_log_priority | |
| IV_CALLED_REMOTELY | = lv_iv_called_remotely | |
| IV_EXTENSION_XML | = lv_iv_extension_xml | |
| IT_FORMDOC_WRK | = lv_it_formdoc_wrk | |
| IT_FORMINPUT_WRK | = lv_it_forminput_wrk | |
| IT_FORMCONVIN_WRK | = lv_it_formconvin_wrk | |
| IT_FORMROUNDIN_WRK | = lv_it_formroundin_wrk | |
| IT_TERMGRPOUT_WRK | = lv_it_termgrpout_wrk | |
| IT_TERMOUT_WRK | = lv_it_termout_wrk | |
| IT_TERMCONVIN_WRK | = lv_it_termconvin_wrk | |
| IT_TERMINPUT_WRK | = lv_it_terminput_wrk | |
| IMPORTING | ||
| EV_EVALUATION_ERROR | = lv_ev_evaluation_error | |
| EV_EXTENSION_XML | = lv_ev_extension_xml | |
| ET_FORMDOC_WRK | = lv_et_formdoc_wrk | |
| ET_FORMCONVOUT_WRK | = lv_et_formconvout_wrk | |
| ET_TERMGRPOUT_WRK | = lv_et_termgrpout_wrk | |
| ET_TERMOUT_WRK | = lv_et_termout_wrk | |
| ET_TERMCONVOUT_WRK | = lv_et_termconvout_wrk | |
| ET_PERIODDTOUT_WRK | = lv_et_perioddtout_wrk | |
| ET_PDT_PRCQUOT_WRK | = lv_et_pdt_prcquot_wrk | |
| ET_LOG | = lv_et_log | |
| . " CPE_FORMULA_EVALUATION_TRIGGER | ||
ABAP code using 7.40 inline data declarations to call FM CPE_FORMULA_EVALUATION_TRIGGER
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_log_priority) | = 4. | |||
| DATA(ld_iv_called_remotely) | = 'X'. | |||
Search for further information about these or an SAP related objects