SAP TB_EVALUATION_FOREX_SPLIT_FWD Function Module for Split Forward Transaction to Spot Amounts and Swap Amount









TB_EVALUATION_FOREX_SPLIT_FWD is a standard tb evaluation forex split fwd SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Split Forward Transaction to Spot Amounts and Swap Amount 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 split fwd FM, simply by entering the name TB_EVALUATION_FOREX_SPLIT_FWD 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_SPLIT_FWD 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_SPLIT_FWD'"Split Forward Transaction to Spot Amounts and Swap Amount
EXPORTING
LEAD_CURR = "Leitwährung der Kursdarstellung
FOLL_CURR = "Folgewährung der Kursdarstellun
LOC_CURR = "Local Currency
FWDRATE = "Terminkurs des Geschäftes
SPOTRATE = "Kassakurs des Geschäftes
DEAL = "Transaction Data
* REALIZATION = ' ' "

IMPORTING
SWAP_FLOW = "Swap-Bewegung in Hauswährung
SWAP_BETR = "Swapbetrag in Folgewaehrung
SWAP_LW_BETR = "Swapbetrag in Leitwährung

TABLES
MAIN_FLOWS = "Main Flows
.



IMPORTING Parameters details for TB_EVALUATION_FOREX_SPLIT_FWD

LEAD_CURR - Leitwährung der Kursdarstellung

Data type: TCURL-LWAERS
Optional: No
Call by Reference: No ( called with pass by value option)

FOLL_CURR - Folgewährung der Kursdarstellun

Data type: TCURL-FWAERS
Optional: No
Call by Reference: No ( called with pass by value option)

LOC_CURR - Local Currency

Data type: T001-WAERS
Optional: No
Call by Reference: No ( called with pass by value option)

FWDRATE - Terminkurs des Geschäftes

Data type: VTBFHAZU-KKURS
Optional: No
Call by Reference: No ( called with pass by value option)

SPOTRATE - Kassakurs des Geschäftes

Data type: VTBFHAZU-KKASSA
Optional: No
Call by Reference: No ( called with pass by value option)

DEAL - Transaction Data

Data type: VTBFHA
Optional: No
Call by Reference: No ( called with pass by value option)

REALIZATION -

Data type:
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for TB_EVALUATION_FOREX_SPLIT_FWD

SWAP_FLOW - Swap-Bewegung in Hauswährung

Data type: VTBFHAPO
Optional: No
Call by Reference: No ( called with pass by value option)

SWAP_BETR - Swapbetrag in Folgewaehrung

Data type: VTBFHAPO-BZBETR
Optional: No
Call by Reference: No ( called with pass by value option)

SWAP_LW_BETR - Swapbetrag in Leitwährung

Data type: VTBFHAPO-BZBETR
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for TB_EVALUATION_FOREX_SPLIT_FWD

MAIN_FLOWS - Main Flows

Data type: VTBFHAPO
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for TB_EVALUATION_FOREX_SPLIT_FWD 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_lead_curr  TYPE TCURL-LWAERS, "   
lv_swap_flow  TYPE VTBFHAPO, "   
lt_main_flows  TYPE STANDARD TABLE OF VTBFHAPO, "   
lv_foll_curr  TYPE TCURL-FWAERS, "   
lv_swap_betr  TYPE VTBFHAPO-BZBETR, "   
lv_loc_curr  TYPE T001-WAERS, "   
lv_swap_lw_betr  TYPE VTBFHAPO-BZBETR, "   
lv_fwdrate  TYPE VTBFHAZU-KKURS, "   
lv_spotrate  TYPE VTBFHAZU-KKASSA, "   
lv_deal  TYPE VTBFHA, "   
lv_realization  TYPE VTBFHA. "   ' '

  CALL FUNCTION 'TB_EVALUATION_FOREX_SPLIT_FWD'  "Split Forward Transaction to Spot Amounts and Swap Amount
    EXPORTING
         LEAD_CURR = lv_lead_curr
         FOLL_CURR = lv_foll_curr
         LOC_CURR = lv_loc_curr
         FWDRATE = lv_fwdrate
         SPOTRATE = lv_spotrate
         DEAL = lv_deal
         REALIZATION = lv_realization
    IMPORTING
         SWAP_FLOW = lv_swap_flow
         SWAP_BETR = lv_swap_betr
         SWAP_LW_BETR = lv_swap_lw_betr
    TABLES
         MAIN_FLOWS = lt_main_flows
. " TB_EVALUATION_FOREX_SPLIT_FWD




ABAP code using 7.40 inline data declarations to call FM TB_EVALUATION_FOREX_SPLIT_FWD

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 LWAERS FROM TCURL INTO @DATA(ld_lead_curr).
 
 
 
"SELECT single FWAERS FROM TCURL INTO @DATA(ld_foll_curr).
 
"SELECT single BZBETR FROM VTBFHAPO INTO @DATA(ld_swap_betr).
 
"SELECT single WAERS FROM T001 INTO @DATA(ld_loc_curr).
 
"SELECT single BZBETR FROM VTBFHAPO INTO @DATA(ld_swap_lw_betr).
 
"SELECT single KKURS FROM VTBFHAZU INTO @DATA(ld_fwdrate).
 
"SELECT single KKASSA FROM VTBFHAZU INTO @DATA(ld_spotrate).
 
 
DATA(ld_realization) = ' '.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!