Menu

SAP Function Module SWZ_AI_CREATE

Recommended Now

All-new Echo Dot Smart speaker with Alexa

This bundle includes Echo Dot (3rd Gen) Charcoal and Philips Hue White A19 Medium Lumen Smart Bulb, 1100 Lumens. Built in Smart Home hub. Ask Alexa to control Zigbee-compatible devices. No additional Philips Hue hub required. Two choices for easy smart lighting - Start setting the mood with Hue Smart bulbs and your Echo device, supporting up to 5 Hue Bluetooth & Zigbee smart bulbs. Add the Hue Hub for whole-home smart lighting (up to 50 light points) and bonus features.

Check it out on amazon.com →

The Function Module SWZ_AI_CREATE () is a standard Function Module in SAP ERP and is part of the function group SWZA within the package SWZ.

Technical Information

Function Module SWZ_AI_CREATE
Short Text
Function Group SWZA
Package SWZ
Module Type Normal Module

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
APPLICATION LIKE SWZAI-APPL SPACE Application which created the WQ
APPLICATION_EXEC_FUNCTION LIKE SWZAI-APPLEXFUNC SPACE
CALLBACK_FB LIKE SWWWIHEAD-WI_CBFB SPACE FM for confirming completed WQ
CREATE_EVENT LIKE SWWCOMMIT-EVENTFLAG 'X' Flag for triggering event 'CREATED'
CREATOR LIKE SWWWIHEAD-WI_CREATOR Work queue creator
DEF_TASK LIKE SWZAI-DEF_TASK SPACE Default task overwrites all line tasks
DO_COMMIT LIKE SWWCOMMIT-COMMITFLAG 'X' Flag for controlling commit logic
KEEP_INITIAL_AGENTS TYPE XFELD Feld zum Ankreuzen
LANGUAGE LIKE SWWWIHEAD-WI_LANG SY-LANGU Language of WQ (for reading texts)
OBJECT_TYPE LIKE SWOTOBJID-OBJTYPE 'ARCHLISTWI' Object type of WQ in object repository
PRIORITY LIKE SWWWIHEAD-WI_PRIO SWFCO_NO_PRIO Work queue priority
RELEASED LIKE SWZAI-RELEASED SPACE Immediate execution without explicit release
TEXT LIKE SWWWIHEAD-WI_TEXT SPACE Short text for the work item

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
WI_HEADER LIKE SWWWIHEAD Header data of WQ created
WI_ID LIKE SWWWIHEAD-WI_ID ID of WQ created

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 SWHACTOR Agents for releasing work queue
OBJECT_LIST LIKE SWZAIELEM Container with lines to be copied to WQ
WI_CONTAINER LIKE SWCONT Data container of WQ

Exceptions

These are the Exceptions of this function module.

Exception Name Short Text
ID_NOT_CREATED Work queue ID cannot be created
ID_NOT_EXECUTED Immediate execution not possible
READ_FAILED Higher-level deadlines cannot be read