SAP TB_CASHFLOW_CONSTRUCT_SEC Function Module for Set Up Cash Flow for Total Return Swap
TB_CASHFLOW_CONSTRUCT_SEC is a standard tb cashflow construct sec SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Set Up Cash Flow for Total Return Swap 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 cashflow construct sec FM, simply by entering the name TB_CASHFLOW_CONSTRUCT_SEC into the relevant SAP transaction such as SE37 or SE38.
Function Group: TB06
Program Name: SAPLTB06
Main Program: SAPLTB06
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function TB_CASHFLOW_CONSTRUCT_SEC 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_CASHFLOW_CONSTRUCT_SEC'"Set Up Cash Flow for Total Return Swap.
EXPORTING
I_LEISTE = "allgemeine Schnittstelle Finanzstromrechner
I_IREF_SPA = "Treasury: Security Price Adjustment for Bearer
I_PLAN_STRATEGY = "Planned Record Update Strategy
I_OREF_FTR_APPL_CTRL = "TR Transaction Management: Application Control
TABLES
E_BEWE = "ausgehende Bewegungen
I_BEWE = "eingehende Bewegungen
I_KONDI = "eingehende Konditionen
EXCEPTIONS
CONSTRUCT_FAILED = 1
IMPORTING Parameters details for TB_CASHFLOW_CONSTRUCT_SEC
I_LEISTE - allgemeine Schnittstelle Finanzstromrechner
Data type: VTBLEISTEOptional: No
Call by Reference: No ( called with pass by value option)
I_IREF_SPA - Treasury: Security Price Adjustment for Bearer
Data type: IF_SPA_BEAREROptional: No
Call by Reference: Yes
I_PLAN_STRATEGY - Planned Record Update Strategy
Data type: TB_SPA_PLAN_STRATEGYOptional: No
Call by Reference: Yes
I_OREF_FTR_APPL_CTRL - TR Transaction Management: Application Control
Data type: CL_FTR_APPL_CTRLOptional: No
Call by Reference: Yes
TABLES Parameters details for TB_CASHFLOW_CONSTRUCT_SEC
E_BEWE - ausgehende Bewegungen
Data type: VTBFHAPOOptional: No
Call by Reference: No ( called with pass by value option)
I_BEWE - eingehende Bewegungen
Data type: VTBFHAPOOptional: No
Call by Reference: No ( called with pass by value option)
I_KONDI - eingehende Konditionen
Data type: VTBFINKOOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
CONSTRUCT_FAILED - Berechungnen fehlgeschlagen
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for TB_CASHFLOW_CONSTRUCT_SEC 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: | ||||
| lt_e_bewe | TYPE STANDARD TABLE OF VTBFHAPO, " | |||
| lv_i_leiste | TYPE VTBLEISTE, " | |||
| lv_construct_failed | TYPE VTBLEISTE, " | |||
| lt_i_bewe | TYPE STANDARD TABLE OF VTBFHAPO, " | |||
| lv_i_iref_spa | TYPE IF_SPA_BEARER, " | |||
| lt_i_kondi | TYPE STANDARD TABLE OF VTBFINKO, " | |||
| lv_i_plan_strategy | TYPE TB_SPA_PLAN_STRATEGY, " | |||
| lv_i_oref_ftr_appl_ctrl | TYPE CL_FTR_APPL_CTRL. " |
|   CALL FUNCTION 'TB_CASHFLOW_CONSTRUCT_SEC' "Set Up Cash Flow for Total Return Swap |
| EXPORTING | ||
| I_LEISTE | = lv_i_leiste | |
| I_IREF_SPA | = lv_i_iref_spa | |
| I_PLAN_STRATEGY | = lv_i_plan_strategy | |
| I_OREF_FTR_APPL_CTRL | = lv_i_oref_ftr_appl_ctrl | |
| TABLES | ||
| E_BEWE | = lt_e_bewe | |
| I_BEWE | = lt_i_bewe | |
| I_KONDI | = lt_i_kondi | |
| EXCEPTIONS | ||
| CONSTRUCT_FAILED = 1 | ||
| . " TB_CASHFLOW_CONSTRUCT_SEC | ||
ABAP code using 7.40 inline data declarations to call FM TB_CASHFLOW_CONSTRUCT_SEC
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.Search for further information about these or an SAP related objects