SAP SWD_HELP_F4_TASK Function Module for









SWD_HELP_F4_TASK is a standard swd help f4 task 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 swd help f4 task FM, simply by entering the name SWD_HELP_F4_TASK into the relevant SAP transaction such as SE37 or SE38.

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



Function SWD_HELP_F4_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_HELP_F4_TASK'"
EXPORTING
* SEARCH_MASK = "
* EMBEDDING_TASK_TYPE = "
* DISPLAY = ' ' "
* TABSTRIP_PAGE_NUMBER = '1' "
* PREFERRED_CATID = "
* SEARCH_MULTISTEP_TASK = ' ' "

IMPORTING
TASK = "

EXCEPTIONS
OPERATION_CANCELLED_BY_USER = 1
.



IMPORTING Parameters details for SWD_HELP_F4_TASK

SEARCH_MASK -

Data type: SWD_ASTEP-TASK
Optional: Yes
Call by Reference: Yes

EMBEDDING_TASK_TYPE -

Data type: SWHACTOR-OTYPE
Optional: Yes
Call by Reference: Yes

DISPLAY -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: Yes

TABSTRIP_PAGE_NUMBER -

Data type:
Default: '1'
Optional: Yes
Call by Reference: Yes

PREFERRED_CATID -

Data type: SIBFCATID
Optional: Yes
Call by Reference: Yes

SEARCH_MULTISTEP_TASK -

Data type:
Default: SPACE
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for SWD_HELP_F4_TASK

TASK -

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

EXCEPTIONS details

OPERATION_CANCELLED_BY_USER -

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

Copy and paste ABAP code example for SWD_HELP_F4_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_ASTEP-TASK, "   
lv_search_mask  TYPE SWD_ASTEP-TASK, "   
lv_operation_cancelled_by_user  TYPE SWD_ASTEP, "   
lv_embedding_task_type  TYPE SWHACTOR-OTYPE, "   
lv_display  TYPE SWHACTOR, "   SPACE
lv_tabstrip_page_number  TYPE SWHACTOR, "   '1'
lv_preferred_catid  TYPE SIBFCATID, "   
lv_search_multistep_task  TYPE SIBFCATID. "   SPACE

  CALL FUNCTION 'SWD_HELP_F4_TASK'  "
    EXPORTING
         SEARCH_MASK = lv_search_mask
         EMBEDDING_TASK_TYPE = lv_embedding_task_type
         DISPLAY = lv_display
         TABSTRIP_PAGE_NUMBER = lv_tabstrip_page_number
         PREFERRED_CATID = lv_preferred_catid
         SEARCH_MULTISTEP_TASK = lv_search_multistep_task
    IMPORTING
         TASK = lv_task
    EXCEPTIONS
        OPERATION_CANCELLED_BY_USER = 1
. " SWD_HELP_F4_TASK




ABAP code using 7.40 inline data declarations to call FM SWD_HELP_F4_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_ASTEP INTO @DATA(ld_task).
 
"SELECT single TASK FROM SWD_ASTEP INTO @DATA(ld_search_mask).
 
 
"SELECT single OTYPE FROM SWHACTOR INTO @DATA(ld_embedding_task_type).
 
DATA(ld_display) = ' '.
 
DATA(ld_tabstrip_page_number) = '1'.
 
 
DATA(ld_search_multistep_task) = ' '.
 


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!