SAP SWL_WI_DISPLAY Function Module for
SWL_WI_DISPLAY is a standard swl wi display 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 swl wi display FM, simply by entering the name SWL_WI_DISPLAY into the relevant SAP transaction such as SE37 or SE38.
Function Group: SWLD
Program Name: SAPLSWLD
Main Program: SAPLSWLD
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function SWL_WI_DISPLAY 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 'SWL_WI_DISPLAY'".
EXPORTING
WI_ID = "Work item ID
* DISP_WITH_ORG_RESTRICTION = ' ' "
* DISP_FLOW_HEADER = ' ' "
* EXTENDED_DISPLAY = 'X' "
* MULTI_MODE = ' ' "
* SHOW_STEPLOG = ' ' "
IMPORTING
WORKITEM = "
WORKITEM_MODIFIED = "
MODIFIED_WORKITEM = "
NEXT_FUNCTION = "
EXCEPTIONS
READ_FAILED = 1
IMPORTING Parameters details for SWL_WI_DISPLAY
WI_ID - Work item ID
Data type: SWWWIHEAD-WI_IDOptional: No
Call by Reference: No ( called with pass by value option)
DISP_WITH_ORG_RESTRICTION -
Data type: SWLWI_LIST-SELECTEDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
DISP_FLOW_HEADER -
Data type: SWLWI_LIST-SELECTEDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXTENDED_DISPLAY -
Data type: SWLWI_LIST-SELECTEDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
MULTI_MODE -
Data type: SWL_HLPSTR-MULTIMODEDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
SHOW_STEPLOG -
Data type: SY-INPUTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SWL_WI_DISPLAY
WORKITEM -
Data type: SWLC_WORKITEMOptional: No
Call by Reference: No ( called with pass by value option)
WORKITEM_MODIFIED -
Data type: SWLWI_LIST-SELECTEDOptional: No
Call by Reference: No ( called with pass by value option)
MODIFIED_WORKITEM -
Data type: SWLWI_LISTOptional: No
Call by Reference: No ( called with pass by value option)
NEXT_FUNCTION -
Data type: SWD_DATA-OKCODEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
READ_FAILED - Unable to read work item data
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SWL_WI_DISPLAY 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_wi_id | TYPE SWWWIHEAD-WI_ID, " | |||
| lv_workitem | TYPE SWLC_WORKITEM, " | |||
| lv_read_failed | TYPE SWLC_WORKITEM, " | |||
| lv_workitem_modified | TYPE SWLWI_LIST-SELECTED, " | |||
| lv_disp_with_org_restriction | TYPE SWLWI_LIST-SELECTED, " SPACE | |||
| lv_disp_flow_header | TYPE SWLWI_LIST-SELECTED, " SPACE | |||
| lv_modified_workitem | TYPE SWLWI_LIST, " | |||
| lv_next_function | TYPE SWD_DATA-OKCODE, " | |||
| lv_extended_display | TYPE SWLWI_LIST-SELECTED, " 'X' | |||
| lv_multi_mode | TYPE SWL_HLPSTR-MULTIMODE, " SPACE | |||
| lv_show_steplog | TYPE SY-INPUT. " SPACE |
|   CALL FUNCTION 'SWL_WI_DISPLAY' " |
| EXPORTING | ||
| WI_ID | = lv_wi_id | |
| DISP_WITH_ORG_RESTRICTION | = lv_disp_with_org_restriction | |
| DISP_FLOW_HEADER | = lv_disp_flow_header | |
| EXTENDED_DISPLAY | = lv_extended_display | |
| MULTI_MODE | = lv_multi_mode | |
| SHOW_STEPLOG | = lv_show_steplog | |
| IMPORTING | ||
| WORKITEM | = lv_workitem | |
| WORKITEM_MODIFIED | = lv_workitem_modified | |
| MODIFIED_WORKITEM | = lv_modified_workitem | |
| NEXT_FUNCTION | = lv_next_function | |
| EXCEPTIONS | ||
| READ_FAILED = 1 | ||
| . " SWL_WI_DISPLAY | ||
ABAP code using 7.40 inline data declarations to call FM SWL_WI_DISPLAY
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 WI_ID FROM SWWWIHEAD INTO @DATA(ld_wi_id). | ||||
| "SELECT single SELECTED FROM SWLWI_LIST INTO @DATA(ld_workitem_modified). | ||||
| "SELECT single SELECTED FROM SWLWI_LIST INTO @DATA(ld_disp_with_org_restriction). | ||||
| DATA(ld_disp_with_org_restriction) | = ' '. | |||
| "SELECT single SELECTED FROM SWLWI_LIST INTO @DATA(ld_disp_flow_header). | ||||
| DATA(ld_disp_flow_header) | = ' '. | |||
| "SELECT single OKCODE FROM SWD_DATA INTO @DATA(ld_next_function). | ||||
| "SELECT single SELECTED FROM SWLWI_LIST INTO @DATA(ld_extended_display). | ||||
| DATA(ld_extended_display) | = 'X'. | |||
| "SELECT single MULTIMODE FROM SWL_HLPSTR INTO @DATA(ld_multi_mode). | ||||
| DATA(ld_multi_mode) | = ' '. | |||
| "SELECT single INPUT FROM SY INTO @DATA(ld_show_steplog). | ||||
| DATA(ld_show_steplog) | = ' '. | |||
Search for further information about these or an SAP related objects