SAP CASH_FLOW_CONSTRUCT_LOAN Function Module for Intermediate Layer Loan/Financial Mathematics









CASH_FLOW_CONSTRUCT_LOAN is a standard cash flow construct loan SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Intermediate Layer Loan/Financial Mathematics 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 cash flow construct loan FM, simply by entering the name CASH_FLOW_CONSTRUCT_LOAN into the relevant SAP transaction such as SE37 or SE38.

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



Function CASH_FLOW_CONSTRUCT_LOAN 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 'CASH_FLOW_CONSTRUCT_LOAN'"Intermediate Layer Loan/Financial Mathematics
EXPORTING
I_KOKO = "Table Condition Header
* I_SAKTPAS = ' ' "Indicator: Asset/Liability Transaction
* I_SSOLIST = ' ' "Calculation using actual principle (or debit)
I_VDARL = "Loan
* I_FLG_LOANCHARAC = 'X' "Determine Effects of Flows on Processing Characteristics
* I_CASH_FLOW_END_DATE = "Ende-Datum für Finanzstromberechnung
* I_FLG_RAISE_BCD_ERR = "Ausnahme für BCD_FIELD_OVERFLOW ausgeben

IMPORTING
E_BFRATE = "Amount in Position Currency
E_DATUM_LFZ = "Date and Time, Current (Application Server) Date
E_DRSALDO = "Date and Time, Current (Application Server) Date
E_RSALDO = "Nominal Amount
E_RCD_NEG_REPAYMENT = "Returncode für negative Tilgung
ET_SCHEDULE = "Dates for Periodic Tasks

TABLES
I_BEPP = "Transaction Data - Planned and Actual Item
I_KOPO = "View of VZZKOPO with Additional Info. from VKOPOSTEU
* I_T056P = "Reference Interest Table
* E_BBAS = "Calculation Bases (Cash Flow)

EXCEPTIONS
KEINE_TILGUNGSKONDITIONEN = 1 LAUFZEITENDE_FEHLT = 2 LAUFZEITENDE_NICHT_ERMITTELBAR = 3 LAUFZEIT_ODER_RATE_FEHLT = 4 NEGATIVE_TILGUNG_AUFGETRETEN = 5 BCD_FIELD_OVERFLOW = 6 NEW_FIMA_NOT_POSSIBLE = 7 EXCHANGE_RATE_ERROR = 8 PAYMENT_DETAIL_ERROR = 9
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLFV96_001 Calculation Bases
EXIT_SAPLFV96_101 ISIS Securities - CASH_FLOW_CONSTRUCT_SECURITY Other Flows

IMPORTING Parameters details for CASH_FLOW_CONSTRUCT_LOAN

I_KOKO - Table Condition Header

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

I_SAKTPAS - Indicator: Asset/Liability Transaction

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

I_SSOLIST - Calculation using actual principle (or debit)

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

I_VDARL - Loan

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

I_FLG_LOANCHARAC - Determine Effects of Flows on Processing Characteristics

Data type: C
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_CASH_FLOW_END_DATE - Ende-Datum für Finanzstromberechnung

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

I_FLG_RAISE_BCD_ERR - Ausnahme für BCD_FIELD_OVERFLOW ausgeben

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

EXPORTING Parameters details for CASH_FLOW_CONSTRUCT_LOAN

E_BFRATE - Amount in Position Currency

Data type: VZZBEPP-BFRATE
Optional: No
Call by Reference: No ( called with pass by value option)

E_DATUM_LFZ - Date and Time, Current (Application Server) Date

Data type: SY-DATUM
Optional: No
Call by Reference: No ( called with pass by value option)

E_DRSALDO - Date and Time, Current (Application Server) Date

Data type: SY-DATUM
Optional: No
Call by Reference: No ( called with pass by value option)

E_RSALDO - Nominal Amount

Data type: VZZBEPP-BNWHR
Optional: No
Call by Reference: No ( called with pass by value option)

E_RCD_NEG_REPAYMENT - Returncode für negative Tilgung

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

ET_SCHEDULE - Dates for Periodic Tasks

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

TABLES Parameters details for CASH_FLOW_CONSTRUCT_LOAN

I_BEPP - Transaction Data - Planned and Actual Item

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

I_KOPO - View of VZZKOPO with Additional Info. from VKOPOSTEU

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

I_T056P - Reference Interest Table

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

E_BBAS - Calculation Bases (Cash Flow)

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

EXCEPTIONS details

KEINE_TILGUNGSKONDITIONEN -

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

LAUFZEITENDE_FEHLT -

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

LAUFZEITENDE_NICHT_ERMITTELBAR -

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

LAUFZEIT_ODER_RATE_FEHLT -

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

NEGATIVE_TILGUNG_AUFGETRETEN -

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

BCD_FIELD_OVERFLOW -

Data type:
Optional: No
Call by Reference: Yes

NEW_FIMA_NOT_POSSIBLE - Anbindung an neue FiMa kann nicht genutzt werden

Data type:
Optional: No
Call by Reference: Yes

EXCHANGE_RATE_ERROR -

Data type:
Optional: No
Call by Reference: Yes

PAYMENT_DETAIL_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CASH_FLOW_CONSTRUCT_LOAN 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:
lt_i_bepp  TYPE STANDARD TABLE OF VZZBEPP, "   
lv_i_koko  TYPE VZZKOKO, "   
lv_e_bfrate  TYPE VZZBEPP-BFRATE, "   
lv_keine_tilgungskonditionen  TYPE VZZBEPP, "   
lt_i_kopo  TYPE STANDARD TABLE OF VVZZKOPO, "   
lv_i_saktpas  TYPE TZPA-SAKTPAS, "   SPACE
lv_e_datum_lfz  TYPE SY-DATUM, "   
lv_laufzeitende_fehlt  TYPE SY, "   
lt_i_t056p  TYPE STANDARD TABLE OF T056P, "   
lv_e_drsaldo  TYPE SY-DATUM, "   
lv_i_ssolist  TYPE VVSSOLIST, "   SPACE
lv_laufzeitende_nicht_ermittelbar  TYPE VVSSOLIST, "   
lt_e_bbas  TYPE STANDARD TABLE OF VZZBBAS, "   
lv_i_vdarl  TYPE VDARL, "   
lv_e_rsaldo  TYPE VZZBEPP-BNWHR, "   
lv_laufzeit_oder_rate_fehlt  TYPE VZZBEPP, "   
lv_i_flg_loancharac  TYPE C, "   'X'
lv_e_rcd_neg_repayment  TYPE SYSUBRC, "   
lv_negative_tilgung_aufgetreten  TYPE SYSUBRC, "   
lv_et_schedule  TYPE TRTY_RVD_SCHEDULE, "   
lv_bcd_field_overflow  TYPE TRTY_RVD_SCHEDULE, "   
lv_i_cash_flow_end_date  TYPE DATS, "   
lv_i_flg_raise_bcd_err  TYPE C, "   
lv_new_fima_not_possible  TYPE C, "   
lv_exchange_rate_error  TYPE C, "   
lv_payment_detail_error  TYPE C. "   

  CALL FUNCTION 'CASH_FLOW_CONSTRUCT_LOAN'  "Intermediate Layer Loan/Financial Mathematics
    EXPORTING
         I_KOKO = lv_i_koko
         I_SAKTPAS = lv_i_saktpas
         I_SSOLIST = lv_i_ssolist
         I_VDARL = lv_i_vdarl
         I_FLG_LOANCHARAC = lv_i_flg_loancharac
         I_CASH_FLOW_END_DATE = lv_i_cash_flow_end_date
         I_FLG_RAISE_BCD_ERR = lv_i_flg_raise_bcd_err
    IMPORTING
         E_BFRATE = lv_e_bfrate
         E_DATUM_LFZ = lv_e_datum_lfz
         E_DRSALDO = lv_e_drsaldo
         E_RSALDO = lv_e_rsaldo
         E_RCD_NEG_REPAYMENT = lv_e_rcd_neg_repayment
         ET_SCHEDULE = lv_et_schedule
    TABLES
         I_BEPP = lt_i_bepp
         I_KOPO = lt_i_kopo
         I_T056P = lt_i_t056p
         E_BBAS = lt_e_bbas
    EXCEPTIONS
        KEINE_TILGUNGSKONDITIONEN = 1
        LAUFZEITENDE_FEHLT = 2
        LAUFZEITENDE_NICHT_ERMITTELBAR = 3
        LAUFZEIT_ODER_RATE_FEHLT = 4
        NEGATIVE_TILGUNG_AUFGETRETEN = 5
        BCD_FIELD_OVERFLOW = 6
        NEW_FIMA_NOT_POSSIBLE = 7
        EXCHANGE_RATE_ERROR = 8
        PAYMENT_DETAIL_ERROR = 9
. " CASH_FLOW_CONSTRUCT_LOAN




ABAP code using 7.40 inline data declarations to call FM CASH_FLOW_CONSTRUCT_LOAN

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 BFRATE FROM VZZBEPP INTO @DATA(ld_e_bfrate).
 
 
 
"SELECT single SAKTPAS FROM TZPA INTO @DATA(ld_i_saktpas).
DATA(ld_i_saktpas) = ' '.
 
"SELECT single DATUM FROM SY INTO @DATA(ld_e_datum_lfz).
 
 
 
"SELECT single DATUM FROM SY INTO @DATA(ld_e_drsaldo).
 
DATA(ld_i_ssolist) = ' '.
 
 
 
 
"SELECT single BNWHR FROM VZZBEPP INTO @DATA(ld_e_rsaldo).
 
 
DATA(ld_i_flg_loancharac) = 'X'.
 
 
 
 
 
 
 
 
 
 


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!