Menu

SAP Function Module SAP_WAPI_SET_ERROR

The Function Module SAP_WAPI_SET_ERROR () 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_SET_ERROR
Short Text
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
DO_COMMIT TYPE XFELD 'X' Execute Commit
LANGUAGE TYPE SYLANGU SY-LANGU SAP R/3 System, Current Language
MESSAGE TYPE SWR_MSTRUC
MESSAGE_TEXT TYPE SWR_MSGTXT Workflow Interfaces: Message Text
USER TYPE SYUNAME SY-UNAME SAP System, User Logon Name
WORKITEM_ID LIKE SWR_STRUCT-WORKITEMID Work Item ID

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 Value (0 - 2)

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
MESSAGE_LINES LIKE SWR_MESSAG Message Lines
MESSAGE_STRUCT LIKE SWR_MSTRUC Message Structure

Exceptions

This function module does not define any Exceptions.