SAP TB_EVALUATION_FOREX_DISTR_FLOW Function Module for Distribution of Main/Valuation Flows to Worklist
TB_EVALUATION_FOREX_DISTR_FLOW is a standard tb evaluation forex distr flow SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Distribution of Main/Valuation Flows to Worklist 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 distr flow FM, simply by entering the name TB_EVALUATION_FOREX_DISTR_FLOW 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_DISTR_FLOW 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_DISTR_FLOW'"Distribution of Main/Valuation Flows to Worklist.
EXPORTING
* KEYDATE = "Stichtag ( nur bei Stichtagsbewertung relevant )
* REALIZATION = ' ' "Kennzeichen Stichtagsbewertung oder Realisierung
* LOCAL_CURRENCY = "
* CASH_SETTLEMENT = '' "Kennzeichen, ob Geschäft cash gesettled wird
* RFHAZU = "Transaction Activity
IMPORTING
CURR_ACCR_AMOUNT = "Bestehender Abgrenzungsbetrag
TABLES
EXISTING_FLOWS = "Bestehende Bewegungen des Geschäfts
MAIN_FLOWS = "Main Flows
* ACCR_FLOWS = "Accrual/Deferral Flows
VALUATION_FLOWS = "Valuation Flows
* OLD_REALIZED_FLOWS = "Alte G+V Bewegungen
* CURR_TRANSFER_FLOW = "Bestehende Swapumbuchung
IMPORTING Parameters details for TB_EVALUATION_FOREX_DISTR_FLOW
KEYDATE - Stichtag ( nur bei Stichtagsbewertung relevant )
Data type: VTBFHAPO-DZTERMOptional: Yes
Call by Reference: No ( called with pass by value option)
REALIZATION - Kennzeichen Stichtagsbewertung oder Realisierung
Data type:Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
LOCAL_CURRENCY -
Data type: T001-WAERSOptional: Yes
Call by Reference: No ( called with pass by value option)
CASH_SETTLEMENT - Kennzeichen, ob Geschäft cash gesettled wird
Data type:Default: ''
Optional: Yes
Call by Reference: No ( called with pass by value option)
RFHAZU - Transaction Activity
Data type: VTBFHA-RFHAZULOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for TB_EVALUATION_FOREX_DISTR_FLOW
CURR_ACCR_AMOUNT - Bestehender Abgrenzungsbetrag
Data type: VTBFHAPO-BZBETROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for TB_EVALUATION_FOREX_DISTR_FLOW
EXISTING_FLOWS - Bestehende Bewegungen des Geschäfts
Data type: VTBFHAPOOptional: No
Call by Reference: No ( called with pass by value option)
MAIN_FLOWS - Main Flows
Data type: VTBFHAPOOptional: No
Call by Reference: No ( called with pass by value option)
ACCR_FLOWS - Accrual/Deferral Flows
Data type: VTBFHAPOOptional: Yes
Call by Reference: No ( called with pass by value option)
VALUATION_FLOWS - Valuation Flows
Data type: VTBFHAPOOptional: No
Call by Reference: No ( called with pass by value option)
OLD_REALIZED_FLOWS - Alte G+V Bewegungen
Data type: VTBFHAPOOptional: Yes
Call by Reference: No ( called with pass by value option)
CURR_TRANSFER_FLOW - Bestehende Swapumbuchung
Data type: VTBFHAPOOptional: Yes
Call by Reference: Yes
Copy and paste ABAP code example for TB_EVALUATION_FOREX_DISTR_FLOW 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_keydate | TYPE VTBFHAPO-DZTERM, " | |||
| lt_existing_flows | TYPE STANDARD TABLE OF VTBFHAPO, " | |||
| lv_curr_accr_amount | TYPE VTBFHAPO-BZBETR, " | |||
| lt_main_flows | TYPE STANDARD TABLE OF VTBFHAPO, " | |||
| lv_realization | TYPE VTBFHAPO, " ' ' | |||
| lt_accr_flows | TYPE STANDARD TABLE OF VTBFHAPO, " | |||
| lv_local_currency | TYPE T001-WAERS, " | |||
| lv_cash_settlement | TYPE T001, " '' | |||
| lt_valuation_flows | TYPE STANDARD TABLE OF VTBFHAPO, " | |||
| lv_rfhazu | TYPE VTBFHA-RFHAZUL, " | |||
| lt_old_realized_flows | TYPE STANDARD TABLE OF VTBFHAPO, " | |||
| lt_curr_transfer_flow | TYPE STANDARD TABLE OF VTBFHAPO. " |
|   CALL FUNCTION 'TB_EVALUATION_FOREX_DISTR_FLOW' "Distribution of Main/Valuation Flows to Worklist |
| EXPORTING | ||
| KEYDATE | = lv_keydate | |
| REALIZATION | = lv_realization | |
| LOCAL_CURRENCY | = lv_local_currency | |
| CASH_SETTLEMENT | = lv_cash_settlement | |
| RFHAZU | = lv_rfhazu | |
| IMPORTING | ||
| CURR_ACCR_AMOUNT | = lv_curr_accr_amount | |
| TABLES | ||
| EXISTING_FLOWS | = lt_existing_flows | |
| MAIN_FLOWS | = lt_main_flows | |
| ACCR_FLOWS | = lt_accr_flows | |
| VALUATION_FLOWS | = lt_valuation_flows | |
| OLD_REALIZED_FLOWS | = lt_old_realized_flows | |
| CURR_TRANSFER_FLOW | = lt_curr_transfer_flow | |
| . " TB_EVALUATION_FOREX_DISTR_FLOW | ||
ABAP code using 7.40 inline data declarations to call FM TB_EVALUATION_FOREX_DISTR_FLOW
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 DZTERM FROM VTBFHAPO INTO @DATA(ld_keydate). | ||||
| "SELECT single BZBETR FROM VTBFHAPO INTO @DATA(ld_curr_accr_amount). | ||||
| DATA(ld_realization) | = ' '. | |||
| "SELECT single WAERS FROM T001 INTO @DATA(ld_local_currency). | ||||
| DATA(ld_cash_settlement) | = ''. | |||
| "SELECT single RFHAZUL FROM VTBFHA INTO @DATA(ld_rfhazu). | ||||
Search for further information about these or an SAP related objects