SAP SWD_API_WORKFLOW_GRAPHIC_GET Function Module for









SWD_API_WORKFLOW_GRAPHIC_GET is a standard swd api workflow graphic get 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 api workflow graphic get FM, simply by entering the name SWD_API_WORKFLOW_GRAPHIC_GET into the relevant SAP transaction such as SE37 or SE38.

Function Group: SWDN
Program Name: SAPLSWDN
Main Program: SAPLSWDN
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function SWD_API_WORKFLOW_GRAPHIC_GET 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_API_WORKFLOW_GRAPHIC_GET'"
EXPORTING
* WI_ID = "
* LANGU = SY-LANGU "
* VIEW = ' ' "
* STEPS_HIDE = 'X' "
* TASK = "
* ADHOC_EXTENSION_MODE = ' ' "
* TEXTS_READ = ' ' "Internal

IMPORTING
ADHOC_AGENTS = "Checkbox Field
PROPS = "Table of Properties
HEADER_PROPS = "Table of Properties
LINES_PROPS = "Table of Properties

TABLES
NODES = "
LINES = "
AGNTS = "
TASKS = "
* WIS = "Work items

EXCEPTIONS
WORKFLOW_NOT_FOUND = 1
.



IMPORTING Parameters details for SWD_API_WORKFLOW_GRAPHIC_GET

WI_ID -

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

LANGU -

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

VIEW -

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

STEPS_HIDE -

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

TASK -

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

ADHOC_EXTENSION_MODE -

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

TEXTS_READ - Internal

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

EXPORTING Parameters details for SWD_API_WORKFLOW_GRAPHIC_GET

ADHOC_AGENTS - Checkbox Field

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

PROPS - Table of Properties

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

HEADER_PROPS - Table of Properties

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

LINES_PROPS - Table of Properties

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

TABLES Parameters details for SWD_API_WORKFLOW_GRAPHIC_GET

NODES -

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

LINES -

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

AGNTS -

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

TASKS -

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

WIS - Work items

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

EXCEPTIONS details

WORKFLOW_NOT_FOUND -

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

Copy and paste ABAP code example for SWD_API_WORKFLOW_GRAPHIC_GET 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:
lt_nodes  TYPE STANDARD TABLE OF SWD_API_ND, "   
lv_wi_id  TYPE SWWWIHEAD-WI_ID, "   
lv_adhoc_agents  TYPE SY-INPUT, "   
lv_workflow_not_found  TYPE SY, "   
lv_langu  TYPE SY-LANGU, "   SY-LANGU
lt_lines  TYPE STANDARD TABLE OF SWD_API_LN, "   
lv_props  TYPE SWDTAPI_PR, "   
lv_view  TYPE SWD_VIEW, "   SPACE
lt_agnts  TYPE STANDARD TABLE OF SWD_API_AG, "   
lv_header_props  TYPE SWDTAPI_PR, "   
lt_tasks  TYPE STANDARD TABLE OF SWD_API_TS, "   
lv_steps_hide  TYPE SYINPUT, "   'X'
lv_lines_props  TYPE SWDTAPI_PR, "   
lt_wis  TYPE STANDARD TABLE OF SWD_API_WIS, "   
lv_task  TYPE SWD_STEP_T, "   
lv_adhoc_extension_mode  TYPE SYINPUT, "   SPACE
lv_texts_read  TYPE SYINPUT. "   SPACE

  CALL FUNCTION 'SWD_API_WORKFLOW_GRAPHIC_GET'  "
    EXPORTING
         WI_ID = lv_wi_id
         LANGU = lv_langu
         VIEW = lv_view
         STEPS_HIDE = lv_steps_hide
         TASK = lv_task
         ADHOC_EXTENSION_MODE = lv_adhoc_extension_mode
         TEXTS_READ = lv_texts_read
    IMPORTING
         ADHOC_AGENTS = lv_adhoc_agents
         PROPS = lv_props
         HEADER_PROPS = lv_header_props
         LINES_PROPS = lv_lines_props
    TABLES
         NODES = lt_nodes
         LINES = lt_lines
         AGNTS = lt_agnts
         TASKS = lt_tasks
         WIS = lt_wis
    EXCEPTIONS
        WORKFLOW_NOT_FOUND = 1
. " SWD_API_WORKFLOW_GRAPHIC_GET




ABAP code using 7.40 inline data declarations to call FM SWD_API_WORKFLOW_GRAPHIC_GET

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 INPUT FROM SY INTO @DATA(ld_adhoc_agents).
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_langu).
DATA(ld_langu) = SY-LANGU.
 
 
 
DATA(ld_view) = ' '.
 
 
 
 
DATA(ld_steps_hide) = 'X'.
 
 
 
 
DATA(ld_adhoc_extension_mode) = ' '.
 
DATA(ld_texts_read) = ' '.
 


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!