SAP Reports / Programs | Financials | Financial Supply Chain Management | Transaction Manager(FIN-FSCM-TRM-TM) SAP FIN

RTHMHR_HR_SETTLEMENT SAP ABAP Report - Hedging Relationship Dedesignation







RTHMHR_HR_SETTLEMENT is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.

If you would like to execute this report or see the full code listing simply enter RTHMHR_HR_SETTLEMENT 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

THM14 - Hedging Relationship Dedesignation


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_HR_SETTLEMENT. "Basic submit
SUBMIT RTHMHR_HR_SETTLEMENT AND RETURN. "Return to original report after report execution complete
SUBMIT RTHMHR_HR_SETTLEMENT 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: VAL_AREA = D .
Selection Text: RFHA = D .
Selection Text: PROD_TYP = D .
Selection Text: PM_TEST = D .
Selection Text: PLANNER = D .
Selection Text: HEDGE = D .
Selection Text: CURRENCY = D .
Selection Text: CCODE = D .
Selection Text: P_VARI = Layout
Selection Text: P_SPEC = Special Fields
Selection Text: EFF_DATE = Dedesignation Date
Title: Hedging Relationship Dedesignation
Text Symbol: 201 = Dedesignation of Hedging Relationships on &1 (Update Run)
Text Symbol: 200 = Dedesignation of Hedging Relationships on &1 (Test Run)
Text Symbol: 131 = No Valuation
Text Symbol: 130 = No Valuation
Text Symbol: 129 = Available Volume Derivatives
Text Symbol: 128 = Available Deriv.
Text Symbol: 127 = Total Volume Derivatives
Text Symbol: 126 = Total Volume Deriv.
Text Symbol: 125 = Dedesignation Successful
Text Symbol: 124 = Dedesignation Terminated
Text Symbol: 123 = Dedesignation Not Possible
Text Symbol: 121 = Dedesignation Possible
Text Symbol: 120 = Plan End Date
Text Symbol: 119 = Plan End
Text Symbol: 118 = Hedge Expiriation Date
Text Symbol: 117 = Hedge Exp
Text Symbol: 116 = Financial Transaction Value Date
Text Symbol: 115 = Value Date
Text Symbol: 114 = OCI Balance on Dedesign. Date
Text Symbol: 113 = OCI Bal
Text Symbol: 112 = Hedge Category
Text Symbol: 111 = Hedge Cat
Text Symbol: 110 = Product Type
Text Symbol: 109 = Prod Type
Text Symbol: 108 = Financial Transaction
Text Symbol: 107 = Fin Trans





Text Symbol: 102 = Status of Dedesignation Process
Text Symbol: 101 = Processing Status
Text Symbol: 003 = Control
Text Symbol: 002 = Hedging Relationship Details
Text Symbol: 001 = General Selections


INCLUDES used within this REPORT RTHMHR_HR_SETTLEMENT

INCLUDE RTHMHR_HR_SETTLEMENT_TOP.


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:

REUSE_ALV_VARIANT_DEFAULT_GET CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET' EXPORTING i_save = tpmco_char_a CHANGING cs_variant = g_str_variant EXCEPTIONS wrong_input = 1 not_found = 2 program_error = 3 OTHERS = 99.

REUSE_ALV_VARIANT_F4 CALL FUNCTION 'REUSE_ALV_VARIANT_F4' EXPORTING is_variant = g_str_variant i_save = tpmco_char_a IMPORTING e_exit = g_exit es_variant = g_str_variant EXCEPTIONS not_found = 1 program_error = 2 OTHERS = 99.

REUSE_ALV_VARIANT_EXISTENCE CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE' EXPORTING i_save = tpmco_char_a CHANGING cs_variant = g_str_variant EXCEPTIONS wrong_input = 1 not_found = 2 OTHERS = 99.

THMEX_AUTHORITY_BUK_LIST CALL FUNCTION 'THMEX_AUTHORITY_BUK_LIST' EXPORTING im_activ_auth = thmex_con_activ_chg im_rng_company_code = ccode[] IMPORTING ex_rng_company_code = l_rng_company_code EXCEPTIONS no_company_code_found = 1 no_authority = 2 OTHERS = 99.

THMHR_BATCH_FIND_RFHAS CALL FUNCTION 'THMHR_BATCH_FIND_RFHAS' EXPORTING due_date = eff_date im_rng_planner = planner[] im_rng_hedge_curr = currency[] TABLES i_co_code = l_rng_company_code i_product = l_rng_prod_type i_rfha = rfha e_rfha = l_tab_vtbfha EXCEPTIONS none_found = 1 OTHERS = 2.

THMHR_READ_HR_GIVEN_DATE_RFHA CALL FUNCTION 'THMHR_READ_HR_GIVEN_DATE_RFHA' EXPORTING i_rfha = -rfha i_bukrs = -bukrs excl_diss_and_settle = tpmco_xtrue IMPORTING hr_tab = l_tab_hr_raw[] EXCEPTIONS bukrs_missing = 1 rfha_missing = 2 OTHERS = 3.

GET_DOMAIN_VALUES CALL FUNCTION 'GET_DOMAIN_VALUES' EXPORTING domname = 'THM_HEDGE_CATEGORY' TABLES values_tab = l_hedge_cat EXCEPTIONS no_values_found = 1 OTHERS = 2.

THMH_HEDGE_READ CALL FUNCTION 'THMH_HEDGE_READ' EXPORTING cocode = -bukrs hedge_id = -hedge_id IMPORTING e_thmt_hedge_item = l_tab_hedge[] EXCEPTIONS no_hedge_found = 1 OTHERS = 2.

TB_DEAL_AUTHORITY_CHECK CALL FUNCTION 'TB_DEAL_AUTHORITY_CHECK' EXPORTING bukrs = -bukrs sgsart = -sgsart sfhaart = -sfhaart trfct = '03' actvt = '48' EXCEPTIONS OTHERS = 1.

TPM_DTIL_GET_OCI_PER_HR CALL FUNCTION 'TPM_DTIL_GET_OCI_PER_HR' EXPORTING im_key_date = eff_date im_hedge_id = -hedge_id im_bukrs = -bukrs im_rfha = -rfha IMPORTING ex_oci_amount = oci_balance EXCEPTIONS prod_cat_not_supported = 1 deal_not_found = 2 OTHERS = 3.

TRCA_COMPANYCODE_GETDETAIL CALL FUNCTION 'TRCA_COMPANYCODE_GETDETAIL' EXPORTING companycode = -bukrs IMPORTING currency = l_str_out-hwaer EXCEPTIONS not_found = 1 OTHERS = 2.

THMHR_READ_TZPAT CALL FUNCTION 'THMHR_READ_TZPAT' EXPORTING language = sy-langu prod_type = -sgsart IMPORTING prodtxt = prod_text EXCEPTIONS no_entry = 1 OTHERS = 2.

THMHR_DER_VOL_AND_AVAIL_VOL CALL FUNCTION 'THMHR_DER_VOL_AND_AVAIL_VOL' EXPORTING bukrs = -bukrs rfha = -rfha date = -hr_date currency = -currency im_sign = space IMPORTING e_tot_vol = l_str_out-deriv_nominal e_avail_vol = l_str_out-deriv_avail_vol EXCEPTIONS nominal_not_found = 0 OTHERS = 0.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = l_repid i_bypassing_buffer = tpmco_xtrue i_callback_pf_status_set = 'SET_PF_STATUS' i_callback_user_command = 'USER_COMMAND' is_layout = g_str_layout it_fieldcat = g_tab_fieldcat i_save = tpmco_char_a is_variant = g_str_variant TABLES t_outtab = g_tab_out[].

THMHR_BATCH_GET_HEDGE_DETAILS CALL FUNCTION 'THMHR_BATCH_GET_HEDGE_DETAILS' EXPORTING i_bukrs = p_bukrs i_hedge_id = p_hedge_id IMPORTING e_hedge_details = l_hedge_details EXCEPTIONS no_hedge_found = 1 OTHERS = 2.

THMHR_BATCH_RETRIEVE_HEDGE_DET





CALL FUNCTION 'THMHR_BATCH_RETRIEVE_HEDGE_DET' EXPORTING i_bukrs = p_bukrs i_plannerid = l_hedge_details-planner_id i_hedgeid = p_hedge_id IMPORTING e_expire_date = p_hedge_expire EXCEPTIONS no_exposure_found = 1 invalid_fx_risk = 2 invalid_ir_risk = 3 no_transaction_found = 4 OTHERS = 5.

THMH_READ_HEDGE_CHAIN CALL FUNCTION 'THMH_READ_HEDGE_CHAIN' EXPORTING bukrs = p_bukrs hedge_id = l_hedge_details-hedge_id_roll IMPORTING tab_prev_hedge = le_tab_ref_hedge[].

THMH_H_DET_HEDGE_FLOWS CALL FUNCTION 'THMH_H_DET_HEDGE_FLOWS' EXPORTING i_date = eff_date i_ccode = le_tab_ref_hedge-bukrs i_hedge_id = le_tab_ref_hedge-hedge_id IMPORTING e_flows = l_flows[] EXCEPTIONS no_hedge_found = 1 inconsistent_hedge_number = 2 planner_error = 3 no_exposures_selected = 4 no_hedge_flows = 5 OTHERS = 6.

THMHR_BATCH_RETRIEVE_PLANNER CALL FUNCTION 'THMHR_BATCH_RETRIEVE_PLANNER' EXPORTING i_bukrs = p_bukrs i_plannerid = l_hedge_details-planner_id IMPORTING e_planner_data = li_planner EXCEPTIONS no_planner_found = 1 OTHERS = 2.

THMHR_READ_VAL_GIVEN_KEY CALL FUNCTION 'THMHR_READ_VAL_GIVEN_KEY' EXPORTING bukrs = p_loc_hr-bukrs rfha = p_loc_hr-rfha hedge_id = p_loc_hr-hedge_id no_reversed = tpmco_xtrue IMPORTING val = loc_val.

THMHR_HR_READ_HR_GIVEN_KEY CALL FUNCTION 'THMHR_HR_READ_HR_GIVEN_KEY' EXPORTING bukrs = p_loc_hr-bukrs rfha = p_loc_hr-rfha hedge_id = p_loc_hr-hedge_id hr_version = version EXCEPTIONS not_found = 1 OTHERS = 2.

THMHR_HR_READ_HR_GIVEN_KEY CALL FUNCTION 'THMHR_HR_READ_HR_GIVEN_KEY' EXPORTING bukrs = -bukrs rfha = -rfha hedge_id = -hedge_id hr_version = -hr_version IMPORTING hr = l_str_hr EXCEPTIONS not_found = 1 OTHERS = 2.

TB_DEAL_AUTHORITY_CHECK CALL FUNCTION 'TB_DEAL_AUTHORITY_CHECK' EXPORTING bukrs = l_str_hr-bukrs sgsart = l_str_hr-sgsart sfhaart = l_str_hr-sfhaart trfct = '03' actvt = '16' EXCEPTIONS OTHERS = 1.

THMHR_HR_SETTLED CALL FUNCTION 'THMHR_HR_SETTLED' EXPORTING hr = l_str_hr set_date = eff_date im_p_persistency_manager = l_p_persistency_manager im_flg_testrun = g_test EXCEPTIONS no_hedge_found = 1 bad_numkr_config = 2 db_error = 3 dedes_with_later_vals = 4 persistency_error = 5 tmp_number_error = 6 already_dedesignated = 7 OTHERS = 99.

REUSE_ALV_GRID_LAYOUT_INFO_GET CALL FUNCTION 'REUSE_ALV_GRID_LAYOUT_INFO_GET' IMPORTING et_sort = l_tab_sort et_filter = l_tab_filter es_grid_scroll = l_str_scroll es_print = l_str_print EXCEPTIONS no_infos = 0 program_error = 0 OTHERS = 0.

REUSE_ALV_GRID_LAYOUT_INFO_SET CALL FUNCTION 'REUSE_ALV_GRID_LAYOUT_INFO_SET' EXPORTING is_layout = g_str_layout it_fieldcat = g_tab_fieldcat it_sort = l_tab_sort it_filter = l_tab_filter is_grid_scroll = l_str_scroll is_print = l_str_print.

THMEX_START_APPL CALL FUNCTION 'THMEX_START_APPL' EXPORTING i_companycode = p_bukrs i_plannerid = p_plan_id EXCEPTIONS planner_not_found = 1 OTHERS = 2.

THMHR_ADMIN_PICK_AND_DISP_DERI CALL FUNCTION 'THMHR_ADMIN_PICK_AND_DISP_DERI' EXPORTING bukrs = p_bukrs rfha = p_rfha EXCEPTIONS deal_not_found status_not_found transaction transactiontype.



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_HR_SETTLEMENT or its description.