SAP Function SAP_WAPI_CREATE_OUTBOX - Workflow Interfaces: Set Up Outbox for User

Parameter Reference Type Length Default Optional Text
IM_STATUS_FILTER SWRTSTATUS h 12 X Status Filter
IM_TASK_FILTER SWRTTASK h 14 X Task filter
LANGUAGE SYLANGU C 1 SY-LANGU X SAP R/3 System, Current Language
READ_TASK_TEXT XFELD C 1 SPACE X Read Task Text for Work Item?
SINCE_DATE SYDATUM D 8 SY-DATUM X Selection Date
TIME_ZONE SYSTZONLO C 6 X Time Zone of Current User
TRANSLATE_WI_TEXT XFELD C 1 SPACE X Translate Work Item Text to Parameter Text?
USER SYUNAME C 12 SY-UNAME X SAP System, User Logon Name

Parameter Reference Type Length Text
RETURN_CODE SYST-SUBRC I 4 Return Value (0, 999)

Parameter Reference Length Optional Text
MESSAGE_LINES SWR_MESSAG 274 X Message Lines
MESSAGE_STRUCT SWR_MSTRUC 224 X Message Structure
TASK_FILTER SWRTTASK 14 X Task Filter (Obsolete)
WORKFLOWS_STARTED SWR_WIHDR 628 Started workflows
WORKITEMS_EXECUTED SWR_WIHDR 628 X Executed work items
WORKITEMS_FORWARDED SWR_WIHDR 628 X Forwarded work items

Functionality
Constructs workflow outbox for a user. The workflow outbox contains thestarted workflows, executed workitems, and forwarded work items.
The function module writes the result to the return tablesWORKFLOWS_STARTED, WORKITEMS_EXECUTED, and
WORKITEMS_FORWARDED.

Description
This export parameter specifies if the call was successful. The tableparameter MESSAGE_LINES contains more detailed information.

Value range
0,,Call successful; the workflow outbox was constrcuted for the user
999,,An unknown error has occurred

Description
Language in which the texts are to be prepared in the work itemstructure. The notifications are also returned in this language.

Description
If this flag is set, the Short Text from Task (WI_RHTEXT) fieldis filled in the work item structure.

Value range
X,,Get Task text
SPACE,,Do Not Get Task Text

Description
Specifies as of which date the entries of the workflow outbox areselected.

Description
INCLUDE WF_FB_TIME_ZONE OBJECT DOKU ID TX

Description
Specifies if work item texts are displayed in the transferred language.Note that the search for texts in the transferred language

Value range

  • X: Work item texts in the transferred language

  • SPACE: Work item texts displayed in language in which work item was
  • created

    Description
    User for which the workflow outbox is to be constructed.


    INCLUDE WF_FB_MESSAGE_LINES OBJECT DOKU ID TX


    INCLUDE WF_FB_MESSAGE_STRUCTURE OBJECT DOKU ID TX

    Description
    In this entry table you can transfer the tasks that are to be includedin the worklist selection. Transferred task groups are evaluated.

    Description
    A list of the workflows started by the user is transferred to thistable. A group of attributes displayed for each workflow.

    Description
    A list of the work items that the user has executed is transferred inthis table. A group of attributes is displayed for every work item.

    Description
    A list of the work items that the user has forwarded is transferred inthis list. A group of attributes for every work item.