TPM_TRL_REV_VAL_CLASS_TRANSFER 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_TRL_REV_VAL_CLASS_TRANSFER into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
TPM_TRL_VAL_CLASS_TRANSFER
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'TPM_TRL_REV_VAL_CLASS_TRANSFER' "Reversal of Valuation Class Transfer
EXPORTING
im_company_code = " bukrs Company Code
im_protocol_handler = " cl_protocol_handler_trp Treasury: Protocol Manager
* im_test_flag = 0 " i
im_reversal_reason = " tzst-sstogrd TR Reversal Reason
im_tab_bustransid = " trdy_bustransid Treasury: Tabellen von IDs für Distributor-Geschäftsvorfälle
* im_flg_no_dialog = " xfeld Auswahldynpro nicht anzeigen
* im_fi_reversal_date = " tpm_fi_reversal_date Different FI Reversal Date
* im_fi_reversal_period = " tpm_fi_reversal_period Alternative FI Reversal Period
EXCEPTIONS
INTERNAL_ERROR = 1 " Internal Error
NO_SELECTION = 2 " No Selection
FAILED = 3 " Error
. " TPM_TRL_REV_VAL_CLASS_TRANSFER
The ABAP code below is a full code listing to execute function module TPM_TRL_REV_VAL_CLASS_TRANSFER 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_im_company_code) = 'Check type of data required'.
DATA(ld_im_protocol_handler) = 'Check type of data required'.
DATA(ld_im_test_flag) = 'Check type of data required'.
SELECT single SSTOGRD
FROM TZST
INTO @DATA(ld_im_reversal_reason).
DATA(ld_im_tab_bustransid) = 'Check type of data required'.
DATA(ld_im_flg_no_dialog) = 'Check type of data required'.
DATA(ld_im_fi_reversal_date) = 'Check type of data required'.
DATA(ld_im_fi_reversal_period) = 'Check type of data required'. . CALL FUNCTION 'TPM_TRL_REV_VAL_CLASS_TRANSFER' EXPORTING im_company_code = ld_im_company_code im_protocol_handler = ld_im_protocol_handler * im_test_flag = ld_im_test_flag im_reversal_reason = ld_im_reversal_reason im_tab_bustransid = ld_im_tab_bustransid * im_flg_no_dialog = ld_im_flg_no_dialog * im_fi_reversal_date = ld_im_fi_reversal_date * im_fi_reversal_period = ld_im_fi_reversal_period EXCEPTIONS INTERNAL_ERROR = 1 NO_SELECTION = 2 FAILED = 3 . " TPM_TRL_REV_VAL_CLASS_TRANSFER
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 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_im_company_code | TYPE BUKRS , |
| ld_im_protocol_handler | TYPE CL_PROTOCOL_HANDLER_TRP , |
| ld_im_test_flag | TYPE I , |
| ld_im_reversal_reason | TYPE TZST-SSTOGRD , |
| ld_im_tab_bustransid | TYPE TRDY_BUSTRANSID , |
| ld_im_flg_no_dialog | TYPE XFELD , |
| ld_im_fi_reversal_date | TYPE TPM_FI_REVERSAL_DATE , |
| ld_im_fi_reversal_period | TYPE TPM_FI_REVERSAL_PERIOD . |
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_TRL_REV_VAL_CLASS_TRANSFER or its description.
TPM_TRL_REV_VAL_CLASS_TRANSFER - Reversal of Valuation Class Transfer TPM_TRL_RETREIVE_POSITIONS - Determine "Settled" and "Unsettled" Positions TPM_TRL_REP_TRANS_DISPLAY - Display Business Transactions TPM_TRL_REPORTING_READ - Read Reporting Data TPM_TRL_REPORTING_DISPLAY - Reporting Display TPM_TRL_REPLACE_FLOWTYPES_THX - Replacement of Update Types for Hedge Accounting