SAP FVD_FAC_OL_CALC_FAC_AMTS Function Module for Calculate amounts for facility
FVD_FAC_OL_CALC_FAC_AMTS is a standard fvd fac ol calc fac amts SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Calculate amounts for facility 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 fac ol calc fac amts FM, simply by entering the name FVD_FAC_OL_CALC_FAC_AMTS into the relevant SAP transaction such as SE37 or SE38.
Function Group: FVD_FAC_OL
Program Name: SAPLFVD_FAC_OL
Main Program: SAPLFVD_FAC_OL
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FVD_FAC_OL_CALC_FAC_AMTS 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_FAC_OL_CALC_FAC_AMTS'" Calculate amounts for facility.
EXPORTING
I_STR_FACILITY = "Loans
I_TAB_SUBFACILITY = "Table Type for VDSUBFACILITY
I_TAB_DRAWDOWNS = "Table Type for Table VDARL
I_TAB_DD_SF_LINK = "Table type for VDLINK_DD2SF
* I_CALLED_FROM_SCREEN = "If called from screen then this should be set
* I_VZZKOKO_DELFZ = "End of Term
IMPORTING
E_STR_FACILITY_DISPLAY = "Displays Facility Information
E_TAB_SUBFACILIY_DISPLAY = "Subfacility and Amounts Used By Drawdown
E_TAB_DRAWDOWN_DISPLAY = "Drawdowns and Information for Display
E_TAB_RLOAM_DD = "Table for capitals for drawdwons
EXCEPTIONS
PARAMETER_ERROR = 1 INTERNAL_ERROR = 2
IMPORTING Parameters details for FVD_FAC_OL_CALC_FAC_AMTS
I_STR_FACILITY - Loans
Data type: VDARLOptional: No
Call by Reference: Yes
I_TAB_SUBFACILITY - Table Type for VDSUBFACILITY
Data type: TRTY_VDSUBFACILITYOptional: No
Call by Reference: Yes
I_TAB_DRAWDOWNS - Table Type for Table VDARL
Data type: TRTY_VDARLOptional: No
Call by Reference: Yes
I_TAB_DD_SF_LINK - Table type for VDLINK_DD2SF
Data type: TRTY_VDLINK_DD2SFOptional: No
Call by Reference: Yes
I_CALLED_FROM_SCREEN - If called from screen then this should be set
Data type: BOOLE_DOptional: Yes
Call by Reference: Yes
I_VZZKOKO_DELFZ - End of Term
Data type: VZZKOKO-DELFZOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FVD_FAC_OL_CALC_FAC_AMTS
E_STR_FACILITY_DISPLAY - Displays Facility Information
Data type: RFACILITY_4_DISPLAYOptional: No
Call by Reference: Yes
E_TAB_SUBFACILIY_DISPLAY - Subfacility and Amounts Used By Drawdown
Data type: TRTY_FAC_SUBFACILITY_4_DISPLAYOptional: No
Call by Reference: Yes
E_TAB_DRAWDOWN_DISPLAY - Drawdowns and Information for Display
Data type: TRTY_FAC_DRAWDOWNS_4_DISPLAYOptional: No
Call by Reference: Yes
E_TAB_RLOAM_DD - Table for capitals for drawdwons
Data type: TRTY_RLOAM_DRAWDOWNSOptional: No
Call by Reference: Yes
EXCEPTIONS details
PARAMETER_ERROR - Parameter error
Data type:Optional: No
Call by Reference: Yes
INTERNAL_ERROR - Internal error
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for FVD_FAC_OL_CALC_FAC_AMTS 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_i_str_facility | TYPE VDARL, " | |||
| lv_parameter_error | TYPE VDARL, " | |||
| lv_e_str_facility_display | TYPE RFACILITY_4_DISPLAY, " | |||
| lv_internal_error | TYPE RFACILITY_4_DISPLAY, " | |||
| lv_i_tab_subfacility | TYPE TRTY_VDSUBFACILITY, " | |||
| lv_e_tab_subfaciliy_display | TYPE TRTY_FAC_SUBFACILITY_4_DISPLAY, " | |||
| lv_i_tab_drawdowns | TYPE TRTY_VDARL, " | |||
| lv_e_tab_drawdown_display | TYPE TRTY_FAC_DRAWDOWNS_4_DISPLAY, " | |||
| lv_e_tab_rloam_dd | TYPE TRTY_RLOAM_DRAWDOWNS, " | |||
| lv_i_tab_dd_sf_link | TYPE TRTY_VDLINK_DD2SF, " | |||
| lv_i_called_from_screen | TYPE BOOLE_D, " | |||
| lv_i_vzzkoko_delfz | TYPE VZZKOKO-DELFZ. " |
|   CALL FUNCTION 'FVD_FAC_OL_CALC_FAC_AMTS' " Calculate amounts for facility |
| EXPORTING | ||
| I_STR_FACILITY | = lv_i_str_facility | |
| I_TAB_SUBFACILITY | = lv_i_tab_subfacility | |
| I_TAB_DRAWDOWNS | = lv_i_tab_drawdowns | |
| I_TAB_DD_SF_LINK | = lv_i_tab_dd_sf_link | |
| I_CALLED_FROM_SCREEN | = lv_i_called_from_screen | |
| I_VZZKOKO_DELFZ | = lv_i_vzzkoko_delfz | |
| IMPORTING | ||
| E_STR_FACILITY_DISPLAY | = lv_e_str_facility_display | |
| E_TAB_SUBFACILIY_DISPLAY | = lv_e_tab_subfaciliy_display | |
| E_TAB_DRAWDOWN_DISPLAY | = lv_e_tab_drawdown_display | |
| E_TAB_RLOAM_DD | = lv_e_tab_rloam_dd | |
| EXCEPTIONS | ||
| PARAMETER_ERROR = 1 | ||
| INTERNAL_ERROR = 2 | ||
| . " FVD_FAC_OL_CALC_FAC_AMTS | ||
ABAP code using 7.40 inline data declarations to call FM FVD_FAC_OL_CALC_FAC_AMTS
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 DELFZ FROM VZZKOKO INTO @DATA(ld_i_vzzkoko_delfz). | ||||
Search for further information about these or an SAP related objects