SAP SWU_CREATE_DYNPRO_WI_EXECUTE Function Module for
SWU_CREATE_DYNPRO_WI_EXECUTE is a standard swu create dynpro wi execute 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 create dynpro wi execute FM, simply by entering the name SWU_CREATE_DYNPRO_WI_EXECUTE 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_CREATE_DYNPRO_WI_EXECUTE 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_CREATE_DYNPRO_WI_EXECUTE'".
EXPORTING
* USAGE = ' ' "
TASK = "Private structure: Workflow template, external container
* DYNNUMB = '0100' "Screen Number
IMPORTING
KORRNUMBER = "Request/Task
CHANGING
PROGRAM = "Program Name
* DEVELOPCLASS = "Package for Transport Organizer
TABLES
* LIST_OF_INCLUDES = "
EXCEPTIONS
NO_PROGRAM_INSERTED = 1 ABORT_BY_USER = 10 USAGE_UNKNOWN = 11 ENQ_FAILURE = 2 NO_TRANSACTION = 3 TASK_UNKNOWN = 4 CAN_NOT_WRITE = 5 CAN_NOT_READ = 6 PERMISSION_FAILURE = 7 DYNPRO_NOT_GENERATED = 8 DYNPRO_EXISTS_ALREADY = 9
IMPORTING Parameters details for SWU_CREATE_DYNPRO_WI_EXECUTE
USAGE -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TASK - Private structure: Workflow template, external container
Data type: SWI_WS_EXTOptional: No
Call by Reference: No ( called with pass by value option)
DYNNUMB - Screen Number
Data type: RS37A-DYNNUMBDefault: '0100'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for SWU_CREATE_DYNPRO_WI_EXECUTE
KORRNUMBER - Request/Task
Data type: E070-TRKORROptional: No
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for SWU_CREATE_DYNPRO_WI_EXECUTE
PROGRAM - Program Name
Data type: RS37A-DYNPROGOptional: No
Call by Reference: No ( called with pass by value option)
DEVELOPCLASS - Package for Transport Organizer
Data type: TADIR-DEVCLASSOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for SWU_CREATE_DYNPRO_WI_EXECUTE
LIST_OF_INCLUDES -
Data type: SWU5T_INCLUDE_TABOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
NO_PROGRAM_INSERTED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ABORT_BY_USER -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
USAGE_UNKNOWN -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ENQ_FAILURE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_TRANSACTION -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TASK_UNKNOWN -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CAN_NOT_WRITE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
CAN_NOT_READ -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
PERMISSION_FAILURE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DYNPRO_NOT_GENERATED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
DYNPRO_EXISTS_ALREADY -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for SWU_CREATE_DYNPRO_WI_EXECUTE 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_usage | TYPE C, " SPACE | |||
| lv_program | TYPE RS37A-DYNPROG, " | |||
| lv_korrnumber | TYPE E070-TRKORR, " | |||
| lt_list_of_includes | TYPE STANDARD TABLE OF SWU5T_INCLUDE_TAB, " | |||
| lv_no_program_inserted | TYPE SWU5T_INCLUDE_TAB, " | |||
| lv_abort_by_user | TYPE SWU5T_INCLUDE_TAB, " | |||
| lv_usage_unknown | TYPE SWU5T_INCLUDE_TAB, " | |||
| lv_task | TYPE SWI_WS_EXT, " | |||
| lv_enq_failure | TYPE SWI_WS_EXT, " | |||
| lv_developclass | TYPE TADIR-DEVCLASS, " | |||
| lv_dynnumb | TYPE RS37A-DYNNUMB, " '0100' | |||
| lv_no_transaction | TYPE RS37A, " | |||
| lv_task_unknown | TYPE RS37A, " | |||
| lv_can_not_write | TYPE RS37A, " | |||
| lv_can_not_read | TYPE RS37A, " | |||
| lv_permission_failure | TYPE RS37A, " | |||
| lv_dynpro_not_generated | TYPE RS37A, " | |||
| lv_dynpro_exists_already | TYPE RS37A. " |
|   CALL FUNCTION 'SWU_CREATE_DYNPRO_WI_EXECUTE' " |
| EXPORTING | ||
| USAGE | = lv_usage | |
| TASK | = lv_task | |
| DYNNUMB | = lv_dynnumb | |
| IMPORTING | ||
| KORRNUMBER | = lv_korrnumber | |
| CHANGING | ||
| PROGRAM | = lv_program | |
| DEVELOPCLASS | = lv_developclass | |
| TABLES | ||
| LIST_OF_INCLUDES | = lt_list_of_includes | |
| EXCEPTIONS | ||
| NO_PROGRAM_INSERTED = 1 | ||
| ABORT_BY_USER = 10 | ||
| USAGE_UNKNOWN = 11 | ||
| ENQ_FAILURE = 2 | ||
| NO_TRANSACTION = 3 | ||
| TASK_UNKNOWN = 4 | ||
| CAN_NOT_WRITE = 5 | ||
| CAN_NOT_READ = 6 | ||
| PERMISSION_FAILURE = 7 | ||
| DYNPRO_NOT_GENERATED = 8 | ||
| DYNPRO_EXISTS_ALREADY = 9 | ||
| . " SWU_CREATE_DYNPRO_WI_EXECUTE | ||
ABAP code using 7.40 inline data declarations to call FM SWU_CREATE_DYNPRO_WI_EXECUTE
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_usage) | = ' '. | |||
| "SELECT single DYNPROG FROM RS37A INTO @DATA(ld_program). | ||||
| "SELECT single TRKORR FROM E070 INTO @DATA(ld_korrnumber). | ||||
| "SELECT single DEVCLASS FROM TADIR INTO @DATA(ld_developclass). | ||||
| "SELECT single DYNNUMB FROM RS37A INTO @DATA(ld_dynnumb). | ||||
| DATA(ld_dynnumb) | = '0100'. | |||
Search for further information about these or an SAP related objects