SAP Reports / Programs

RTHMHR_EFFECTIVENESS_TEST SAP ABAP Report - Effectiveness Test







RTHMHR_EFFECTIVENESS_TEST is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You can use this report to carry out retrospective and prospective effectiveness assessments...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RTHMHR_EFFECTIVENESS_TEST into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

THM80 - Effectiveness test


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RTHMHR_EFFECTIVENESS_TEST. "Basic submit
SUBMIT RTHMHR_EFFECTIVENESS_TEST AND RETURN. "Return to original report after report execution complete
SUBMIT RTHMHR_EFFECTIVENESS_TEST VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: P_ASSESS = Perform Assessment
Selection Text: P_ASST = D .
Selection Text: P_BUKRS = D .
Selection Text: P_CURR = Displ. Currency (List Display)
Selection Text: P_DATE = D .
Selection Text: P_DEF = Use Hedging Rel. Parameters
Selection Text: P_END_P = End Date
Selection Text: P_END_R = End Date
Selection Text: P_HORI = D .
Selection Text: P_IND = Use Individual Parameters
Selection Text: P_MEASUR = Perform Measurement
Selection Text: P_NOIA = No Inactive Instruments
Selection Text: P_PROSP = Prospective
Selection Text: P_RETRO = Retrospective
Selection Text: P_SCENAR = D .
Selection Text: P_SCR = Explicit Scenarios
Selection Text: P_SCUT = D .
Selection Text: P_SCV = Scenario Progression
Selection Text: P_START = Start Date
Selection Text: P_STRT_P = Start Date
Selection Text: P_STRT_R = Start Date
Selection Text: P_SZVERL = D .
Selection Text: P_TYPE = D .
Selection Text: P_TYPE_P = Calculation Type: Prospective
Selection Text: P_TYPE_R = Calculation Type:Retrospective
Selection Text: SO_DERI = Hedging Instrument
Selection Text: SO_HEDGE = D .
Selection Text: SO_PLNID = D .
Selection Text: SO_SZENA = D .
Selection Text: SO_SZE_P = D .
Selection Text: SO_SZE_R = Scenario
Selection Text: SO_VAREA = D .
Selection Text: S_SCHED = Time Schedule
Title: Effectiveness Test
Text Symbol: 001 = Hedging Relationship (HR)
Text Symbol: 002 = Scope of Effectiveness Calculation
Text Symbol: 003 = Effectiveness Assessment Data
Text Symbol: 004 = Calculation Alternatives





Text Symbol: 005 = Individual Calculation Parameters
Text Symbol: 008 = Status
Text Symbol: 009 = Hedging Relationship Status
Text Symbol: 010 = Effective
Text Symbol: 011 = Shortcut
Text Symbol: 012 = Calculation was successful
Text Symbol: 013 = Measurement Data
Text Symbol: 014 = Start of Scenario
Text Symbol: 015 = End of Scenario
Text Symbol: 017 = Calculation terminated
Text Symbol: 019 = Calculation performed
Text Symbol: 020 = List Output
Text Symbol: 021 = Assessment Type
Text Symbol: 022 = Effect.Rate
Text Symbol: 023 = Effectiveness Rate
Text Symbol: 024 = Total Effectiveness
Text Symbol: 025 = Eff.Test Dte
Text Symbol: 026 = Hedged Item
Text Symbol: 027 = Hedging Instrument
Text Symbol: 031 = Parameter: Prospective Effect. Test
Text Symbol: 032 = Parameter: Retrospective Effect. Test
Text Symbol: 040 = Prospective
Text Symbol: 041 = Retrospective
Text Symbol: 100 = Effectiveness Measurement Calculation On
Text Symbol: 101 = Effectiveness Assessment Calculation On
Text Symbol: 102 = Display Currency
Text Symbol: 103 = Horizon
Text Symbol: 104 = Scenario
Text Symbol: 121 = Hedging Relationship Effective
Text Symbol: 123 = Hedging Relationship Ineffect.


INCLUDES used within this REPORT RTHMHR_EFFECTIVENESS_TEST

INCLUDE RTHMHR_EFFECTIVENESS_TEST_TOP.
INCLUDE RTHMHR_EFFECTIVENESS_TEST_SCR.


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

THMHR_MEASUREMENT_CALCULATE CALL FUNCTION 'THMHR_MEASUREMENT_CALCULATE' EXPORTING im_calculation_date = p_date im_calculation_type = -p_type im_bukrs = -bukrs im_derivative_id = -rfha im_hedge_item_id = -hedge_id im_cf_cat = g_cf_cat im_result_currency = p_curr im_flg_save_results = p_save im_keyf_engine = keyf_engine im_szenario = p_scenar IMPORTING ex_str_effect = l_effectiveness ex_p_detailed_log = l_p_detailed_log CHANGING ch_horizon_date = p_hori EXCEPTIONS wrong_input_data = 1 no_effectiveness_calculated = 2 derivative_not_alive = 4 no_flows_after_horizon = 5 OTHERS = 99.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = 'RTHMHR_EFFECTIVENESS_TEST' i_callback_pf_status_set = 'SET_PF_STATUS' i_callback_user_command = 'USER_COMMAND' i_save = g_save is_layout = l_layout it_events = t_events it_fieldcat = g_tab_fieldcat it_except_qinfo = g_tab_except_qinfo TABLES t_outtab = l_tab_effectiveness.

THMHR_GET_ROLLOVERS





CALL FUNCTION 'THMHR_GET_ROLLOVERS' EXPORTING im_str_hr = l_wrk_hr IMPORTING ex_tab_hr_rollover = gt_rollover.

THMH_H_DET_HEDGE_FLOWS CALL FUNCTION 'THMH_H_DET_HEDGE_FLOWS' EXPORTING i_date = p_date i_ccode = l_wrk_hr-bukrs i_hedge_id = l_wrk_hr-hedge_id IMPORTING e_flows = l_tab_flows EXCEPTIONS no_hedge_found = 0 inconsistent_hedge_number = 0 planner_error = 0 no_exposures_selected = 0 no_hedge_flows = 0 trans_tables_inconsistent = 0 OTHERS = 0.

THMHR_EFFECTIVENESS_ASSESSMENT CALL FUNCTION 'THMHR_EFFECTIVENESS_ASSESSMENT' EXPORTING im_calculation_date = p_date im_calculation_type = -p_type im_company_code = -bukrs im_derivative_id = -rfha im_hedge_item_id = -hedge_id im_cf_cat = g_cf_cat * dont provide a currency, since currency of effectivness test * depends on risk category / hedge relation: * im_result_currency = p_curr im_startdate = l_start_date im_flg_save = p_save im_keyf_engine = keyf_engine IMPORTING ex_tab_assessment = l_tab_assessment ex_tab_p_detailed_log = l_tab_p_detailed_log TABLES t_tab_time_schedule = l_tab_schedule EXCEPTIONS wrong_input_data = 1 no_effectiveness_calculated = 2 nominal_der_not_found = 3 nominal_hedge_not_found = 4 OTHERS = 99.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = 'RTHMHR_EFFECTIVENESS_TEST' i_callback_pf_status_set = 'SET_PF_STATUS' i_callback_user_command = 'USER_COMMAND' is_layout = l_layout is_variant = g_str_disvariant it_events = t_events it_fieldcat = g_tab_fieldcat it_except_qinfo = g_tab_except_qinfo i_save = g_save TABLES t_outtab = lt_eff_test_output.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = 'RTHMHR_EFFECTIVENESS_TEST' i_callback_pf_status_set = 'SET_PF_STATUS' i_callback_user_command = 'USER_COMMAND' is_layout = l_layout it_events = t_events it_fieldcat = g_tab_fieldcat it_except_qinfo = g_tab_except_qinfo i_save = g_save TABLES t_outtab = l_tab_ass_output.

RM_PROT_WRITE_NEW CALL FUNCTION 'RM_PROT_WRITE_NEW' TABLES i_prot_itab = tab_log_hrs-tab_log.

THAHR_REGR_UPDATE CALL FUNCTION 'THAHR_REGR_UPDATE' EXPORTING im_tab_assessment = ls_assessment-assess_detail im_eff_test_output = ls_eff_test_output im_tab_assess_log = lt_assess_log im_test_effective = lv_test_effective im_flg_overwrite = lv_flg_overwrite EXCEPTIONS result_already_exists = 1 db_update_failed = 2 OTHERS = 99.



Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RTHMHR_EFFECTIVENESS_TEST or its description.