THMHR_HR_ROLLOVER_SAVE_CHECK 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 THMHR_HR_ROLLOVER_SAVE_CHECK into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
THMHR_ADMIN
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'THMHR_HR_ROLLOVER_SAVE_CHECK' "Cancel Save of HR Rollover; Reverse Creation
EXPORTING
im_str_rfha = " vtbfha Transaction
im_str_activity = " vtbfhazu Transaction Activity
im_prol_flag = " char1 Single-Character Flag
im_p_hedgeplan = " cl_hedgedata_tha Hedge Data for an Instrument
im_tab_cf = " ftr_fhapo Treasury: Table Type for VTBFHAPO
CHANGING
ch_tab_messages = " ftrg_tab_message
EXCEPTIONS
TOO_MANY_HRS = 1 " More than one HR for this derivative
TOO_MANY_DERIVS = 2 " More than one derivative for this hedge
ERROR_READING_DATA = 3 " Error reading hedge management data
TRANS_NUMKR_ERROR = 4 " Error in customizing of trans number ranges
CREATE_ERROR = 5 " Error creating hedge management data
BAD_NUMKR_CONFIG = 6 " Error in customizing HR number ranges
INVALID_END_DATE = 7 " Plan end date is before rollover value date
FAILED = 8 "
. " THMHR_HR_ROLLOVER_SAVE_CHECK
The ABAP code below is a full code listing to execute function module THMHR_HR_ROLLOVER_SAVE_CHECK 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_ch_tab_messages) = 'Check type of data required'.
DATA(ld_im_str_rfha) = 'Check type of data required'.
DATA(ld_im_str_activity) = 'Check type of data required'.
DATA(ld_im_prol_flag) = 'Check type of data required'.
DATA(ld_im_p_hedgeplan) = 'Check type of data required'.
DATA(ld_im_tab_cf) = 'Check type of data required'. . CALL FUNCTION 'THMHR_HR_ROLLOVER_SAVE_CHECK' EXPORTING im_str_rfha = ld_im_str_rfha im_str_activity = ld_im_str_activity im_prol_flag = ld_im_prol_flag im_p_hedgeplan = ld_im_p_hedgeplan im_tab_cf = ld_im_tab_cf CHANGING ch_tab_messages = ld_ch_tab_messages EXCEPTIONS TOO_MANY_HRS = 1 TOO_MANY_DERIVS = 2 ERROR_READING_DATA = 3 TRANS_NUMKR_ERROR = 4 CREATE_ERROR = 5 BAD_NUMKR_CONFIG = 6 INVALID_END_DATE = 7 FAILED = 8 . " THMHR_HR_ROLLOVER_SAVE_CHECK
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 6. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 7. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 8. "Exception "Add code for exception here 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_ch_tab_messages | TYPE FTRG_TAB_MESSAGE , |
| ld_im_str_rfha | TYPE VTBFHA , |
| ld_im_str_activity | TYPE VTBFHAZU , |
| ld_im_prol_flag | TYPE CHAR1 , |
| ld_im_p_hedgeplan | TYPE CL_HEDGEDATA_THA , |
| ld_im_tab_cf | TYPE FTR_FHAPO . |
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 THMHR_HR_ROLLOVER_SAVE_CHECK or its description.
THMHR_HR_ROLLOVER_SAVE_CHECK - Cancel Save of HR Rollover; Reverse Creation THMHR_HR_ROLLOVER_REV_CHECK - Reverse FX Rollover THMHR_HR_REV_HEDGE_DATA_CHECK - Reverse Data from Hedge Management THMHR_HR_REVERSE_HEDGE_DATA - Reverse FX Rollover THMHR_HR_REVERSE_DEDESIGNATION - Reverse Dedesignation (Settlement) of Hedging Relationship THMHR_HR_READ_HR_GIVEN_KEY - Read HR for Given Full Key