SAP THXE_ITEMCVCALC_CLEAN_PRICE Function Module for Clean Price Value Calculator
THXE_ITEMCVCALC_CLEAN_PRICE is a standard thxe itemcvcalc clean price SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Clean Price Value Calculator 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 thxe itemcvcalc clean price FM, simply by entering the name THXE_ITEMCVCALC_CLEAN_PRICE into the relevant SAP transaction such as SE37 or SE38.
Function Group: THXE_ITEMCVCALC_METHODS
Program Name: SAPLTHXE_ITEMCVCALC_METHODS
Main Program: SAPLTHXE_ITEMCVCALC_METHODS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function THXE_ITEMCVCALC_CLEAN_PRICE 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 'THXE_ITEMCVCALC_CLEAN_PRICE'"Clean Price Value Calculator.
EXPORTING
IV_EVALDATE = "Evaluation date
IV_HORIZON = "Horizon Date
IV_TESTKEYDATE = "Test Key Date
IV_RESULTCURRENCY = "Currency Key
IS_SFGDT = "SFGDT Structure
IS_ADHOC_MD = "Structure for ADHOC Market Data
IO_HE_LOG = "Effectiveness Test Logs
IO_PROTOCOL_HANDLER = "Protocol Manager
IS_MRA_PARAM = "MRA Parameters
IMPORTING
EV_ITEMCV_VALUE = "Field of type FLTP
EV_ITEMCV_CURRENCY = "Currency Key
ET_LOG = "RM: Table Type for Log
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for THXE_ITEMCVCALC_CLEAN_PRICE
IV_EVALDATE - Evaluation date
Data type: DOptional: No
Call by Reference: Yes
IV_HORIZON - Horizon Date
Data type: DOptional: No
Call by Reference: Yes
IV_TESTKEYDATE - Test Key Date
Data type: DOptional: No
Call by Reference: Yes
IV_RESULTCURRENCY - Currency Key
Data type: WAERSOptional: No
Call by Reference: Yes
IS_SFGDT - SFGDT Structure
Data type: JBRS_SFGDTOptional: No
Call by Reference: Yes
IS_ADHOC_MD - Structure for ADHOC Market Data
Data type: TMDS_ADHOC_MDOptional: No
Call by Reference: Yes
IO_HE_LOG - Effectiveness Test Logs
Data type: CL_THXE_EFFECTIVENESS_LOGOptional: No
Call by Reference: Yes
IO_PROTOCOL_HANDLER - Protocol Manager
Data type: CL_PROTOCOL_HANDLER_TRPOptional: No
Call by Reference: Yes
IS_MRA_PARAM - MRA Parameters
Data type: THXES_MRA_PARAMETERSOptional: No
Call by Reference: Yes
EXPORTING Parameters details for THXE_ITEMCVCALC_CLEAN_PRICE
EV_ITEMCV_VALUE - Field of type FLTP
Data type: FLOATOptional: No
Call by Reference: Yes
EV_ITEMCV_CURRENCY - Currency Key
Data type: WAERSOptional: No
Call by Reference: Yes
ET_LOG - RM: Table Type for Log
Data type: VTVDPROT_TOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for THXE_ITEMCVCALC_CLEAN_PRICE 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_error | TYPE STRING, " | |||
| lv_iv_evaldate | TYPE D, " | |||
| lv_ev_itemcv_value | TYPE FLOAT, " | |||
| lv_iv_horizon | TYPE D, " | |||
| lv_ev_itemcv_currency | TYPE WAERS, " | |||
| lv_et_log | TYPE VTVDPROT_T, " | |||
| lv_iv_testkeydate | TYPE D, " | |||
| lv_iv_resultcurrency | TYPE WAERS, " | |||
| lv_is_sfgdt | TYPE JBRS_SFGDT, " | |||
| lv_is_adhoc_md | TYPE TMDS_ADHOC_MD, " | |||
| lv_io_he_log | TYPE CL_THXE_EFFECTIVENESS_LOG, " | |||
| lv_io_protocol_handler | TYPE CL_PROTOCOL_HANDLER_TRP, " | |||
| lv_is_mra_param | TYPE THXES_MRA_PARAMETERS. " |
|   CALL FUNCTION 'THXE_ITEMCVCALC_CLEAN_PRICE' "Clean Price Value Calculator |
| EXPORTING | ||
| IV_EVALDATE | = lv_iv_evaldate | |
| IV_HORIZON | = lv_iv_horizon | |
| IV_TESTKEYDATE | = lv_iv_testkeydate | |
| IV_RESULTCURRENCY | = lv_iv_resultcurrency | |
| IS_SFGDT | = lv_is_sfgdt | |
| IS_ADHOC_MD | = lv_is_adhoc_md | |
| IO_HE_LOG | = lv_io_he_log | |
| IO_PROTOCOL_HANDLER | = lv_io_protocol_handler | |
| IS_MRA_PARAM | = lv_is_mra_param | |
| IMPORTING | ||
| EV_ITEMCV_VALUE | = lv_ev_itemcv_value | |
| EV_ITEMCV_CURRENCY | = lv_ev_itemcv_currency | |
| ET_LOG | = lv_et_log | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " THXE_ITEMCVCALC_CLEAN_PRICE | ||
ABAP code using 7.40 inline data declarations to call FM THXE_ITEMCVCALC_CLEAN_PRICE
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.Search for further information about these or an SAP related objects