SAP TB_EVALUATION_FOREX_WRITE_BACK Function Module for Undo Valuation Flows Rate/Swap - But No Accrual/Reversal
TB_EVALUATION_FOREX_WRITE_BACK is a standard tb evaluation forex write back SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Undo Valuation Flows Rate/Swap - But No Accrual/Reversal 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 tb evaluation forex write back FM, simply by entering the name TB_EVALUATION_FOREX_WRITE_BACK into the relevant SAP transaction such as SE37 or SE38.
Function Group: TB16
Program Name: SAPLTB16
Main Program: SAPLTB16
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TB_EVALUATION_FOREX_WRITE_BACK 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 'TB_EVALUATION_FOREX_WRITE_BACK'"Undo Valuation Flows Rate/Swap - But No Accrual/Reversal.
EXPORTING
I_VTBFHA = "
I_WAERS = "
I_DZTERM = "
* I_SPLITVAL = "
* I_LOC_CURR = "Currency Key
TABLES
T_VALUATION_FLOWS = "
T_VALUATION_WRITE_BACK = "
IMPORTING Parameters details for TB_EVALUATION_FOREX_WRITE_BACK
I_VTBFHA -
Data type: VTBFHAOptional: No
Call by Reference: No ( called with pass by value option)
I_WAERS -
Data type: VTBFHAPO-WZBETROptional: No
Call by Reference: No ( called with pass by value option)
I_DZTERM -
Data type: VTBFHAPO-DZTERMOptional: No
Call by Reference: No ( called with pass by value option)
I_SPLITVAL -
Data type: AT10B-SPLITVALOptional: Yes
Call by Reference: No ( called with pass by value option)
I_LOC_CURR - Currency Key
Data type: TRCA_COMPANY-CURRENCYOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for TB_EVALUATION_FOREX_WRITE_BACK
T_VALUATION_FLOWS -
Data type: VTBFHAPOOptional: No
Call by Reference: No ( called with pass by value option)
T_VALUATION_WRITE_BACK -
Data type: VTBFHAPOOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TB_EVALUATION_FOREX_WRITE_BACK 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_i_vtbfha | TYPE VTBFHA, " | |||
| lt_t_valuation_flows | TYPE STANDARD TABLE OF VTBFHAPO, " | |||
| lv_i_waers | TYPE VTBFHAPO-WZBETR, " | |||
| lt_t_valuation_write_back | TYPE STANDARD TABLE OF VTBFHAPO, " | |||
| lv_i_dzterm | TYPE VTBFHAPO-DZTERM, " | |||
| lv_i_splitval | TYPE AT10B-SPLITVAL, " | |||
| lv_i_loc_curr | TYPE TRCA_COMPANY-CURRENCY. " |
|   CALL FUNCTION 'TB_EVALUATION_FOREX_WRITE_BACK' "Undo Valuation Flows Rate/Swap - But No Accrual/Reversal |
| EXPORTING | ||
| I_VTBFHA | = lv_i_vtbfha | |
| I_WAERS | = lv_i_waers | |
| I_DZTERM | = lv_i_dzterm | |
| I_SPLITVAL | = lv_i_splitval | |
| I_LOC_CURR | = lv_i_loc_curr | |
| TABLES | ||
| T_VALUATION_FLOWS | = lt_t_valuation_flows | |
| T_VALUATION_WRITE_BACK | = lt_t_valuation_write_back | |
| . " TB_EVALUATION_FOREX_WRITE_BACK | ||
ABAP code using 7.40 inline data declarations to call FM TB_EVALUATION_FOREX_WRITE_BACK
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.| "SELECT single WZBETR FROM VTBFHAPO INTO @DATA(ld_i_waers). | ||||
| "SELECT single DZTERM FROM VTBFHAPO INTO @DATA(ld_i_dzterm). | ||||
| "SELECT single SPLITVAL FROM AT10B INTO @DATA(ld_i_splitval). | ||||
| "SELECT single CURRENCY FROM TRCA_COMPANY INTO @DATA(ld_i_loc_curr). | ||||
Search for further information about these or an SAP related objects