SAP FIMA_INTEREST_COMPUTE Function Module for
FIMA_INTEREST_COMPUTE is a standard fima interest compute SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 fima interest compute FM, simply by entering the name FIMA_INTEREST_COMPUTE into the relevant SAP transaction such as SE37 or SE38.
Function Group: FF05
Program Name: SAPLFF05
Main Program: SAPLFF05
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FIMA_INTEREST_COMPUTE 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 'FIMA_INTEREST_COMPUTE'".
EXPORTING
* I_FLG_EXPO = ' ' "Exponential Interest Calculation
* I_SZBMETH = ' ' "
* I_AMMRHYZV = '12' "Interest Settlement Frequency for Exponential Interest Calc.
I_BBASIS = "
I_PZINS = "
* I_SIRUNIT = 0 "Time Unit for the Interest Rate
* I_PPAYMENT = 0 "
* I_ATAGE = 0 "Number of days
* I_ASEKUNDEN = 0 "Number of Seconds
* I_ABASTAGE = 0 "
* I_STGBASIS = '2' "
IMPORTING
E_BZINSEN = "Interest amount
IMPORTING Parameters details for FIMA_INTEREST_COMPUTE
I_FLG_EXPO - Exponential Interest Calculation
Data type: VTBBEWE-JEXPOZINSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SZBMETH -
Data type: VTBBEWE-SZBMETHDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AMMRHYZV - Interest Settlement Frequency for Exponential Interest Calc.
Data type: VTBBEWE-AMMRHYZVDefault: '12'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_BBASIS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
I_PZINS -
Data type: TRFF_VALUEOptional: No
Call by Reference: No ( called with pass by value option)
I_SIRUNIT - Time Unit for the Interest Rate
Data type: TFM_SIRUNITOptional: Yes
Call by Reference: No ( called with pass by value option)
I_PPAYMENT -
Data type: VTBBEWE-PPAYMENTOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ATAGE - Number of days
Data type: VTBBEWE-ATAGEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ASEKUNDEN - Number of Seconds
Data type: VTBBEWE-ASEKUNDENOptional: Yes
Call by Reference: No ( called with pass by value option)
I_ABASTAGE -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
I_STGBASIS -
Data type: VTBBEWE-STGBASISDefault: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FIMA_INTEREST_COMPUTE
E_BZINSEN - Interest amount
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FIMA_INTEREST_COMPUTE 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_bzinsen | TYPE STRING, " | |||
| lv_i_flg_expo | TYPE VTBBEWE-JEXPOZINS, " SPACE | |||
| lv_i_szbmeth | TYPE VTBBEWE-SZBMETH, " ' ' | |||
| lv_i_ammrhyzv | TYPE VTBBEWE-AMMRHYZV, " '12' | |||
| lv_i_bbasis | TYPE VTBBEWE, " | |||
| lv_i_pzins | TYPE TRFF_VALUE, " | |||
| lv_i_sirunit | TYPE TFM_SIRUNIT, " 0 | |||
| lv_i_ppayment | TYPE VTBBEWE-PPAYMENT, " 0 | |||
| lv_i_atage | TYPE VTBBEWE-ATAGE, " 0 | |||
| lv_i_asekunden | TYPE VTBBEWE-ASEKUNDEN, " 0 | |||
| lv_i_abastage | TYPE VTBBEWE, " 0 | |||
| lv_i_stgbasis | TYPE VTBBEWE-STGBASIS. " '2' |
|   CALL FUNCTION 'FIMA_INTEREST_COMPUTE' " |
| EXPORTING | ||
| I_FLG_EXPO | = lv_i_flg_expo | |
| I_SZBMETH | = lv_i_szbmeth | |
| I_AMMRHYZV | = lv_i_ammrhyzv | |
| I_BBASIS | = lv_i_bbasis | |
| I_PZINS | = lv_i_pzins | |
| I_SIRUNIT | = lv_i_sirunit | |
| I_PPAYMENT | = lv_i_ppayment | |
| I_ATAGE | = lv_i_atage | |
| I_ASEKUNDEN | = lv_i_asekunden | |
| I_ABASTAGE | = lv_i_abastage | |
| I_STGBASIS | = lv_i_stgbasis | |
| IMPORTING | ||
| E_BZINSEN | = lv_e_bzinsen | |
| . " FIMA_INTEREST_COMPUTE | ||
ABAP code using 7.40 inline data declarations to call FM FIMA_INTEREST_COMPUTE
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 JEXPOZINS FROM VTBBEWE INTO @DATA(ld_i_flg_expo). | ||||
| DATA(ld_i_flg_expo) | = ' '. | |||
| "SELECT single SZBMETH FROM VTBBEWE INTO @DATA(ld_i_szbmeth). | ||||
| DATA(ld_i_szbmeth) | = ' '. | |||
| "SELECT single AMMRHYZV FROM VTBBEWE INTO @DATA(ld_i_ammrhyzv). | ||||
| DATA(ld_i_ammrhyzv) | = '12'. | |||
| "SELECT single PPAYMENT FROM VTBBEWE INTO @DATA(ld_i_ppayment). | ||||
| "SELECT single ATAGE FROM VTBBEWE INTO @DATA(ld_i_atage). | ||||
| "SELECT single ASEKUNDEN FROM VTBBEWE INTO @DATA(ld_i_asekunden). | ||||
| "SELECT single STGBASIS FROM VTBBEWE INTO @DATA(ld_i_stgbasis). | ||||
| DATA(ld_i_stgbasis) | = '2'. | |||
Search for further information about these or an SAP related objects