SAP SWU_DIALOG_GET_DEADLINE Function Module for
SWU_DIALOG_GET_DEADLINE is a standard swu dialog get deadline 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 swu dialog get deadline FM, simply by entering the name SWU_DIALOG_GET_DEADLINE into the relevant SAP transaction such as SE37 or SE38.
Function Group: SWU5
Program Name: SAPLSWU5
Main Program: SAPLSWU5
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SWU_DIALOG_GET_DEADLINE 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 'SWU_DIALOG_GET_DEADLINE'".
EXPORTING
* DESIRED_START_DATE = "Requested Start Date for Work Item
* DESIRED_START_TIME = "Requested start time for work item
* LATEST_START_DATE = "Latest Start Date for Work Item
* LATEST_START_TIME = "Latest start time for work item
* DESIRED_END_DATE = "Requested End Date for Work Item
* DESIRED_END_TIME = "Requested end time for work item
* LATEST_END_DATE = "Latest End Date for Work Item
* LATEST_END_TIME = "Latest end time for work item
IMPORTING
DESIRED_START_DATE = "Requested Start Date for Work Item
DESIRED_START_TIME = "Requested start time for work item
LATEST_START_DATE = "Latest Start Date for Work Item
LATEST_START_TIME = "Latest start time for work item
DESIRED_END_DATE = "Requested End Date for Work Item
DESIRED_END_TIME = "Requested end time for work item
LATEST_END_DATE = "Latest End Date for Work Item
LATEST_END_TIME = "Latest end time for work item
IMPORTING Parameters details for SWU_DIALOG_GET_DEADLINE
DESIRED_START_DATE - Requested Start Date for Work Item
Data type: SWW_DSDOptional: Yes
Call by Reference: No ( called with pass by value option)
DESIRED_START_TIME - Requested start time for work item
Data type: SWW_DSTOptional: Yes
Call by Reference: No ( called with pass by value option)
LATEST_START_DATE - Latest Start Date for Work Item
Data type: SWW_LSDOptional: Yes
Call by Reference: No ( called with pass by value option)
LATEST_START_TIME - Latest start time for work item
Data type: SWW_LSTOptional: Yes
Call by Reference: No ( called with pass by value option)
DESIRED_END_DATE - Requested End Date for Work Item
Data type: SWW_DEDOptional: Yes
Call by Reference: No ( called with pass by value option)
DESIRED_END_TIME - Requested end time for work item
Data type: SWW_DETOptional: Yes
Call by Reference: No ( called with pass by value option)
LATEST_END_DATE - Latest End Date for Work Item
Data type: SWW_LEDOptional: Yes
Call by Reference: No ( called with pass by value option)
LATEST_END_TIME - Latest end time for work item
Data type: SWW_LETOptional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SWU_DIALOG_GET_DEADLINE
DESIRED_START_DATE - Requested Start Date for Work Item
Data type: SWW_DSDOptional: No
Call by Reference: No ( called with pass by value option)
DESIRED_START_TIME - Requested start time for work item
Data type: SWW_DSTOptional: No
Call by Reference: No ( called with pass by value option)
LATEST_START_DATE - Latest Start Date for Work Item
Data type: SWW_LSDOptional: No
Call by Reference: No ( called with pass by value option)
LATEST_START_TIME - Latest start time for work item
Data type: SWW_LSTOptional: No
Call by Reference: No ( called with pass by value option)
DESIRED_END_DATE - Requested End Date for Work Item
Data type: SWW_DEDOptional: No
Call by Reference: No ( called with pass by value option)
DESIRED_END_TIME - Requested end time for work item
Data type: SWW_DETOptional: No
Call by Reference: No ( called with pass by value option)
LATEST_END_DATE - Latest End Date for Work Item
Data type: SWW_LEDOptional: No
Call by Reference: No ( called with pass by value option)
LATEST_END_TIME - Latest end time for work item
Data type: SWW_LETOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SWU_DIALOG_GET_DEADLINE 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_desired_start_date | TYPE SWW_DSD, " | |||
| lv_desired_start_date | TYPE SWW_DSD, " | |||
| lv_desired_start_time | TYPE SWW_DST, " | |||
| lv_desired_start_time | TYPE SWW_DST, " | |||
| lv_latest_start_date | TYPE SWW_LSD, " | |||
| lv_latest_start_date | TYPE SWW_LSD, " | |||
| lv_latest_start_time | TYPE SWW_LST, " | |||
| lv_latest_start_time | TYPE SWW_LST, " | |||
| lv_desired_end_date | TYPE SWW_DED, " | |||
| lv_desired_end_date | TYPE SWW_DED, " | |||
| lv_desired_end_time | TYPE SWW_DET, " | |||
| lv_desired_end_time | TYPE SWW_DET, " | |||
| lv_latest_end_date | TYPE SWW_LED, " | |||
| lv_latest_end_date | TYPE SWW_LED, " | |||
| lv_latest_end_time | TYPE SWW_LET, " | |||
| lv_latest_end_time | TYPE SWW_LET. " |
|   CALL FUNCTION 'SWU_DIALOG_GET_DEADLINE' " |
| EXPORTING | ||
| DESIRED_START_DATE | = lv_desired_start_date | |
| DESIRED_START_TIME | = lv_desired_start_time | |
| LATEST_START_DATE | = lv_latest_start_date | |
| LATEST_START_TIME | = lv_latest_start_time | |
| DESIRED_END_DATE | = lv_desired_end_date | |
| DESIRED_END_TIME | = lv_desired_end_time | |
| LATEST_END_DATE | = lv_latest_end_date | |
| LATEST_END_TIME | = lv_latest_end_time | |
| IMPORTING | ||
| DESIRED_START_DATE | = lv_desired_start_date | |
| DESIRED_START_TIME | = lv_desired_start_time | |
| LATEST_START_DATE | = lv_latest_start_date | |
| LATEST_START_TIME | = lv_latest_start_time | |
| DESIRED_END_DATE | = lv_desired_end_date | |
| DESIRED_END_TIME | = lv_desired_end_time | |
| LATEST_END_DATE | = lv_latest_end_date | |
| LATEST_END_TIME | = lv_latest_end_time | |
| . " SWU_DIALOG_GET_DEADLINE | ||
ABAP code using 7.40 inline data declarations to call FM SWU_DIALOG_GET_DEADLINE
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.Search for further information about these or an SAP related objects