SAP ISU_TIMESLICE_SEC_DATE Function Module for INTERNAL: Check and Set From- and To-Date, From- and To-Time
ISU_TIMESLICE_SEC_DATE is a standard isu timeslice sec date SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for INTERNAL: Check and Set From- and To-Date, From- and To-Time 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 isu timeslice sec date FM, simply by entering the name ISU_TIMESLICE_SEC_DATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: ET04U
Program Name: SAPLET04U
Main Program: SAPLET04U
Appliation area: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISU_TIMESLICE_SEC_DATE 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 'ISU_TIMESLICE_SEC_DATE'"INTERNAL: Check and Set From- and To-Date, From- and To-Time.
EXPORTING
* X_DATETO = "To-Date
* X_DATEFROM = "From-Date
* X_TIMETO = '235959' "To-Time
* X_TIMEFROM = '000000' "From-Time
IMPORTING
Y_DATETO = "To-Date
Y_DATEFROM = "From-Date
Y_TIMETO = "To-Time
Y_TIMEFROM = "From-Time
EXCEPTIONS
DATETO_LT_DATEFROM = 1 DATEFROM_INCORRECT = 2
IMPORTING Parameters details for ISU_TIMESLICE_SEC_DATE
X_DATETO - To-Date
Data type: E_EDMDATETOOptional: Yes
Call by Reference: Yes
X_DATEFROM - From-Date
Data type: E_EDMDATEFROMOptional: Yes
Call by Reference: Yes
X_TIMETO - To-Time
Data type: E_EDMTIMETODefault: '235959'
Optional: Yes
Call by Reference: Yes
X_TIMEFROM - From-Time
Data type: E_EDMTIMEFROMDefault: '000000'
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for ISU_TIMESLICE_SEC_DATE
Y_DATETO - To-Date
Data type: E_EDMDATETOOptional: No
Call by Reference: Yes
Y_DATEFROM - From-Date
Data type: E_EDMDATEFROMOptional: No
Call by Reference: Yes
Y_TIMETO - To-Time
Data type: E_EDMTIMETOOptional: No
Call by Reference: Yes
Y_TIMEFROM - From-Time
Data type: E_EDMTIMEFROMOptional: No
Call by Reference: Yes
EXCEPTIONS details
DATETO_LT_DATEFROM -
Data type:Optional: No
Call by Reference: Yes
DATEFROM_INCORRECT -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for ISU_TIMESLICE_SEC_DATE 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_x_dateto | TYPE E_EDMDATETO, " | |||
| lv_y_dateto | TYPE E_EDMDATETO, " | |||
| lv_dateto_lt_datefrom | TYPE E_EDMDATETO, " | |||
| lv_x_datefrom | TYPE E_EDMDATEFROM, " | |||
| lv_y_datefrom | TYPE E_EDMDATEFROM, " | |||
| lv_datefrom_incorrect | TYPE E_EDMDATEFROM, " | |||
| lv_x_timeto | TYPE E_EDMTIMETO, " '235959' | |||
| lv_y_timeto | TYPE E_EDMTIMETO, " | |||
| lv_x_timefrom | TYPE E_EDMTIMEFROM, " '000000' | |||
| lv_y_timefrom | TYPE E_EDMTIMEFROM. " |
|   CALL FUNCTION 'ISU_TIMESLICE_SEC_DATE' "INTERNAL: Check and Set From- and To-Date, From- and To-Time |
| EXPORTING | ||
| X_DATETO | = lv_x_dateto | |
| X_DATEFROM | = lv_x_datefrom | |
| X_TIMETO | = lv_x_timeto | |
| X_TIMEFROM | = lv_x_timefrom | |
| IMPORTING | ||
| Y_DATETO | = lv_y_dateto | |
| Y_DATEFROM | = lv_y_datefrom | |
| Y_TIMETO | = lv_y_timeto | |
| Y_TIMEFROM | = lv_y_timefrom | |
| EXCEPTIONS | ||
| DATETO_LT_DATEFROM = 1 | ||
| DATEFROM_INCORRECT = 2 | ||
| . " ISU_TIMESLICE_SEC_DATE | ||
ABAP code using 7.40 inline data declarations to call FM ISU_TIMESLICE_SEC_DATE
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_x_timeto) | = '235959'. | |||
| DATA(ld_x_timefrom) | = '000000'. | |||
Search for further information about these or an SAP related objects