SAP Function Modules

FIMA_CASH_FLOW_COMPUTE SAP Function module







FIMA_CASH_FLOW_COMPUTE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name FIMA_CASH_FLOW_COMPUTE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: FF13A
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM FIMA_CASH_FLOW_COMPUTE - FIMA CASH FLOW COMPUTE





CALL FUNCTION 'FIMA_CASH_FLOW_COMPUTE' "
* EXPORTING
*   i_flg_iteration = SPACE     " trff_flg
*   i_biter = 0                 " vzzeffz-biter
*   i_flg_end_of_term = SPACE   " trff_flg
*   i_min_last_repayment = 0    " tfm_residualvalue
  IMPORTING
    e_date_balance =            " sy-datum      Date and Time, Current (Application Server) Date
    e_balance =                 "               Remaining Capital
    e_end_of_term =             " tfm_delfz     Internal Term End for Financial Mathematics
    e_end_of_term_incl =        " vvsinclbis
    e_end_of_term_ult =         " vvsultbis
  CHANGING
    ct_bewe =                   " fima_tab_vtbbewe  Transfer Table for Flows
*   ct_bbas =                   " fima_tab_vzzbbas  Transfer Table for Calculation Bases
    .  "  FIMA_CASH_FLOW_COMPUTE

ABAP code example for Function Module FIMA_CASH_FLOW_COMPUTE





The ABAP code below is a full code listing to execute function module FIMA_CASH_FLOW_COMPUTE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_e_date_balance  TYPE SY-DATUM ,
ld_e_balance  TYPE STRING ,
ld_e_end_of_term  TYPE TFM_DELFZ ,
ld_e_end_of_term_incl  TYPE VVSINCLBIS ,
ld_e_end_of_term_ult  TYPE VVSULTBIS .

DATA(ld_ct_bewe) = 'Check type of data required'.
DATA(ld_ct_bbas) = 'Check type of data required'.
DATA(ld_i_flg_iteration) = 'Check type of data required'.

DATA(ld_i_biter) = Check type of data required
DATA(ld_i_flg_end_of_term) = 'Check type of data required'.
DATA(ld_i_min_last_repayment) = 'Check type of data required'. . CALL FUNCTION 'FIMA_CASH_FLOW_COMPUTE' * EXPORTING * i_flg_iteration = ld_i_flg_iteration * i_biter = ld_i_biter * i_flg_end_of_term = ld_i_flg_end_of_term * i_min_last_repayment = ld_i_min_last_repayment IMPORTING e_date_balance = ld_e_date_balance e_balance = ld_e_balance e_end_of_term = ld_e_end_of_term e_end_of_term_incl = ld_e_end_of_term_incl e_end_of_term_ult = ld_e_end_of_term_ult CHANGING ct_bewe = ld_ct_bewe * ct_bbas = ld_ct_bbas . " FIMA_CASH_FLOW_COMPUTE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_ct_bewe  TYPE FIMA_TAB_VTBBEWE ,
ld_e_date_balance  TYPE SY-DATUM ,
ld_i_flg_iteration  TYPE TRFF_FLG ,
ld_ct_bbas  TYPE FIMA_TAB_VZZBBAS ,
ld_e_balance  TYPE STRING ,
ld_i_biter  TYPE VZZEFFZ-BITER ,
ld_e_end_of_term  TYPE TFM_DELFZ ,
ld_i_flg_end_of_term  TYPE TRFF_FLG ,
ld_e_end_of_term_incl  TYPE VVSINCLBIS ,
ld_i_min_last_repayment  TYPE TFM_RESIDUALVALUE ,
ld_e_end_of_term_ult  TYPE VVSULTBIS .

ld_ct_bewe = 'Check type of data required'.
ld_i_flg_iteration = 'Check type of data required'.
ld_ct_bbas = 'Check type of data required'.

ld_i_biter = Check type of data required
ld_i_flg_end_of_term = 'Check type of data required'.
ld_i_min_last_repayment = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name FIMA_CASH_FLOW_COMPUTE or its description.