SAP FVD_MODEL_CALC_CURRENT_DATES Function Module for Recalculation of Date-Related Details in Contract (Consumer Loan)
FVD_MODEL_CALC_CURRENT_DATES is a standard fvd model calc current dates SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Recalculation of Date-Related Details in Contract (Consumer Loan) 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 model calc current dates FM, simply by entering the name FVD_MODEL_CALC_CURRENT_DATES into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVD_MODEL_TOOLS
Program Name: SAPLFVD_MODEL_TOOLS
Main Program: SAPLFVD_MODEL_TOOLS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FVD_MODEL_CALC_CURRENT_DATES 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_MODEL_CALC_CURRENT_DATES'"Recalculation of Date-Related Details in Contract (Consumer Loan).
EXPORTING
I_STR_VDARL = "
I_STR_VZZKOKO = "
I_TAB_VVZZKOPO = "
I_TAB_VZZBEPP = "
* I_DKEYD_RCOUNT = SY-DATUM "Stichtag für Anzahl zukünftiger Raten
* I_AMMRHY = '001' "Number of Months in Period
I_LOG_HANDLE = "Application Log: Log Handle
IMPORTING
E_DCOMPL_DISB = "Datum der Vollauszahlung (Initial = Nicht vollausgezahlt)
E_BFRATE_LAST = "Letzte Rate (Ausgleichsrate)
E_RATE_COUNT = "Anzahl Raten ab Tilgungsbeginn
E_RATE_COUNT_KEYD = "Anzahl Raten ab Stichtag
E_OVERALL_RUNTIME = "Gesamtlaufzeit in Monaten
E_RC = "Rückgabewert vom Application-Log
E_NEXT_DUE_DATE = "Due Date of Next Installment
E_LAST_DUE_DATE = "Last Due Date
E_SULTEFSZ = "Month-End Indicator for End of Fixed Period
E_SINCL = "Inclusive indicator for the end of the fixed period
E_DFIRST_DISB = "Datum der ersten Auszahlung
E_DINTEREST_DUE1 = "Erste Fälligkeit der Zinsen
E_ODD_DAYS = "Anzahl der Tage, für die Vorlaufzinsen anfallen
E_BSUM_ODD_DAYS_INTEREST = "Summe der Vorlaufzinsen
E_DREPAY_START = "Repayment Start
E_DREPAY_DUE1 = "Erste Fälligkeit der Tilgung
E_DREPAY_DUE2 = "Zweite Fälligkeit der Tilgung
E_DTERM_END = "End of Term
EXCEPTIONS
ERROR = 1
IMPORTING Parameters details for FVD_MODEL_CALC_CURRENT_DATES
I_STR_VDARL -
Data type: VDARLOptional: No
Call by Reference: Yes
I_STR_VZZKOKO -
Data type: VZZKOKOOptional: No
Call by Reference: Yes
I_TAB_VVZZKOPO -
Data type: TRTY_VVZZKOPOOptional: No
Call by Reference: Yes
I_TAB_VZZBEPP -
Data type: TRTY_VZZBEPPOptional: No
Call by Reference: Yes
I_DKEYD_RCOUNT - Stichtag für Anzahl zukünftiger Raten
Data type: DATSDefault: SY-DATUM
Optional: Yes
Call by Reference: Yes
I_AMMRHY - Number of Months in Period
Data type: AMMRHYDefault: '001'
Optional: Yes
Call by Reference: Yes
I_LOG_HANDLE - Application Log: Log Handle
Data type: BALLOGHNDLOptional: No
Call by Reference: Yes
EXPORTING Parameters details for FVD_MODEL_CALC_CURRENT_DATES
E_DCOMPL_DISB - Datum der Vollauszahlung (Initial = Nicht vollausgezahlt)
Data type: DATSOptional: No
Call by Reference: Yes
E_BFRATE_LAST - Letzte Rate (Ausgleichsrate)
Data type: BBWHROptional: No
Call by Reference: Yes
E_RATE_COUNT - Anzahl Raten ab Tilgungsbeginn
Data type: TB_MODEL_RATE_COUNTOptional: No
Call by Reference: Yes
E_RATE_COUNT_KEYD - Anzahl Raten ab Stichtag
Data type: TB_MODEL_RATE_COUNTOptional: No
Call by Reference: Yes
E_OVERALL_RUNTIME - Gesamtlaufzeit in Monaten
Data type: TB_VIEW_OVERALL_RUNTIMEOptional: No
Call by Reference: Yes
E_RC - Rückgabewert vom Application-Log
Data type: SY-SUBRCOptional: No
Call by Reference: Yes
E_NEXT_DUE_DATE - Due Date of Next Installment
Data type: TB_VIEW_DATE_NEXT_RATEOptional: No
Call by Reference: Yes
E_LAST_DUE_DATE - Last Due Date
Data type: DFAELLOptional: 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 the end of the fixed period
Data type: VVSINCLOptional: No
Call by Reference: Yes
E_DFIRST_DISB - Datum der ersten Auszahlung
Data type: DATSOptional: No
Call by Reference: Yes
E_DINTEREST_DUE1 - Erste Fälligkeit der Zinsen
Data type: DATSOptional: No
Call by Reference: Yes
E_ODD_DAYS - Anzahl der Tage, für die Vorlaufzinsen anfallen
Data type: TB_ODD_DAYSOptional: No
Call by Reference: Yes
E_BSUM_ODD_DAYS_INTEREST - Summe der Vorlaufzinsen
Data type: TB_ODD_DAYS_INTERESTOptional: No
Call by Reference: Yes
E_DREPAY_START - Repayment Start
Data type: DATSOptional: No
Call by Reference: Yes
E_DREPAY_DUE1 - Erste Fälligkeit der Tilgung
Data type: DATSOptional: No
Call by Reference: Yes
E_DREPAY_DUE2 - Zweite Fälligkeit der Tilgung
Data type: DATSOptional: No
Call by Reference: Yes
E_DTERM_END - End of Term
Data type: DATSOptional: No
Call by Reference: Yes
EXCEPTIONS details
ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FVD_MODEL_CALC_CURRENT_DATES 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_error | TYPE STRING, " | |||
| lv_i_str_vdarl | TYPE VDARL, " | |||
| lv_e_dcompl_disb | TYPE DATS, " | |||
| lv_e_bfrate_last | TYPE BBWHR, " | |||
| lv_e_rate_count | TYPE TB_MODEL_RATE_COUNT, " | |||
| lv_e_rate_count_keyd | TYPE TB_MODEL_RATE_COUNT, " | |||
| lv_e_overall_runtime | TYPE TB_VIEW_OVERALL_RUNTIME, " | |||
| lv_e_rc | TYPE SY-SUBRC, " | |||
| lv_e_next_due_date | TYPE TB_VIEW_DATE_NEXT_RATE, " | |||
| lv_e_last_due_date | TYPE DFAELL, " | |||
| lv_e_sultefsz | TYPE VVSULTEFSZ, " | |||
| lv_e_sincl | TYPE VVSINCL, " | |||
| lv_e_dfirst_disb | TYPE DATS, " | |||
| lv_i_str_vzzkoko | TYPE VZZKOKO, " | |||
| lv_i_tab_vvzzkopo | TYPE TRTY_VVZZKOPO, " | |||
| lv_e_dinterest_due1 | TYPE DATS, " | |||
| lv_e_odd_days | TYPE TB_ODD_DAYS, " | |||
| lv_i_tab_vzzbepp | TYPE TRTY_VZZBEPP, " | |||
| lv_i_dkeyd_rcount | TYPE DATS, " SY-DATUM | |||
| lv_e_bsum_odd_days_interest | TYPE TB_ODD_DAYS_INTEREST, " | |||
| lv_i_ammrhy | TYPE AMMRHY, " '001' | |||
| lv_e_drepay_start | TYPE DATS, " | |||
| lv_i_log_handle | TYPE BALLOGHNDL, " | |||
| lv_e_drepay_due1 | TYPE DATS, " | |||
| lv_e_drepay_due2 | TYPE DATS, " | |||
| lv_e_dterm_end | TYPE DATS. " |
|   CALL FUNCTION 'FVD_MODEL_CALC_CURRENT_DATES' "Recalculation of Date-Related Details in Contract (Consumer Loan) |
| EXPORTING | ||
| I_STR_VDARL | = lv_i_str_vdarl | |
| I_STR_VZZKOKO | = lv_i_str_vzzkoko | |
| I_TAB_VVZZKOPO | = lv_i_tab_vvzzkopo | |
| I_TAB_VZZBEPP | = lv_i_tab_vzzbepp | |
| I_DKEYD_RCOUNT | = lv_i_dkeyd_rcount | |
| I_AMMRHY | = lv_i_ammrhy | |
| I_LOG_HANDLE | = lv_i_log_handle | |
| IMPORTING | ||
| E_DCOMPL_DISB | = lv_e_dcompl_disb | |
| E_BFRATE_LAST | = lv_e_bfrate_last | |
| E_RATE_COUNT | = lv_e_rate_count | |
| E_RATE_COUNT_KEYD | = lv_e_rate_count_keyd | |
| E_OVERALL_RUNTIME | = lv_e_overall_runtime | |
| E_RC | = lv_e_rc | |
| E_NEXT_DUE_DATE | = lv_e_next_due_date | |
| E_LAST_DUE_DATE | = lv_e_last_due_date | |
| E_SULTEFSZ | = lv_e_sultefsz | |
| E_SINCL | = lv_e_sincl | |
| E_DFIRST_DISB | = lv_e_dfirst_disb | |
| E_DINTEREST_DUE1 | = lv_e_dinterest_due1 | |
| E_ODD_DAYS | = lv_e_odd_days | |
| E_BSUM_ODD_DAYS_INTEREST | = lv_e_bsum_odd_days_interest | |
| E_DREPAY_START | = lv_e_drepay_start | |
| E_DREPAY_DUE1 | = lv_e_drepay_due1 | |
| E_DREPAY_DUE2 | = lv_e_drepay_due2 | |
| E_DTERM_END | = lv_e_dterm_end | |
| EXCEPTIONS | ||
| ERROR = 1 | ||
| . " FVD_MODEL_CALC_CURRENT_DATES | ||
ABAP code using 7.40 inline data declarations to call FM FVD_MODEL_CALC_CURRENT_DATES
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 SUBRC FROM SY INTO @DATA(ld_e_rc). | ||||
| DATA(ld_i_dkeyd_rcount) | = SY-DATUM. | |||
| DATA(ld_i_ammrhy) | = '001'. | |||
Search for further information about these or an SAP related objects