SAP FVD_MD_TOOLS_CASHFLOW_SIMU Function Module for Simulation of Disbursements in Flow Records
FVD_MD_TOOLS_CASHFLOW_SIMU is a standard fvd md tools cashflow simu SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Simulation of Disbursements in Flow Records 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 fvd md tools cashflow simu FM, simply by entering the name FVD_MD_TOOLS_CASHFLOW_SIMU into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVD_MD_TOOLS
Program Name: SAPLFVD_MD_TOOLS
Main Program: SAPLFVD_MD_TOOLS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FVD_MD_TOOLS_CASHFLOW_SIMU 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 'FVD_MD_TOOLS_CASHFLOW_SIMU'"Simulation of Disbursements in Flow Records.
EXPORTING
I_STR_VDARL = "Loan
I_STR_VZZKOKO = "Tabelle VZZKOKO
I_TAB_VVZZKOPO = "Table Type for Table VVZZKOPO
I_TAB_DISB = "Table Type for VDDISBURSEMENT
* I_FLG_LOANCHARAC = 'X' "Ermittlung der Auswirkungen der Bewegungen auf die Verarbeitungsmerkmale
* I_CASH_FLOW_END_DATE = "Ende-Datum für Finanzstromberechnung
IMPORTING
E_BFRATE = "Amount in Position Currency
E_DATE_NEXT_RATE = "Due Date
E_DATE_REPAY_START = "DATS Field Type
E_BFRATE_LAST = "Amount for Final Loan Installment Payment
E_DATUM_LFZ = "Date and Time, Current (Application Server) Date
E_DRSALDO = "Date and Time, Current (Application Server) Date
E_RSALDO = "Nominal Amount
E_RCD_NEG_REPAYMENT = "Return Value, Return Value after ABAP Statements
E_SULTEFSZ = "Month-End Indicator for End of Fixed Period
E_SINCL = "Inclusive Indicator for Beginning and End of a Period
E_DATE_FIRST_RATE = "Due Date for First Installment to Include a Repayment Amount
E_RATE_COUNT = "Number of Payment Installments Requested by Loans Partner
CHANGING
C_TAB_VZZBEPP = "Table Type for Structure VZZBEPP
EXCEPTIONS
ERROR_CASHFLOW = 1
IMPORTING Parameters details for FVD_MD_TOOLS_CASHFLOW_SIMU
I_STR_VDARL - Loan
Data type: VDARLOptional: No
Call by Reference: Yes
I_STR_VZZKOKO - Tabelle VZZKOKO
Data type: VZZKOKOOptional: No
Call by Reference: Yes
I_TAB_VVZZKOPO - Table Type for Table VVZZKOPO
Data type: TRTY_VVZZKOPOOptional: No
Call by Reference: Yes
I_TAB_DISB - Table Type for VDDISBURSEMENT
Data type: TRTY_VDDISBURSEMENTOptional: No
Call by Reference: Yes
I_FLG_LOANCHARAC - Ermittlung der Auswirkungen der Bewegungen auf die Verarbeitungsmerkmale
Data type: CDefault: 'X'
Optional: Yes
Call by Reference: Yes
I_CASH_FLOW_END_DATE - Ende-Datum für Finanzstromberechnung
Data type: DATSOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FVD_MD_TOOLS_CASHFLOW_SIMU
E_BFRATE - Amount in Position Currency
Data type: VZZBEPP-BFRATEOptional: No
Call by Reference: Yes
E_DATE_NEXT_RATE - Due Date
Data type: DFAELLOptional: No
Call by Reference: Yes
E_DATE_REPAY_START - DATS Field Type
Data type: DATSOptional: No
Call by Reference: Yes
E_BFRATE_LAST - Amount for Final Loan Installment Payment
Data type: TB_VIEW_CLEARING_RATEOptional: No
Call by Reference: Yes
E_DATUM_LFZ - Date and Time, Current (Application Server) Date
Data type: SY-DATUMOptional: No
Call by Reference: Yes
E_DRSALDO - Date and Time, Current (Application Server) Date
Data type: SY-DATUMOptional: No
Call by Reference: Yes
E_RSALDO - Nominal Amount
Data type: VZZBEPP-BNWHROptional: No
Call by Reference: Yes
E_RCD_NEG_REPAYMENT - Return Value, Return Value after ABAP Statements
Data type: SYSUBRCOptional: No
Call by Reference: Yes
E_SULTEFSZ - Month-End Indicator for End of Fixed Period
Data type: VVSULTEFSZOptional: No
Call by Reference: Yes
E_SINCL - Inclusive Indicator for Beginning and End of a Period
Data type: VVSINCLOptional: No
Call by Reference: Yes
E_DATE_FIRST_RATE - Due Date for First Installment to Include a Repayment Amount
Data type: TB_VIEW_DATE_FIRST_RATEOptional: No
Call by Reference: Yes
E_RATE_COUNT - Number of Payment Installments Requested by Loans Partner
Data type: TB_MODEL_RATE_COUNTOptional: No
Call by Reference: Yes
CHANGING Parameters details for FVD_MD_TOOLS_CASHFLOW_SIMU
C_TAB_VZZBEPP - Table Type for Structure VZZBEPP
Data type: TRTY_VZZBEPPOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR_CASHFLOW - Fehler in Finanzstromberechung
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FVD_MD_TOOLS_CASHFLOW_SIMU 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_e_bfrate | TYPE VZZBEPP-BFRATE, " | |||
| lv_i_str_vdarl | TYPE VDARL, " | |||
| lv_c_tab_vzzbepp | TYPE TRTY_VZZBEPP, " | |||
| lv_error_cashflow | TYPE TRTY_VZZBEPP, " | |||
| lv_e_date_next_rate | TYPE DFAELL, " | |||
| lv_e_date_repay_start | TYPE DATS, " | |||
| lv_e_bfrate_last | TYPE TB_VIEW_CLEARING_RATE, " | |||
| lv_e_datum_lfz | TYPE SY-DATUM, " | |||
| lv_i_str_vzzkoko | TYPE VZZKOKO, " | |||
| lv_e_drsaldo | TYPE SY-DATUM, " | |||
| lv_i_tab_vvzzkopo | TYPE TRTY_VVZZKOPO, " | |||
| lv_e_rsaldo | TYPE VZZBEPP-BNWHR, " | |||
| lv_i_tab_disb | TYPE TRTY_VDDISBURSEMENT, " | |||
| lv_i_flg_loancharac | TYPE C, " 'X' | |||
| lv_e_rcd_neg_repayment | TYPE SYSUBRC, " | |||
| lv_e_sultefsz | TYPE VVSULTEFSZ, " | |||
| lv_i_cash_flow_end_date | TYPE DATS, " | |||
| lv_e_sincl | TYPE VVSINCL, " | |||
| lv_e_date_first_rate | TYPE TB_VIEW_DATE_FIRST_RATE, " | |||
| lv_e_rate_count | TYPE TB_MODEL_RATE_COUNT. " |
|   CALL FUNCTION 'FVD_MD_TOOLS_CASHFLOW_SIMU' "Simulation of Disbursements in Flow Records |
| EXPORTING | ||
| I_STR_VDARL | = lv_i_str_vdarl | |
| I_STR_VZZKOKO | = lv_i_str_vzzkoko | |
| I_TAB_VVZZKOPO | = lv_i_tab_vvzzkopo | |
| I_TAB_DISB | = lv_i_tab_disb | |
| I_FLG_LOANCHARAC | = lv_i_flg_loancharac | |
| I_CASH_FLOW_END_DATE | = lv_i_cash_flow_end_date | |
| IMPORTING | ||
| E_BFRATE | = lv_e_bfrate | |
| E_DATE_NEXT_RATE | = lv_e_date_next_rate | |
| E_DATE_REPAY_START | = lv_e_date_repay_start | |
| E_BFRATE_LAST | = lv_e_bfrate_last | |
| E_DATUM_LFZ | = lv_e_datum_lfz | |
| E_DRSALDO | = lv_e_drsaldo | |
| E_RSALDO | = lv_e_rsaldo | |
| E_RCD_NEG_REPAYMENT | = lv_e_rcd_neg_repayment | |
| E_SULTEFSZ | = lv_e_sultefsz | |
| E_SINCL | = lv_e_sincl | |
| E_DATE_FIRST_RATE | = lv_e_date_first_rate | |
| E_RATE_COUNT | = lv_e_rate_count | |
| CHANGING | ||
| C_TAB_VZZBEPP | = lv_c_tab_vzzbepp | |
| EXCEPTIONS | ||
| ERROR_CASHFLOW = 1 | ||
| . " FVD_MD_TOOLS_CASHFLOW_SIMU | ||
ABAP code using 7.40 inline data declarations to call FM FVD_MD_TOOLS_CASHFLOW_SIMU
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 BFRATE FROM VZZBEPP INTO @DATA(ld_e_bfrate). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_e_datum_lfz). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_e_drsaldo). | ||||
| "SELECT single BNWHR FROM VZZBEPP INTO @DATA(ld_e_rsaldo). | ||||
| DATA(ld_i_flg_loancharac) | = 'X'. | |||
Search for further information about these or an SAP related objects