SAP FIMA_DATE_CREATE_2 Function Module for
FIMA_DATE_CREATE_2 is a standard fima date create 2 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 date create 2 FM, simply by entering the name FIMA_DATE_CREATE_2 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_DATE_CREATE_2 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_DATE_CREATE_2'".
EXPORTING
* I_FLAG_INTRADAY = ' ' "Indicator for Intraday Interest Calculation
* I_DAYS = 0 "Number of days
* I_SECONDS = 0 "Number of Seconds
I_DATE = "Calculation Date
* I_TIME = '000000' "Time 'Calculation Date'
* I_SINCL = '0' "Inclusive indicator for beginning and end of a period
* I_SULT = 'X' "Month-End Indicator for Value Date
* I_SINCL_E_DATE = '0' "Inclusive indicator for beginning and end of a period
* I_SULT_E_DATE = 'X' "Month-End Indicator for Value Date
* I_STGMETH = '2' "
* I_SKALID = ' ' "Factory Calendar
IMPORTING
E_DATE = "Calculation Date
E_TIME = "Time 'Calculation Date'
E_SINCL = "Inclusive indicator for beginning and end of a period
E_SULT = "Month-End Indicator for Value Date
IMPORTING Parameters details for FIMA_DATE_CREATE_2
I_FLAG_INTRADAY - Indicator for Intraday Interest Calculation
Data type: TFM_JINTRADAYDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_DAYS - Number of days
Data type: TFMATAGEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_SECONDS - Number of Seconds
Data type: TFMASEKUNDENOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DATE - Calculation Date
Data type: DVALUTOptional: No
Call by Reference: No ( called with pass by value option)
I_TIME - Time 'Calculation Date'
Data type: TFM_TVALUTDefault: '000000'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SINCL - Inclusive indicator for beginning and end of a period
Data type: VVSINCLDefault: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SULT - Month-End Indicator for Value Date
Data type: VVSVULTDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SINCL_E_DATE - Inclusive indicator for beginning and end of a period
Data type: VVSINCLDefault: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SULT_E_DATE - Month-End Indicator for Value Date
Data type: VVSVULTDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_STGMETH -
Data type: VVSTGMETHDefault: '2'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_SKALID - Factory Calendar
Data type: SKALIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for FIMA_DATE_CREATE_2
E_DATE - Calculation Date
Data type: DVALUTOptional: No
Call by Reference: No ( called with pass by value option)
E_TIME - Time 'Calculation Date'
Data type: TFM_TVALUTOptional: No
Call by Reference: No ( called with pass by value option)
E_SINCL - Inclusive indicator for beginning and end of a period
Data type: VVSINCLOptional: No
Call by Reference: No ( called with pass by value option)
E_SULT - Month-End Indicator for Value Date
Data type: VVSVULTOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FIMA_DATE_CREATE_2 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_date | TYPE DVALUT, " | |||
| lv_i_flag_intraday | TYPE TFM_JINTRADAY, " SPACE | |||
| lv_i_days | TYPE TFMATAGE, " 0 | |||
| lv_i_seconds | TYPE TFMASEKUNDEN, " 0 | |||
| lv_e_time | TYPE TFM_TVALUT, " | |||
| lv_i_date | TYPE DVALUT, " | |||
| lv_i_time | TYPE TFM_TVALUT, " '000000' | |||
| lv_e_sincl | TYPE VVSINCL, " | |||
| lv_e_sult | TYPE VVSVULT, " | |||
| lv_i_sincl | TYPE VVSINCL, " '0' | |||
| lv_i_sult | TYPE VVSVULT, " 'X' | |||
| lv_i_sincl_e_date | TYPE VVSINCL, " '0' | |||
| lv_i_sult_e_date | TYPE VVSVULT, " 'X' | |||
| lv_i_stgmeth | TYPE VVSTGMETH, " '2' | |||
| lv_i_skalid | TYPE SKALID. " SPACE |
|   CALL FUNCTION 'FIMA_DATE_CREATE_2' " |
| EXPORTING | ||
| I_FLAG_INTRADAY | = lv_i_flag_intraday | |
| I_DAYS | = lv_i_days | |
| I_SECONDS | = lv_i_seconds | |
| I_DATE | = lv_i_date | |
| I_TIME | = lv_i_time | |
| I_SINCL | = lv_i_sincl | |
| I_SULT | = lv_i_sult | |
| I_SINCL_E_DATE | = lv_i_sincl_e_date | |
| I_SULT_E_DATE | = lv_i_sult_e_date | |
| I_STGMETH | = lv_i_stgmeth | |
| I_SKALID | = lv_i_skalid | |
| IMPORTING | ||
| E_DATE | = lv_e_date | |
| E_TIME | = lv_e_time | |
| E_SINCL | = lv_e_sincl | |
| E_SULT | = lv_e_sult | |
| . " FIMA_DATE_CREATE_2 | ||
ABAP code using 7.40 inline data declarations to call FM FIMA_DATE_CREATE_2
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_flag_intraday) | = ' '. | |||
| DATA(ld_i_time) | = '000000'. | |||
| DATA(ld_i_sincl) | = '0'. | |||
| DATA(ld_i_sult) | = 'X'. | |||
| DATA(ld_i_sincl_e_date) | = '0'. | |||
| DATA(ld_i_sult_e_date) | = 'X'. | |||
| DATA(ld_i_stgmeth) | = '2'. | |||
| DATA(ld_i_skalid) | = ' '. | |||
Search for further information about these or an SAP related objects