Menu

SAP Function Module SAP_WAPI_START_WORKFLOW

Workflow interfaces: Start workflow

The Function Module SAP_WAPI_START_WORKFLOW (Workflow interfaces: Start workflow) is a standard Function Module in SAP ERP and is part of the function group SWRR within the package SWR.

Technical Information

Function Module SAP_WAPI_START_WORKFLOW
Short Text Workflow interfaces: Start workflow
Function Group SWRR
Package SWR
Module Type Remote-Enabled

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
DESIRED_START_DATE TYPE SWR_DATEIN WAPI: Date in internal format (YYYYMMDD)
DESIRED_START_TIME TYPE SWR_TIMEIN WAPI: Time in internal format (hhmmss)
DESIRED_START_ZONLO TYPE SYSTZONLO SY-ZONLO Date and time, time zone of user
DO_COMMIT TYPE XFLAG 'X' Execute Commit
IFS_XML_CONTAINER TYPE XSTRING Workflow Container as XML Data Stream
LANGUAGE LIKE SWR_STRUCT-WILANGUAGE SY-LANGU Language
START_ASYNCHRONOUS TYPE XFLAG SPACE Start Workflow Asynchronously
TASK LIKE SWR_STRUCT-TASK Task (According to PD org.)
USER TYPE SYUNAME SY-UNAME SAP System, User Logon Name

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
NEW_STATUS TYPE SWR_WISTAT Workflow Interfaces: Work Item Status
RETURN_CODE LIKE SY-SUBRC Return code (0 - 6, 999)
WORKITEM_ID LIKE SWR_STRUCT-WORKITEMID Work Item ID

Changing Parameters

This function module does not define any CHANGING parameters.

Table Parameters

These are the TABLE parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
AGENTS LIKE SWRAGENT Agent for Task
INPUT_CONTAINER LIKE SWR_CONT Input container (name-value pairs)
MESSAGE_LINES LIKE SWR_MESSAG Message Lines
MESSAGE_STRUCT LIKE SWR_MSTRUC Message Structure

Exceptions

This function module does not define any Exceptions.