
Unit 3: Creating a Workflow
Use
To define the flow of the approval process in the system, create a workflow consisting of a workflow definition and a multistep task workflow template. If you create a workflow from the Workflow Builder, the system creates the required multistep task automatically.
Prerequisites
You are in the Workflow Builder and an initial workflow definition is displayed.
Procedure
Create Workflow
Enter the initial basic data for the workflow in the dialog box displayed.
Abbreviation:
<ini_ws>Name
: <Workflow: notification of absence (ini)>The dialog box Create object directory entry is displayed.
The system has now allocated an 8-digit number for your workflow. This number is made up of the 3-digit prefix number (a setting in Customizing) and a 5-digit number taken from a number range. This number together with the letters WS forms the workflow ID. Make a note of the ID so that you can later call the workflow more quickly.
You return to the Workflow Builder. The workflow ID and the current status of the workflow are displayed in the information area.
Entering the basic data for the workflow
The basic data for the workflow, divided into version-dependent and version-independent data, is displayed.
Entering a workflow description
The Task description screen is displayed. You can create a text here using the SAPscript Editor.
<You can use this workflow to create a notification of absence. This will then be sent to your superior for review. You will be notified of the result of this review.
If your request is rejected, you can revise it and resubmit it for review or withdraw it completely.>
Determining agents
To enable the workflow to be started in dialog, you have to assign possible agents to the workflow.
The workflow template: agent assignment screen is displayed.
You go to the dialog box Task.

Designating your workflow as a
general task means that every user in the system is authorized to start this workflow in dialog.Result
You have created a workflow with its basic data. The required multistep task was created automatically by the system.
To create a workflow definition, you need tasks that are used as steps in the workflow definition.
Additional information: Tasks
A task can either be a
single-step task or a multistep task. In our example of the notification of absence, making the application and checking the application are single-step tasks. The entire procedure involved in processing a leave request consists of these (and other) single steps, and is therefore a multistep task.
In this tutorial, a single step task is generally described as a task. The difference between the task types is only explicitly explained if there is a risk of confusion over multistep tasks. The term workflow is used as the umbrella term for the workflow template (and thus the multistep task) and the workflow definition. More precise differentiation only takes place if there is a risk of confusion.
For more information, see
Definition of Multistep Tasks in the SAP Business Workflow documentation.On a technical level, the main difference between single-step tasks and multistep tasks is that:
A workflow definition is made up of a sequence of different steps (for example, all steps required to process a leave request).
Standard tasks and workflow templates are client-independent. Customer and workflow tasks are client-dependent. Customer and workflow tasks are no longer supported and are therefore no longer used in this tutorial.
An Activity is a possible step type in a workflow definition. An activity refers to a task. It references a task, which can be a single-step or multistep task (subworkflow).
For more information, see Tasks and Task Groups in the SAP Business Workflow documentation.