SAP LAUFZEITENDE_ERMITTELN Function Module for Determines End of Term of Cash Flow for Given Installment
LAUFZEITENDE_ERMITTELN is a standard laufzeitende ermitteln SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Determines End of Term of Cash Flow for Given Installment 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 laufzeitende ermitteln FM, simply by entering the name LAUFZEITENDE_ERMITTELN into the relevant SAP transaction such as SE37 or SE38.
Function Group: FV94
Program Name: SAPLFV94
Main Program: SAPLFV94
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
![](https://www.se80.co.uk/training-education/wp-content/uploads/2019/07/normal-function-module.png)
Function LAUFZEITENDE_ERMITTELN 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 'LAUFZEITENDE_ERMITTELN'"Determines End of Term of Cash Flow for Given Installment.
EXPORTING
I_BZUSAGE = "
I_STILGART = "
I_SZBMETH = "
* I_SKALID = ' ' "
* I_VDARL = ' ' "
* I_VZZKOKO = ' ' "
* I_AITERATIONEN = '06' "Double-Digit Number
* I_AJAHRE = '30' "Double-Digit Number
I_DATUM_VON = "
I_DBLFZ = "
I_DEFSZ = "
* I_GSART = ' ' "
I_KZAHLUNG = "
I_RANTYP = "
I_SANLF = "
I_SINCL = "
IMPORTING
E_DATUM_LFZ = "
TABLES
IBEPP = "
IKOPO = "
EXCEPTIONS
KEINE_TILGUNGSKONDITIONEN = 1 LAUFZEITENDE_NICHT_ERMITTELBAR = 2 NEGATIVE_TILGUNG_AUFGETRETEN = 3
IMPORTING Parameters details for LAUFZEITENDE_ERMITTELN
I_BZUSAGE -
Data type: RCFLEISTE-BZUSAGEOptional: No
Call by Reference: No ( called with pass by value option)
I_STILGART -
Data type: RCFLEISTE-STILGARTOptional: No
Call by Reference: No ( called with pass by value option)
I_SZBMETH -
Data type: RCFLEISTE-SZBMETHOptional: No
Call by Reference: No ( called with pass by value option)
I_SKALID -
Data type: RCFLEISTE-SKALIDWTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VDARL -
Data type: VDARLDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VZZKOKO -
Data type: VZZKOKODefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AITERATIONEN - Double-Digit Number
Data type: NUMC2Default: '06'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_AJAHRE - Double-Digit Number
Data type: NUMC2Default: '30'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DATUM_VON -
Data type: SY-DATUMOptional: No
Call by Reference: No ( called with pass by value option)
I_DBLFZ -
Data type: RCFLEISTE-DBLFZOptional: No
Call by Reference: No ( called with pass by value option)
I_DEFSZ -
Data type: RCFLEISTE-DEFSZOptional: No
Call by Reference: No ( called with pass by value option)
I_GSART -
Data type: RCFLEISTE-GSARTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_KZAHLUNG -
Data type: RCFLEISTE-KZAHLUNGOptional: No
Call by Reference: No ( called with pass by value option)
I_RANTYP -
Data type: RCFLEISTE-RANTYPOptional: No
Call by Reference: No ( called with pass by value option)
I_SANLF -
Data type: RCFLEISTE-SANLFOptional: No
Call by Reference: No ( called with pass by value option)
I_SINCL -
Data type: RCFLEISTE-SINCLOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for LAUFZEITENDE_ERMITTELN
E_DATUM_LFZ -
Data type: RCFLEISTE-DELFZOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for LAUFZEITENDE_ERMITTELN
IBEPP -
Data type: VZZBEPPOptional: No
Call by Reference: No ( called with pass by value option)
IKOPO -
Data type: VVZZKOPOOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
KEINE_TILGUNGSKONDITIONEN -
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)
NEGATIVE_TILGUNG_AUFGETRETEN -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for LAUFZEITENDE_ERMITTELN 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_ibepp | TYPE STANDARD TABLE OF VZZBEPP, " | |||
lv_i_bzusage | TYPE RCFLEISTE-BZUSAGE, " | |||
lv_e_datum_lfz | TYPE RCFLEISTE-DELFZ, " | |||
lv_keine_tilgungskonditionen | TYPE RCFLEISTE, " | |||
lv_i_stilgart | TYPE RCFLEISTE-STILGART, " | |||
lv_i_szbmeth | TYPE RCFLEISTE-SZBMETH, " | |||
lv_i_skalid | TYPE RCFLEISTE-SKALIDWT, " SPACE | |||
lv_i_vdarl | TYPE VDARL, " SPACE | |||
lv_i_vzzkoko | TYPE VZZKOKO, " SPACE | |||
lv_i_aiterationen | TYPE NUMC2, " '06' | |||
lv_i_ajahre | TYPE NUMC2, " '30' | |||
lt_ikopo | TYPE STANDARD TABLE OF VVZZKOPO, " | |||
lv_i_datum_von | TYPE SY-DATUM, " | |||
lv_laufzeitende_nicht_ermittelbar | TYPE SY, " | |||
lv_i_dblfz | TYPE RCFLEISTE-DBLFZ, " | |||
lv_negative_tilgung_aufgetreten | TYPE RCFLEISTE, " | |||
lv_i_defsz | TYPE RCFLEISTE-DEFSZ, " | |||
lv_i_gsart | TYPE RCFLEISTE-GSART, " SPACE | |||
lv_i_kzahlung | TYPE RCFLEISTE-KZAHLUNG, " | |||
lv_i_rantyp | TYPE RCFLEISTE-RANTYP, " | |||
lv_i_sanlf | TYPE RCFLEISTE-SANLF, " | |||
lv_i_sincl | TYPE RCFLEISTE-SINCL. " |
  CALL FUNCTION 'LAUFZEITENDE_ERMITTELN' "Determines End of Term of Cash Flow for Given Installment |
EXPORTING | ||
I_BZUSAGE | = lv_i_bzusage | |
I_STILGART | = lv_i_stilgart | |
I_SZBMETH | = lv_i_szbmeth | |
I_SKALID | = lv_i_skalid | |
I_VDARL | = lv_i_vdarl | |
I_VZZKOKO | = lv_i_vzzkoko | |
I_AITERATIONEN | = lv_i_aiterationen | |
I_AJAHRE | = lv_i_ajahre | |
I_DATUM_VON | = lv_i_datum_von | |
I_DBLFZ | = lv_i_dblfz | |
I_DEFSZ | = lv_i_defsz | |
I_GSART | = lv_i_gsart | |
I_KZAHLUNG | = lv_i_kzahlung | |
I_RANTYP | = lv_i_rantyp | |
I_SANLF | = lv_i_sanlf | |
I_SINCL | = lv_i_sincl | |
IMPORTING | ||
E_DATUM_LFZ | = lv_e_datum_lfz | |
TABLES | ||
IBEPP | = lt_ibepp | |
IKOPO | = lt_ikopo | |
EXCEPTIONS | ||
KEINE_TILGUNGSKONDITIONEN = 1 | ||
LAUFZEITENDE_NICHT_ERMITTELBAR = 2 | ||
NEGATIVE_TILGUNG_AUFGETRETEN = 3 | ||
. " LAUFZEITENDE_ERMITTELN |
ABAP code using 7.40 inline data declarations to call FM LAUFZEITENDE_ERMITTELN
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 BZUSAGE FROM RCFLEISTE INTO @DATA(ld_i_bzusage). | ||||
"SELECT single DELFZ FROM RCFLEISTE INTO @DATA(ld_e_datum_lfz). | ||||
"SELECT single STILGART FROM RCFLEISTE INTO @DATA(ld_i_stilgart). | ||||
"SELECT single SZBMETH FROM RCFLEISTE INTO @DATA(ld_i_szbmeth). | ||||
"SELECT single SKALIDWT FROM RCFLEISTE INTO @DATA(ld_i_skalid). | ||||
DATA(ld_i_skalid) | = ' '. | |||
DATA(ld_i_vdarl) | = ' '. | |||
DATA(ld_i_vzzkoko) | = ' '. | |||
DATA(ld_i_aiterationen) | = '06'. | |||
DATA(ld_i_ajahre) | = '30'. | |||
"SELECT single DATUM FROM SY INTO @DATA(ld_i_datum_von). | ||||
"SELECT single DBLFZ FROM RCFLEISTE INTO @DATA(ld_i_dblfz). | ||||
"SELECT single DEFSZ FROM RCFLEISTE INTO @DATA(ld_i_defsz). | ||||
"SELECT single GSART FROM RCFLEISTE INTO @DATA(ld_i_gsart). | ||||
DATA(ld_i_gsart) | = ' '. | |||
"SELECT single KZAHLUNG FROM RCFLEISTE INTO @DATA(ld_i_kzahlung). | ||||
"SELECT single RANTYP FROM RCFLEISTE INTO @DATA(ld_i_rantyp). | ||||
"SELECT single SANLF FROM RCFLEISTE INTO @DATA(ld_i_sanlf). | ||||
"SELECT single SINCL FROM RCFLEISTE INTO @DATA(ld_i_sincl). | ||||
Search for further information about these or an SAP related objects