SAP FIMA_INTEREST_COMPUTE_2 Function Module for









FIMA_INTEREST_COMPUTE_2 is a standard fima interest compute 2 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 2 FM, simply by entering the name FIMA_INTEREST_COMPUTE_2 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_2 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_2'"
EXPORTING
* I_FLG_EXPO = ' ' "Exponential Interest Calculation
I_BBASIS = "
I_PZINS = "
* I_SIRUNIT = 0 "Time Unit for the Interest Rate
* I_ATAGE = 0 "Number of days
* I_ASEKUNDEN = 0 "Number of Seconds
* I_ABASTAGE = 0 "
* I_AMMRHYZV = '12' "Interest Settlement Frequency for Exponential Interest Calc.

IMPORTING
E_BZINSEN_5_DEC = "Interest amount
.



IMPORTING Parameters details for FIMA_INTEREST_COMPUTE_2

I_FLG_EXPO - Exponential Interest Calculation

Data type: VTBBEWE-JEXPOZINS
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_BBASIS -

Data type: TFMBBWHR2
Optional: No
Call by Reference: No ( called with pass by value option)

I_PZINS -

Data type: PKOND2
Optional: No
Call by Reference: No ( called with pass by value option)

I_SIRUNIT - Time Unit for the Interest Rate

Data type: TFM_SIRUNIT
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ATAGE - Number of days

Data type: VTBBEWE-ATAGE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ASEKUNDEN - Number of Seconds

Data type: VTBBEWE-ASEKUNDEN
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ABASTAGE -

Data type: TRFF_VALUE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_AMMRHYZV - Interest Settlement Frequency for Exponential Interest Calc.

Data type: VTBBEWE-AMMRHYZV
Default: '12'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FIMA_INTEREST_COMPUTE_2

E_BZINSEN_5_DEC - Interest amount

Data type: TFMBBWHR2
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for FIMA_INTEREST_COMPUTE_2 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_flg_expo  TYPE VTBBEWE-JEXPOZINS, "   SPACE
lv_e_bzinsen_5_dec  TYPE TFMBBWHR2, "   
lv_i_bbasis  TYPE TFMBBWHR2, "   
lv_i_pzins  TYPE PKOND2, "   
lv_i_sirunit  TYPE TFM_SIRUNIT, "   0
lv_i_atage  TYPE VTBBEWE-ATAGE, "   0
lv_i_asekunden  TYPE VTBBEWE-ASEKUNDEN, "   0
lv_i_abastage  TYPE TRFF_VALUE, "   0
lv_i_ammrhyzv  TYPE VTBBEWE-AMMRHYZV. "   '12'

  CALL FUNCTION 'FIMA_INTEREST_COMPUTE_2'  "
    EXPORTING
         I_FLG_EXPO = lv_i_flg_expo
         I_BBASIS = lv_i_bbasis
         I_PZINS = lv_i_pzins
         I_SIRUNIT = lv_i_sirunit
         I_ATAGE = lv_i_atage
         I_ASEKUNDEN = lv_i_asekunden
         I_ABASTAGE = lv_i_abastage
         I_AMMRHYZV = lv_i_ammrhyzv
    IMPORTING
         E_BZINSEN_5_DEC = lv_e_bzinsen_5_dec
. " FIMA_INTEREST_COMPUTE_2




ABAP code using 7.40 inline data declarations to call FM FIMA_INTEREST_COMPUTE_2

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 ATAGE FROM VTBBEWE INTO @DATA(ld_i_atage).
 
"SELECT single ASEKUNDEN FROM VTBBEWE INTO @DATA(ld_i_asekunden).
 
 
"SELECT single AMMRHYZV FROM VTBBEWE INTO @DATA(ld_i_ammrhyzv).
DATA(ld_i_ammrhyzv) = '12'.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!