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

RTHMHR_REVERSE_HR_DEDES SAP ABAP Report - Reverse Hedging Relationship Dedesignations







RTHMHR_REVERSE_HR_DEDES 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_REVERSE_HR_DEDES 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

THM15 - Reverse HR dedesignations


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_REVERSE_HR_DEDES. "Basic submit
SUBMIT RTHMHR_REVERSE_HR_DEDES AND RETURN. "Return to original report after report execution complete
SUBMIT RTHMHR_REVERSE_HR_DEDES 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: S_SGS = D .
Selection Text: S_RFHA = D .
Selection Text: S_HEDGE = D .
Selection Text: S_BUKRS = D .
Selection Text: P_VARI = D .
Selection Text: S_VAREA = D .
Selection Text: KEY_DATE = Key Date
Title: Reverse Hedging Relationship Dedesignations
Text Symbol: 125 = Reversal Successful
Text Symbol: 124 = Reversal Terminated
Text Symbol: 123 = Reversal Not Possible
Text Symbol: 121 = Reversal Possible
Text Symbol: 120 = Plan Exp Date
Text Symbol: 119 = Plan End
Text Symbol: 118 = Hedge Expiration Date
Text Symbol: 117 = Hedge Exp
Text Symbol: 116 = Financial Transaction Value Date
Text Symbol: 115 = Value Date
Text Symbol: 114 = OCI Balance on Key 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: 106 = Dedesignation Successfully Reversed
Text Symbol: 105 = Reversed
Text Symbol: 021 = Reverse Dedesignation of HR
Text Symbol: 020 = Reverse
Text Symbol: 010 = Reverse Hedging Relationship Dedesignations
Text Symbol: 003 = Control
Text Symbol: 002 = Hedging Relationship Details
Text Symbol: 001 = General Selections


INCLUDES used within this REPORT RTHMHR_REVERSE_HR_DEDES

INCLUDE RTHMHR_REVERSE_HR_DEDES_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:

LVC_VARIANT_DEFAULT_GET CALL FUNCTION 'LVC_VARIANT_DEFAULT_GET' EXPORTING i_save = 'A' CHANGING cs_variant = def_variant EXCEPTIONS not_found = 2.

LVC_VARIANT_F4 CALL FUNCTION 'LVC_VARIANT_F4' EXPORTING is_variant = def_variant i_save = 'A' IMPORTING e_exit = g_exit es_variant = def_variant EXCEPTIONS not_found = 1 OTHERS = 2.

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

TB_DEAL_AUTHORITY_CHECK CALL FUNCTION 'TB_DEAL_AUTHORITY_CHECK' EXPORTING bukrs = ls_hr-bukrs sgsart = ls_hr-sgsart sfhaart = ls_hr-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 = key_date im_hedge_id = ls_hr-hedge_id im_bukrs = ls_hr-bukrs im_rfha = ls_hr-rfha IMPORTING ex_oci_amount = oci_bal EXCEPTIONS prod_cat_not_supported = 1 deal_not_found = 2 OTHERS = 3.

THMHR_BATCH_HEDGE_EXPIRE_DATE CALL FUNCTION 'THMHR_BATCH_HEDGE_EXPIRE_DATE' EXPORTING i_bukrs = ls_hr-bukrs i_planner = ls_hedge-planner_id i_hedge = ls_hedge-hedge_id i_val_area = ls_hedge-valuation_area IMPORTING e_date = hedge_exp EXCEPTIONS no_hedge_found = 1 OTHERS = 2.

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

THMHR_HR_REVERSE_DEDESIGNATION CALL FUNCTION 'THMHR_HR_REVERSE_DEDESIGNATION' EXPORTING dedes_hr = ls_hr EXCEPTIONS incorrect_status = 1 incorrect_version = 2 later_valuation_exists = 3 invalid_hr = 4 error_reading_rfha = 5 reversal_error = 6 OTHERS = 7.

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

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

TRCA_COMPANYCODE_GETDETAIL CALL FUNCTION 'TRCA_COMPANYCODE_GETDETAIL' EXPORTING companycode = p_bukrs IMPORTING currency = p_curr EXCEPTIONS not_found = 1 OTHERS = 2.

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