TPM_THX_SET_SEL_DATA is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name TPM_THX_SET_SEL_DATA into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
TPM_THX_UI
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'TPM_THX_SET_SEL_DATA' "To set selection data
* EXPORTING
* is_range_hinst = " thxs_disp_search_hinst Search Structure for By Hedging instrument
* is_range_hitem = " thxs_disp_search_hitem Search Structure for By Hedging instrument
* is_range_hrel = " thxs_disp_search_hrel Search Structure for By Hedging instrument
* is_range_hitem_val_class = " trgr_valuation_class Range Table for Valuation Classes
* is_range_hitem_number = " thxr_hitem_number Range Table for Hedged item
* is_range_hitem_category = " thxr_hitem_category Range Table for Hedged item category
* is_range_hitem_startdate = " trgr_date Range Table for Date
* is_range_hitem_enddate = " trgr_date Range Table for Date
* is_range_hinst_val_class = " trgr_valuation_class Range Table for Valuation Classes
* is_range_hinst_number = " thxr_hinst_number Range Table for Hedging Instr.
* is_range_hinst_startdate = " trgr_date Range Table for Date
* is_range_hinst_enddate = " trgr_date Range Table for Date
* is_range_search_hrel = " thxs_disp_search_hrel Search Structure for By Hedging relationship (range tables)
. " TPM_THX_SET_SEL_DATA
The ABAP code below is a full code listing to execute function module TPM_THX_SET_SEL_DATA including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
DATA(ld_is_range_hinst) = 'Check type of data required'.
DATA(ld_is_range_hitem) = 'Check type of data required'.
DATA(ld_is_range_hrel) = 'Check type of data required'.
DATA(ld_is_range_hitem_val_class) = 'Check type of data required'.
DATA(ld_is_range_hitem_number) = 'Check type of data required'.
DATA(ld_is_range_hitem_category) = 'Check type of data required'.
DATA(ld_is_range_hitem_startdate) = 'Check type of data required'.
DATA(ld_is_range_hitem_enddate) = 'Check type of data required'.
DATA(ld_is_range_hinst_val_class) = 'Check type of data required'.
DATA(ld_is_range_hinst_number) = 'Check type of data required'.
DATA(ld_is_range_hinst_startdate) = 'Check type of data required'.
DATA(ld_is_range_hinst_enddate) = 'Check type of data required'.
DATA(ld_is_range_search_hrel) = 'Check type of data required'. . CALL FUNCTION 'TPM_THX_SET_SEL_DATA' * EXPORTING * is_range_hinst = ld_is_range_hinst * is_range_hitem = ld_is_range_hitem * is_range_hrel = ld_is_range_hrel * is_range_hitem_val_class = ld_is_range_hitem_val_class * is_range_hitem_number = ld_is_range_hitem_number * is_range_hitem_category = ld_is_range_hitem_category * is_range_hitem_startdate = ld_is_range_hitem_startdate * is_range_hitem_enddate = ld_is_range_hitem_enddate * is_range_hinst_val_class = ld_is_range_hinst_val_class * is_range_hinst_number = ld_is_range_hinst_number * is_range_hinst_startdate = ld_is_range_hinst_startdate * is_range_hinst_enddate = ld_is_range_hinst_enddate * is_range_search_hrel = ld_is_range_search_hrel . " TPM_THX_SET_SEL_DATA
IF SY-SUBRC EQ 0. "All OK ENDIF.
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_is_range_hinst | TYPE THXS_DISP_SEARCH_HINST , |
| ld_is_range_hitem | TYPE THXS_DISP_SEARCH_HITEM , |
| ld_is_range_hrel | TYPE THXS_DISP_SEARCH_HREL , |
| ld_is_range_hitem_val_class | TYPE TRGR_VALUATION_CLASS , |
| ld_is_range_hitem_number | TYPE THXR_HITEM_NUMBER , |
| ld_is_range_hitem_category | TYPE THXR_HITEM_CATEGORY , |
| ld_is_range_hitem_startdate | TYPE TRGR_DATE , |
| ld_is_range_hitem_enddate | TYPE TRGR_DATE , |
| ld_is_range_hinst_val_class | TYPE TRGR_VALUATION_CLASS , |
| ld_is_range_hinst_number | TYPE THXR_HINST_NUMBER , |
| ld_is_range_hinst_startdate | TYPE TRGR_DATE , |
| ld_is_range_hinst_enddate | TYPE TRGR_DATE , |
| ld_is_range_search_hrel | TYPE THXS_DISP_SEARCH_HREL . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name TPM_THX_SET_SEL_DATA or its description.
TPM_THX_SET_SEL_DATA - To set selection data TPM_THX_SET_HREL_DATA - Get All Hedging Relationship Data TPM_THX_SET_HIST_TEXT - Set History on/off text TPM_THX_SET_HIST_ON_OFF - Set hrel history on/off TPM_THX_SET_HIST_DAYS - Set hrel history on/off TPM_THX_SET_FCODE_TAB - To set function codes Hedge relationship tabs