SAP TPM_THX_SET_HREL_DATA Function Module for Get All Hedging Relationship Data
TPM_THX_SET_HREL_DATA is a standard tpm thx set hrel data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Get All Hedging Relationship Data 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 tpm thx set hrel data FM, simply by entering the name TPM_THX_SET_HREL_DATA into the relevant SAP transaction such as SE37 or SE38.
Function Group: TPM_THX_UI
Program Name: SAPLTPM_THX_UI
Main Program: SAPLTPM_THX_UI
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TPM_THX_SET_HREL_DATA 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 'TPM_THX_SET_HREL_DATA'"Get All Hedging Relationship Data.
EXPORTING
IM_STR_HREL = "Display Structure for Hedging Relationship
* IM_TAB_TRANS_FLOWS = "Treasury: Table Type of HR Trans. & corresponding Flows
* IM_TAB_EFF_TEST_PLAN = "Hedge relationship effectiveness test plan
* IM_GO_CONTROLLER = "Hedge Entity Controller
* IM_WORKAREA = "Display Structure for work area
* IM_TAB_HDOC = "Table type for HDOC display straucture
* IM_TAB_HITEM = "Table Type for Hedge Item
* IM_TAB_HINST = "Table type for Hedge Instrument
* IM_PROFILE = "Hedge profile relevant details
IMPORTING Parameters details for TPM_THX_SET_HREL_DATA
IM_STR_HREL - Display Structure for Hedging Relationship
Data type: THXS_DISP_HRELOptional: No
Call by Reference: Yes
IM_TAB_TRANS_FLOWS - Treasury: Table Type of HR Trans. & corresponding Flows
Data type: THXY_HREL_TRANS_FLOWSOptional: Yes
Call by Reference: Yes
IM_TAB_EFF_TEST_PLAN - Hedge relationship effectiveness test plan
Data type: THXY_HR_TSTPLANOptional: Yes
Call by Reference: Yes
IM_GO_CONTROLLER - Hedge Entity Controller
Data type: CL_HEDGE_CONTROLLER_THXOptional: Yes
Call by Reference: Yes
IM_WORKAREA - Display Structure for work area
Data type: THXS_DISP_WORKAREAOptional: Yes
Call by Reference: Yes
IM_TAB_HDOC - Table type for HDOC display straucture
Data type: THXY_DISP_HDOCOptional: Yes
Call by Reference: Yes
IM_TAB_HITEM - Table Type for Hedge Item
Data type: THXY_DISP_HITEMOptional: Yes
Call by Reference: Yes
IM_TAB_HINST - Table type for Hedge Instrument
Data type: THXY_DISP_HINSTOptional: Yes
Call by Reference: Yes
IM_PROFILE - Hedge profile relevant details
Data type: THXS_PROFILE_DETAILSOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for TPM_THX_SET_HREL_DATA 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_im_str_hrel | TYPE THXS_DISP_HREL, " | |||
| lv_im_tab_trans_flows | TYPE THXY_HREL_TRANS_FLOWS, " | |||
| lv_im_tab_eff_test_plan | TYPE THXY_HR_TSTPLAN, " | |||
| lv_im_go_controller | TYPE CL_HEDGE_CONTROLLER_THX, " | |||
| lv_im_workarea | TYPE THXS_DISP_WORKAREA, " | |||
| lv_im_tab_hdoc | TYPE THXY_DISP_HDOC, " | |||
| lv_im_tab_hitem | TYPE THXY_DISP_HITEM, " | |||
| lv_im_tab_hinst | TYPE THXY_DISP_HINST, " | |||
| lv_im_profile | TYPE THXS_PROFILE_DETAILS. " |
|   CALL FUNCTION 'TPM_THX_SET_HREL_DATA' "Get All Hedging Relationship Data |
| EXPORTING | ||
| IM_STR_HREL | = lv_im_str_hrel | |
| IM_TAB_TRANS_FLOWS | = lv_im_tab_trans_flows | |
| IM_TAB_EFF_TEST_PLAN | = lv_im_tab_eff_test_plan | |
| IM_GO_CONTROLLER | = lv_im_go_controller | |
| IM_WORKAREA | = lv_im_workarea | |
| IM_TAB_HDOC | = lv_im_tab_hdoc | |
| IM_TAB_HITEM | = lv_im_tab_hitem | |
| IM_TAB_HINST | = lv_im_tab_hinst | |
| IM_PROFILE | = lv_im_profile | |
| . " TPM_THX_SET_HREL_DATA | ||
ABAP code using 7.40 inline data declarations to call FM TPM_THX_SET_HREL_DATA
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