THMHR_HR_REVERSE_DEDESIGNATION 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_REVERSE_DEDESIGNATION 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_REVERSE_DEDESIGNATION' "Reverse Dedesignation (Settlement) of Hedging Relationship
EXPORTING
dedes_hr = " thmhrt_hr FTR: Table for Transferring HRs to Transact. Mgmt
* im_flg_testrun = " tpm_testrun Test Run
* im_hr_date = " thm_hr_date Start Date of Current Version of Hedging Relationship
IMPORTING
rev_hr = " thmhrt_hr New version of the hedging relationship after reversal
EXCEPTIONS
INCORRECT_STATUS = 1 " HR is not in status dissolved
INCORRECT_VERSION = 2 " Version passed is not the current version
LATER_VALUATION_EXISTS = 3 " the derivative was valued after the dissolve
INVALID_HR = 4 " Invalid hedging relationship
ERROR_READING_RFHA = 5 " Derivative data could not be read
REVERSAL_ERROR = 6 " Error during reversal
LATER_HR_DATE = 7 " The hedging relationship has a later inception date
RFHA_OVERALLOCATED = 8 " Derivative over-allocated on inception date
RFHA_REALLOCATED = 9 " the derivative was allocated to another HR after the dissolve
. " THMHR_HR_REVERSE_DEDESIGNATION
The ABAP code below is a full code listing to execute function module THMHR_HR_REVERSE_DEDESIGNATION 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).
| ld_rev_hr | TYPE THMHRT_HR . |
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_rev_hr | TYPE THMHRT_HR , |
| ld_dedes_hr | TYPE THMHRT_HR , |
| ld_im_flg_testrun | TYPE TPM_TESTRUN , |
| ld_im_hr_date | TYPE THM_HR_DATE . |
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_REVERSE_DEDESIGNATION or its description.
THMHR_HR_REVERSE_DEDESIGNATION - Reverse Dedesignation (Settlement) of Hedging Relationship THMHR_HR_READ_HR_GIVEN_KEY - Read HR for Given Full Key THMHR_HR_READ_ALL_ST_FOR_HR - Read Strategies for HR and Select One with Latest Version THMHR_HR_READ_ALL_ST_FOR_HEDGE - Read All Strategies for Given Hedge THMHR_HR_READ_ALL_HR_FOR_HEDGE - Read All Hedging Relationships for Given Hedge THMHR_HR_READ_ALL_HR_FOR_DERI - Read All Hedging Relationships for Given Derivative