SAP FIMA_CONSUMER_CREDIT_CALCULATE Function Module for









FIMA_CONSUMER_CREDIT_CALCULATE is a standard fima consumer credit calculate 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 consumer credit calculate FM, simply by entering the name FIMA_CONSUMER_CREDIT_CALCULATE into the relevant SAP transaction such as SE37 or SE38.

Function Group: FF17
Program Name: SAPLFF17
Main Program: SAPLFF17
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function FIMA_CONSUMER_CREDIT_CALCULATE 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_CONSUMER_CREDIT_CALCULATE'"
EXPORTING
I_AMOUNT = "
* I_RUNIT = 1 "
* I_FLG_LAST_PAYMENT = "
I_MONTHS = "
I_RATE = "
* I_INTEREST_METHOD = '1' "
* I_INTEREST_CALENDAR = '01' "
* I_FLG_EXPO_INT_CALC = "
* I_SETTLEMENT_FREQU_4_EXP_CALC = "
* I_CHARGE_IN_PERCENT = "
* I_RTYPE = '+' "

IMPORTING
E_1ST_PAYMENT = "
E_NEXT_PAYMENT = "
E_LAST_PAYMENT = "
E_CREDIT_AMOUNT = "
E_TOTAL_INTEREST_AMOUNT = "
E_CHARGE_AMOUNT = "
E_TOTAL_CREDIT_AMOUNT = "
ET_BEWE = "
.



IMPORTING Parameters details for FIMA_CONSUMER_CREDIT_CALCULATE

I_AMOUNT -

Data type: TFM_BNWHR
Optional: No
Call by Reference: Yes

I_RUNIT -

Data type: TFMBRUNIT
Default: 1
Optional: Yes
Call by Reference: Yes

I_FLG_LAST_PAYMENT -

Data type: C
Optional: Yes
Call by Reference: Yes

I_MONTHS -

Data type: TFMATAGE
Optional: No
Call by Reference: Yes

I_RATE -

Data type: PKOND
Optional: No
Call by Reference: Yes

I_INTEREST_METHOD -

Data type: SZBMETH_NEW
Default: '1'
Optional: Yes
Call by Reference: Yes

I_INTEREST_CALENDAR -

Data type: TFMSKALIDWT
Default: '01'
Optional: Yes
Call by Reference: Yes

I_FLG_EXPO_INT_CALC -

Data type: TB_JZINSRE
Optional: Yes
Call by Reference: Yes

I_SETTLEMENT_FREQU_4_EXP_CALC -

Data type: TFM_AMMRHYZV
Optional: Yes
Call by Reference: Yes

I_CHARGE_IN_PERCENT -

Data type: PKOND
Optional: Yes
Call by Reference: Yes

I_RTYPE -

Data type: TFM_SROUND
Default: '+'
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for FIMA_CONSUMER_CREDIT_CALCULATE

E_1ST_PAYMENT -

Data type: TFM_BNWHR
Optional: No
Call by Reference: Yes

E_NEXT_PAYMENT -

Data type: TFM_BNWHR
Optional: No
Call by Reference: Yes

E_LAST_PAYMENT -

Data type: TFM_BNWHR
Optional: No
Call by Reference: Yes

E_CREDIT_AMOUNT -

Data type: TFM_BNWHR
Optional: No
Call by Reference: Yes

E_TOTAL_INTEREST_AMOUNT -

Data type: TFM_BNWHR
Optional: No
Call by Reference: Yes

E_CHARGE_AMOUNT -

Data type: TFM_BNWHR
Optional: No
Call by Reference: Yes

E_TOTAL_CREDIT_AMOUNT -

Data type: TFM_BNWHR
Optional: No
Call by Reference: Yes

ET_BEWE -

Data type: FIMA_TAB_VTBBEWE
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for FIMA_CONSUMER_CREDIT_CALCULATE 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_amount  TYPE TFM_BNWHR, "   
lv_e_1st_payment  TYPE TFM_BNWHR, "   
lv_i_runit  TYPE TFMBRUNIT, "   1
lv_i_flg_last_payment  TYPE C, "   
lv_i_months  TYPE TFMATAGE, "   
lv_e_next_payment  TYPE TFM_BNWHR, "   
lv_i_rate  TYPE PKOND, "   
lv_e_last_payment  TYPE TFM_BNWHR, "   
lv_e_credit_amount  TYPE TFM_BNWHR, "   
lv_i_interest_method  TYPE SZBMETH_NEW, "   '1'
lv_i_interest_calendar  TYPE TFMSKALIDWT, "   '01'
lv_e_total_interest_amount  TYPE TFM_BNWHR, "   
lv_e_charge_amount  TYPE TFM_BNWHR, "   
lv_i_flg_expo_int_calc  TYPE TB_JZINSRE, "   
lv_e_total_credit_amount  TYPE TFM_BNWHR, "   
lv_i_settlement_frequ_4_exp_calc  TYPE TFM_AMMRHYZV, "   
lv_et_bewe  TYPE FIMA_TAB_VTBBEWE, "   
lv_i_charge_in_percent  TYPE PKOND, "   
lv_i_rtype  TYPE TFM_SROUND. "   '+'

  CALL FUNCTION 'FIMA_CONSUMER_CREDIT_CALCULATE'  "
    EXPORTING
         I_AMOUNT = lv_i_amount
         I_RUNIT = lv_i_runit
         I_FLG_LAST_PAYMENT = lv_i_flg_last_payment
         I_MONTHS = lv_i_months
         I_RATE = lv_i_rate
         I_INTEREST_METHOD = lv_i_interest_method
         I_INTEREST_CALENDAR = lv_i_interest_calendar
         I_FLG_EXPO_INT_CALC = lv_i_flg_expo_int_calc
         I_SETTLEMENT_FREQU_4_EXP_CALC = lv_i_settlement_frequ_4_exp_calc
         I_CHARGE_IN_PERCENT = lv_i_charge_in_percent
         I_RTYPE = lv_i_rtype
    IMPORTING
         E_1ST_PAYMENT = lv_e_1st_payment
         E_NEXT_PAYMENT = lv_e_next_payment
         E_LAST_PAYMENT = lv_e_last_payment
         E_CREDIT_AMOUNT = lv_e_credit_amount
         E_TOTAL_INTEREST_AMOUNT = lv_e_total_interest_amount
         E_CHARGE_AMOUNT = lv_e_charge_amount
         E_TOTAL_CREDIT_AMOUNT = lv_e_total_credit_amount
         ET_BEWE = lv_et_bewe
. " FIMA_CONSUMER_CREDIT_CALCULATE




ABAP code using 7.40 inline data declarations to call FM FIMA_CONSUMER_CREDIT_CALCULATE

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.

 
 
DATA(ld_i_runit) = 1.
 
 
 
 
 
 
 
DATA(ld_i_interest_method) = '1'.
 
DATA(ld_i_interest_calendar) = '01'.
 
 
 
 
 
 
 
 
DATA(ld_i_rtype) = '+'.
 


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!