SAP SWD_POPUP_SELECT_WORKFLOW_TASK Function Module for WF: Popup to Request Workflow Task









SWD_POPUP_SELECT_WORKFLOW_TASK is a standard swd popup select workflow task SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for WF: Popup to Request Workflow Task 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 swd popup select workflow task FM, simply by entering the name SWD_POPUP_SELECT_WORKFLOW_TASK into the relevant SAP transaction such as SE37 or SE38.

Function Group: SWDP
Program Name: SAPLSWDP
Main Program: SAPLSWDP
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SWD_POPUP_SELECT_WORKFLOW_TASK 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 'SWD_POPUP_SELECT_WORKFLOW_TASK'"WF: Popup to Request Workflow Task
EXPORTING
* TITLE = "
* CURRENT_TASK = "
* STANDARD_OBJECTS_ONLY = ' ' "
* CURRENT_VERSION = "Version
* IN_NEW_WFD_WHEN_NO_VERSION = "
* IN_EXETYP = "Workflow Type
* IN_NO_TASK_SELECTION = "Internal

IMPORTING
TASK = "
TASK_SHORT = "
TASK_STEXT = "
COPY_CONTAINER = "
COPY_BINDING = "
WFDKEY = "

EXCEPTIONS
POPUP_CANCELED = 1
.



IMPORTING Parameters details for SWD_POPUP_SELECT_WORKFLOW_TASK

TITLE -

Data type:
Optional: Yes
Call by Reference: No ( called with pass by value option)

CURRENT_TASK -

Data type: SWD_AHEAD-TASK
Optional: Yes
Call by Reference: No ( called with pass by value option)

STANDARD_OBJECTS_ONLY -

Data type: SY-INPUT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

CURRENT_VERSION - Version

Data type: SWD_VERSIO
Optional: Yes
Call by Reference: No ( called with pass by value option)

IN_NEW_WFD_WHEN_NO_VERSION -

Data type: SY-INPUT
Optional: Yes
Call by Reference: No ( called with pass by value option)

IN_EXETYP - Workflow Type

Data type: SWD_EXETYP
Optional: Yes
Call by Reference: No ( called with pass by value option)

IN_NO_TASK_SELECTION - Internal

Data type: SYINPUT
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SWD_POPUP_SELECT_WORKFLOW_TASK

TASK -

Data type: SWD_AHEAD-TASK
Optional: No
Call by Reference: No ( called with pass by value option)

TASK_SHORT -

Data type: SWD_AHEAD-SHORT
Optional: No
Call by Reference: No ( called with pass by value option)

TASK_STEXT -

Data type: SWD_AHEAD-STEXT
Optional: No
Call by Reference: No ( called with pass by value option)

COPY_CONTAINER -

Data type: SWD_DATA-XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

COPY_BINDING -

Data type: SWD_DATA-XFELD
Optional: No
Call by Reference: No ( called with pass by value option)

WFDKEY -

Data type: SWD_WFDKEY
Optional: No
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

POPUP_CANCELED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SWD_POPUP_SELECT_WORKFLOW_TASK 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_task  TYPE SWD_AHEAD-TASK, "   
lv_title  TYPE SWD_AHEAD, "   
lv_popup_canceled  TYPE SWD_AHEAD, "   
lv_task_short  TYPE SWD_AHEAD-SHORT, "   
lv_current_task  TYPE SWD_AHEAD-TASK, "   
lv_task_stext  TYPE SWD_AHEAD-STEXT, "   
lv_standard_objects_only  TYPE SY-INPUT, "   SPACE
lv_copy_container  TYPE SWD_DATA-XFELD, "   
lv_current_version  TYPE SWD_VERSIO, "   
lv_copy_binding  TYPE SWD_DATA-XFELD, "   
lv_in_new_wfd_when_no_version  TYPE SY-INPUT, "   
lv_wfdkey  TYPE SWD_WFDKEY, "   
lv_in_exetyp  TYPE SWD_EXETYP, "   
lv_in_no_task_selection  TYPE SYINPUT. "   

  CALL FUNCTION 'SWD_POPUP_SELECT_WORKFLOW_TASK'  "WF: Popup to Request Workflow Task
    EXPORTING
         TITLE = lv_title
         CURRENT_TASK = lv_current_task
         STANDARD_OBJECTS_ONLY = lv_standard_objects_only
         CURRENT_VERSION = lv_current_version
         IN_NEW_WFD_WHEN_NO_VERSION = lv_in_new_wfd_when_no_version
         IN_EXETYP = lv_in_exetyp
         IN_NO_TASK_SELECTION = lv_in_no_task_selection
    IMPORTING
         TASK = lv_task
         TASK_SHORT = lv_task_short
         TASK_STEXT = lv_task_stext
         COPY_CONTAINER = lv_copy_container
         COPY_BINDING = lv_copy_binding
         WFDKEY = lv_wfdkey
    EXCEPTIONS
        POPUP_CANCELED = 1
. " SWD_POPUP_SELECT_WORKFLOW_TASK




ABAP code using 7.40 inline data declarations to call FM SWD_POPUP_SELECT_WORKFLOW_TASK

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 TASK FROM SWD_AHEAD INTO @DATA(ld_task).
 
 
 
"SELECT single SHORT FROM SWD_AHEAD INTO @DATA(ld_task_short).
 
"SELECT single TASK FROM SWD_AHEAD INTO @DATA(ld_current_task).
 
"SELECT single STEXT FROM SWD_AHEAD INTO @DATA(ld_task_stext).
 
"SELECT single INPUT FROM SY INTO @DATA(ld_standard_objects_only).
DATA(ld_standard_objects_only) = ' '.
 
"SELECT single XFELD FROM SWD_DATA INTO @DATA(ld_copy_container).
 
 
"SELECT single XFELD FROM SWD_DATA INTO @DATA(ld_copy_binding).
 
"SELECT single INPUT FROM SY INTO @DATA(ld_in_new_wfd_when_no_version).
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!