SAP FIMA_RELATION_BETWEEN_2_DATES Function Module for
FIMA_RELATION_BETWEEN_2_DATES is a standard fima relation between 2 dates 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 relation between 2 dates FM, simply by entering the name FIMA_RELATION_BETWEEN_2_DATES into the relevant SAP transaction such as SE37 or SE38.
Function Group: FF04
Program Name: SAPLFF04
Main Program: SAPLFF04
Appliation area: F
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FIMA_RELATION_BETWEEN_2_DATES 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_RELATION_BETWEEN_2_DATES'".
EXPORTING
* I_FLG_INTRADAY = ' ' "Indicator for Intraday Interest Calculation
* I_STGMETH = '2' "
I_DATUM = "
* I_ZEIT = '000000' "Time 'Calculation from'
* I_SINCL = '0' "
* I_SULT = ' ' "
I_VGL_DATUM = "
* I_VGL_ZEIT = '000000' "Time 'Calculation to'
* I_VGL_SINCL = '0' "
* I_VGL_SULT = ' ' "
IMPORTING
E_LOG_OP = "
IMPORTING Parameters details for FIMA_RELATION_BETWEEN_2_DATES
I_FLG_INTRADAY - Indicator for Intraday Interest Calculation
Data type: VTBBEWE-JINTRADAYDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_STGMETH -
Data type: VTBBEWE-STGMETHDefault: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DATUM -
Data type: VTBBEWE-DBERVONOptional: No
Call by Reference: No ( called with pass by value option)
I_ZEIT - Time 'Calculation from'
Data type: VTBBEWE-TBERVONDefault: '000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SINCL -
Data type: VTBBEWE-SEXCLVONDefault: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SULT -
Data type: VTBBEWE-SULTVONDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VGL_DATUM -
Data type: VTBBEWE-DBERBISOptional: No
Call by Reference: No ( called with pass by value option)
I_VGL_ZEIT - Time 'Calculation to'
Data type: VTBBEWE-TBERBISDefault: '000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VGL_SINCL -
Data type: VTBBEWE-SINCLBISDefault: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_VGL_SULT -
Data type: VTBBEWE-SULTBISDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FIMA_RELATION_BETWEEN_2_DATES
E_LOG_OP -
Data type: TRFF_TYPE_C_2Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FIMA_RELATION_BETWEEN_2_DATES 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_e_log_op | TYPE TRFF_TYPE_C_2, " | |||
| lv_i_flg_intraday | TYPE VTBBEWE-JINTRADAY, " SPACE | |||
| lv_i_stgmeth | TYPE VTBBEWE-STGMETH, " '2' | |||
| lv_i_datum | TYPE VTBBEWE-DBERVON, " | |||
| lv_i_zeit | TYPE VTBBEWE-TBERVON, " '000000' | |||
| lv_i_sincl | TYPE VTBBEWE-SEXCLVON, " '0' | |||
| lv_i_sult | TYPE VTBBEWE-SULTVON, " SPACE | |||
| lv_i_vgl_datum | TYPE VTBBEWE-DBERBIS, " | |||
| lv_i_vgl_zeit | TYPE VTBBEWE-TBERBIS, " '000000' | |||
| lv_i_vgl_sincl | TYPE VTBBEWE-SINCLBIS, " '0' | |||
| lv_i_vgl_sult | TYPE VTBBEWE-SULTBIS. " SPACE |
|   CALL FUNCTION 'FIMA_RELATION_BETWEEN_2_DATES' " |
| EXPORTING | ||
| I_FLG_INTRADAY | = lv_i_flg_intraday | |
| I_STGMETH | = lv_i_stgmeth | |
| I_DATUM | = lv_i_datum | |
| I_ZEIT | = lv_i_zeit | |
| I_SINCL | = lv_i_sincl | |
| I_SULT | = lv_i_sult | |
| I_VGL_DATUM | = lv_i_vgl_datum | |
| I_VGL_ZEIT | = lv_i_vgl_zeit | |
| I_VGL_SINCL | = lv_i_vgl_sincl | |
| I_VGL_SULT | = lv_i_vgl_sult | |
| IMPORTING | ||
| E_LOG_OP | = lv_e_log_op | |
| . " FIMA_RELATION_BETWEEN_2_DATES | ||
ABAP code using 7.40 inline data declarations to call FM FIMA_RELATION_BETWEEN_2_DATES
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 JINTRADAY FROM VTBBEWE INTO @DATA(ld_i_flg_intraday). | ||||
| DATA(ld_i_flg_intraday) | = ' '. | |||
| "SELECT single STGMETH FROM VTBBEWE INTO @DATA(ld_i_stgmeth). | ||||
| DATA(ld_i_stgmeth) | = '2'. | |||
| "SELECT single DBERVON FROM VTBBEWE INTO @DATA(ld_i_datum). | ||||
| "SELECT single TBERVON FROM VTBBEWE INTO @DATA(ld_i_zeit). | ||||
| DATA(ld_i_zeit) | = '000000'. | |||
| "SELECT single SEXCLVON FROM VTBBEWE INTO @DATA(ld_i_sincl). | ||||
| DATA(ld_i_sincl) | = '0'. | |||
| "SELECT single SULTVON FROM VTBBEWE INTO @DATA(ld_i_sult). | ||||
| DATA(ld_i_sult) | = ' '. | |||
| "SELECT single DBERBIS FROM VTBBEWE INTO @DATA(ld_i_vgl_datum). | ||||
| "SELECT single TBERBIS FROM VTBBEWE INTO @DATA(ld_i_vgl_zeit). | ||||
| DATA(ld_i_vgl_zeit) | = '000000'. | |||
| "SELECT single SINCLBIS FROM VTBBEWE INTO @DATA(ld_i_vgl_sincl). | ||||
| DATA(ld_i_vgl_sincl) | = '0'. | |||
| "SELECT single SULTBIS FROM VTBBEWE INTO @DATA(ld_i_vgl_sult). | ||||
| DATA(ld_i_vgl_sult) | = ' '. | |||
Search for further information about these or an SAP related objects