SAP CASH_FLOW_FOR_ENTIRE_LOAN Function Module for Constructs Cash Flow for Loan, If Necessary Using Several Cond. Headers
CASH_FLOW_FOR_ENTIRE_LOAN is a standard cash flow for entire 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 Constructs Cash Flow for Loan, If Necessary Using Several Cond. Headers 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 for entire loan FM, simply by entering the name CASH_FLOW_FOR_ENTIRE_LOAN into the relevant SAP transaction such as SE37 or SE38.
Function Group: FV96
Program Name: SAPLFV96
Main Program: SAPLFV96
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CASH_FLOW_FOR_ENTIRE_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_FOR_ENTIRE_LOAN'"Constructs Cash Flow for Loan, If Necessary Using Several Cond. Headers.
EXPORTING
IVDARL = "Darlehen nummer
* I_CASH_FLOW_END_DATE = "Field of type DATS
* I_FLG_NO_DISB_SIM = ' ' "General Flag
* KOKO = "Einzeln KOKO
* KOPO = "Table Type for Table VZZKOPO
* KOPA = "Table Type for Table VZZKOPA
* FLG_NO_READ_KOPA = "KOPA nicht nachlesen
* IT001 = "Performanter wenn übergeben
* IVZZBEPP = "Table Type for Structure VZZBEPP
* I_TAB_KOKO = "Table Type for Table VZZKOKO
* I_TAB_KOPO = "Table Type for Table VVZZKOPO
IMPORTING
SIMULATION_FLAG = "X=Ausz.Simulation, A=Sim. von Avis Ausz.
EVZZKOKO = "
EVVZZKOPO = "
ZITIBEPP = "Plan und Ist-sätze
EVDBEKI = "
EVDBEPP = "
EVDBEPI = "
E_DATUM_LFZ = "Date and Time, Current (Application Server) Date
EXCEPTIONS
CASHFLOW_NOT_POSSIBLE = 1 KOKO_INVALID = 2
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_FOR_ENTIRE_LOAN
IVDARL - Darlehen nummer
Data type: VDARLOptional: No
Call by Reference: No ( called with pass by value option)
I_CASH_FLOW_END_DATE - Field of type DATS
Data type: DATSOptional: Yes
Call by Reference: Yes
I_FLG_NO_DISB_SIM - General Flag
Data type: FLAGDefault: SPACE
Optional: Yes
Call by Reference: Yes
KOKO - Einzeln KOKO
Data type: VZZKOKOOptional: Yes
Call by Reference: No ( called with pass by value option)
KOPO - Table Type for Table VZZKOPO
Data type: TRTY_VZZKOPOOptional: Yes
Call by Reference: No ( called with pass by value option)
KOPA - Table Type for Table VZZKOPA
Data type: TRTY_VZZKOPAOptional: Yes
Call by Reference: No ( called with pass by value option)
FLG_NO_READ_KOPA - KOPA nicht nachlesen
Data type: XFELDOptional: Yes
Call by Reference: No ( called with pass by value option)
IT001 - Performanter wenn übergeben
Data type: T001Optional: Yes
Call by Reference: No ( called with pass by value option)
IVZZBEPP - Table Type for Structure VZZBEPP
Data type: TRTY_VZZBEPPOptional: Yes
Call by Reference: Yes
I_TAB_KOKO - Table Type for Table VZZKOKO
Data type: TRTY_VZZKOKOOptional: Yes
Call by Reference: Yes
I_TAB_KOPO - Table Type for Table VVZZKOPO
Data type: TRTY_VVZZKOPOOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for CASH_FLOW_FOR_ENTIRE_LOAN
SIMULATION_FLAG - X=Ausz.Simulation, A=Sim. von Avis Ausz.
Data type: COptional: No
Call by Reference: No ( called with pass by value option)
EVZZKOKO -
Data type: TRTY_VZZKOKOOptional: No
Call by Reference: Yes
EVVZZKOPO -
Data type: TRTY_VVZZKOPOOptional: No
Call by Reference: Yes
ZITIBEPP - Plan und Ist-sätze
Data type: TRTY_VZZBEPPOptional: No
Call by Reference: Yes
EVDBEKI -
Data type: TRTY_VDBEKIOptional: No
Call by Reference: Yes
EVDBEPP -
Data type: TRTY_VDBEPPOptional: No
Call by Reference: Yes
EVDBEPI -
Data type: TRTY_VDBEPIOptional: No
Call by Reference: Yes
E_DATUM_LFZ - Date and Time, Current (Application Server) Date
Data type: SY-DATUMOptional: No
Call by Reference: Yes
EXCEPTIONS details
CASHFLOW_NOT_POSSIBLE - Finanzstrom-aufbau endet mit Fehler
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
KOKO_INVALID - Die mitgegebene KOKO konnte nicht gefunden werde
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CASH_FLOW_FOR_ENTIRE_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: | ||||
| lv_ivdarl | TYPE VDARL, " | |||
| lv_simulation_flag | TYPE C, " | |||
| lv_cashflow_not_possible | TYPE C, " | |||
| lv_i_cash_flow_end_date | TYPE DATS, " | |||
| lv_i_flg_no_disb_sim | TYPE FLAG, " SPACE | |||
| lv_koko | TYPE VZZKOKO, " | |||
| lv_evzzkoko | TYPE TRTY_VZZKOKO, " | |||
| lv_koko_invalid | TYPE TRTY_VZZKOKO, " | |||
| lv_kopo | TYPE TRTY_VZZKOPO, " | |||
| lv_evvzzkopo | TYPE TRTY_VVZZKOPO, " | |||
| lv_kopa | TYPE TRTY_VZZKOPA, " | |||
| lv_zitibepp | TYPE TRTY_VZZBEPP, " | |||
| lv_evdbeki | TYPE TRTY_VDBEKI, " | |||
| lv_flg_no_read_kopa | TYPE XFELD, " | |||
| lv_it001 | TYPE T001, " | |||
| lv_evdbepp | TYPE TRTY_VDBEPP, " | |||
| lv_evdbepi | TYPE TRTY_VDBEPI, " | |||
| lv_ivzzbepp | TYPE TRTY_VZZBEPP, " | |||
| lv_i_tab_koko | TYPE TRTY_VZZKOKO, " | |||
| lv_e_datum_lfz | TYPE SY-DATUM, " | |||
| lv_i_tab_kopo | TYPE TRTY_VVZZKOPO. " |
|   CALL FUNCTION 'CASH_FLOW_FOR_ENTIRE_LOAN' "Constructs Cash Flow for Loan, If Necessary Using Several Cond. Headers |
| EXPORTING | ||
| IVDARL | = lv_ivdarl | |
| I_CASH_FLOW_END_DATE | = lv_i_cash_flow_end_date | |
| I_FLG_NO_DISB_SIM | = lv_i_flg_no_disb_sim | |
| KOKO | = lv_koko | |
| KOPO | = lv_kopo | |
| KOPA | = lv_kopa | |
| FLG_NO_READ_KOPA | = lv_flg_no_read_kopa | |
| IT001 | = lv_it001 | |
| IVZZBEPP | = lv_ivzzbepp | |
| I_TAB_KOKO | = lv_i_tab_koko | |
| I_TAB_KOPO | = lv_i_tab_kopo | |
| IMPORTING | ||
| SIMULATION_FLAG | = lv_simulation_flag | |
| EVZZKOKO | = lv_evzzkoko | |
| EVVZZKOPO | = lv_evvzzkopo | |
| ZITIBEPP | = lv_zitibepp | |
| EVDBEKI | = lv_evdbeki | |
| EVDBEPP | = lv_evdbepp | |
| EVDBEPI | = lv_evdbepi | |
| E_DATUM_LFZ | = lv_e_datum_lfz | |
| EXCEPTIONS | ||
| CASHFLOW_NOT_POSSIBLE = 1 | ||
| KOKO_INVALID = 2 | ||
| . " CASH_FLOW_FOR_ENTIRE_LOAN | ||
ABAP code using 7.40 inline data declarations to call FM CASH_FLOW_FOR_ENTIRE_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.| DATA(ld_i_flg_no_disb_sim) | = ' '. | |||
| "SELECT single DATUM FROM SY INTO @DATA(ld_e_datum_lfz). | ||||
Search for further information about these or an SAP related objects