0% found this document useful (0 votes)
65 views

Building A Workflow - Lab #3 - SAP - CREATING MULTI-STEP Task (Workflow) Lesson Objectives

This document provides instructions for creating a multi-step workflow task in SAP. It begins by reviewing that single-step tasks were created in previous labs. The workflow will be used to define the notification of absence process. The steps are: 1. Create a workflow template task (WWF_NOA_##) to represent the multi-step workflow. 2. Integrate the previously created single-step "Create notification of absence" task (WT##create) as the first activity/step in the workflow. This involves selecting the task from a search and linking it to the workflow. 3. Additional steps will be added in subsequent labs, including decisions and loops, to fully define

Uploaded by

David King
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
65 views

Building A Workflow - Lab #3 - SAP - CREATING MULTI-STEP Task (Workflow) Lesson Objectives

This document provides instructions for creating a multi-step workflow task in SAP. It begins by reviewing that single-step tasks were created in previous labs. The workflow will be used to define the notification of absence process. The steps are: 1. Create a workflow template task (WWF_NOA_##) to represent the multi-step workflow. 2. Integrate the previously created single-step "Create notification of absence" task (WT##create) as the first activity/step in the workflow. This involves selecting the task from a search and linking it to the workflow. 3. Additional steps will be added in subsequent labs, including decisions and loops, to fully define

Uploaded by

David King
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 9

Building a Workflow Lab #3 SAP - CREATING MULTI-STEP

TASK (WORKFLOW) SAP ERP (ECC 6.0)


Lesson Objectives
The purpose of this lab is to introduce the student to defining a workflow using the workflow builder by creating a workflow
definition, integrating the standard tasks already created in lab 2, inserting a user decision, and in lab 4 you will be
inserting a loop to complete the workflow definition. The student will end up defining the notification of absence process.
Hand in the printout and answer to the questions.

INTRODUCTION:
[NOTE: labs 1 and 2 must be completed properly before beginning this lab if they are not correct, please go back to
correct them.]
In order to create a workflow the following steps must be completed:

1. First the organizational plan must be created (done in lab 1).


Next each standard task (single-step task) is created within the workflow task. (Done in Lab 2)

2. Next the workflow task (multi-step task) must be created. [note: you will be doing the following over the
next few labs]
Integrate each standard task into the workflow task
Select the workflow task to put it in
Add the object to the workflow container
Open the workflow editor
Assign your defined standard task to a step within the workflow editor
Enter data for control
Define binding for control
Assign responsibilities
Insert appropriate decisions and loops
Check and activate the workflow task

REVIEW:
A task can either be a single-step task or a multi-step 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 vacation
form consists of these (and other) single steps and represents a multi-step task.

Remember:
single step tasks: T-Customer Task (defined by the customer) ; TS-Standard Task (provided by SAP) we
used TS in lab 3 (the last lab)
multistep tasks: WF-workflow task (defined by the customer); WS-workflow template (provided by SAP) we
will use WS in this lab

A workflow definition comprises a sequence of different steps (for example, all steps which are required to process a
vacation form).

An activity is a possible step in a workflow definition. It references a task, which can be a single-step or multi-step task
(subworkflow)!

When defining an activity as a step in a workflow definition, we will only reference single-step tasks. This lab does not
include incorporating a subworkflow. You can either define all single-step tasks required for the workflow definition
yourself and save them as standard tasks or you can use the standard tasks predefined by SAP. Since single-step tasks
are a central element of the entire SAP Business Workflow concept, it is advised that you do define them yourself (which
you did in lab 3)!

In this lab, you will create the workflow template (multi-step task), and integrate your previously defined standard tasks.

Page 1
Step 1: CREATING A WORKFLOW TASK
1. Log onto SAP using your workflow manager ID MGR-## (## is an assigned number given to you by your
instructor).

2. First you must create a workflow template WWF_NOA_##. You will name this multi-step task Workflow: Notification
of absence (WWF##).
- From the SAP Easy Accesss menu, open folders
- Tools Business Workflow Development Definition tools Tasks/Task groups.
- Double-click Create.
- From the Task: Maintain screen, enter the following
information:

FIELD NAME INPUT DATA


Task type Workflow template
Task WWF_NOA_##

- Select Task Create or select the [Create] button.


- In the Basic data tab enter following information:

Abbr. = WWF_NOA_##
Name = Workflow: Notification of absence - ##

- Select [Save] button.


- Click [Local Object] button.

Step 2: Integrating the CREATE task into the workflow definition


The first function (activity) in the notification of absence workflow is Create notification of absence. You created this
standard task in lab 4 the task was named WT##create. Now you need to integrate that task into the workflow
definition as the first step.

Calling the Workflow Builder

1. Select GotoWorkflow BuilderCurrent version. Or press button "Workflow Builder"


[note: if you get a Tips and Tricks window read and click ]
The graphical representation of a workflow definition is displayed in a non-EPC Format with the following
structure:

** you need to change the graphic display to EPC Format!

Page 2
Select Extras Options under the view tab click the pull down icon next to View, select
EPC.

Click to select
. You will then see the following screen:

Display
Area

Navigation
Area

In this simple diagram, you can already see the essential structure of a workflow definition:

There is at least one event at the beginning and end of every workflow definition.
Events are represented by hexagons.
Every step in the workflow definition is followed by at least one event.
Steps in the workflow definition are represented by rounded rectangles.

Note: The workflow definition is shown in a display area and a navigation area. The entire definition is displayed in
the navigation area. You can select a section in the navigation area directly with the mouse. The section is then
shown in the display area in a magnified form. The display area is used for selecting events or steps, as well as for
manipulating entire blocks.

NOTE: the rest of this lab is based on the graphic view Event Driven Process Chains.

Creating an Activity as a Step in the Workflow Definition

Page 3
You are now in the workflow editor.

1. Position the cursor on the first Undefined step that follows the event Workflow started and click the right mouse
button.

2. Select create

Question #1. What Steps/Operators are there to choose from?

3. Double click on Activity

4. This displays the screen Workflow Builder: Create Step: Activity for defining an activity in standard mode.

Entering Basic Data for Control


1. In the field Task, enter the ID (T <8-digit number>) of your create
customer task WT##create. If you no longer know the ID, use the F4 help
to search via the abbreviation of the task (WT##create).
a. Click next to Task under the Task tab.
b. Click the Task Tab in the window type WT##* (make sure single-step
task is selected). Then click Find.

-
-
- double click on your create notification task to select it.

2. Once the 8-digit TS number is displayed in the Task field, click transfer and to graphic

3. the screen Define container Elements and Binding will be displayed. Click the green arrow to accept the
binding. This inserts the container elements and bindings!

NOTE: you are not going to define binding for this lab but here is a short description for your information.

1. A container element, which can contain the reference to the object notification of absence, is created
automatically in the workflow container. The element has the name AbsenceForm and refers an
object of the type FORMABSENC.
2. A binding is defined automatically.
Page 4
You can generally define the binding between the task container and the workflow container in two directions:
Task container <== Workflow container (top part of screen)
Task container ==> Workflow container (bottom part of screen)

The contents of both containers can be viewed via Goto->Container....


The CREATE method, which is referred to in the task for creating a notification of absence, creates a form
that will be submitted to the supervisor for approval later in the workflow. The reference to the notification of
absence created must be known in the workflow container . To achieve this, a binding must be defined from
the task container to the workflow container.
This is carried out with the assignment Notif. of absence ==> &AbsenceForm& which was created
automatically. The other binding direction is not relevant for this step.
(The element of the task container with the name Notification of absence has the technical element name
_WI_Object_Id. As of 3.1G, the binding editor is converted such that only the element names are displayed
as standard.)

** you can return to this at any time by pressing the button Binding Editor.

4. You now should see the workflow builder screen again but this time the first task in your workflow should be your
Create Notification of Absence step.

5. Double click on this step to re-open the definition.

Entries for "Responsibility


Find the Agent Section click the pull down options next to Expression - .

1. Select Workflow Initiator (expression) from the selections available.

Note: Your executable workflow will be started later manually. At this point, the workflow container
element &_WF_Initiator& will be filled with your user name. The assignment you specify above tells
the work item manager to whom the notification of absence form is to be addressed

2. Select the button "Syntax Check" to check your entries [icon looks like a balance scale] .

3. Click transfer and to graphic this will take you back to the Workflow Builder.

4. Notice the event after the step create does not have a name..
o Double click on the red event object [[you may see some German screens just keep going!]]
o You then can enter an event name type Form Filled Out
o Click transfer and to graphic.
Save your workflow - [note: it is a good idea to periodically save!]

Step 3: INTEGRATING the CHECK task into the workflow definition


The next step in the workflow is to have the manager check the notification of absence and either approve it or not
[make sure you are still in the graphical editor]

Creating an Activity as a Step in the Workflow Definition


The Check task should go after the Form Filled Out event to do this you must:

1. In the display area of your workflow definition, right click on the event "Form filled out". choose create
2. Double click on Activity

Entering Basic Data for Control [note: only basic information is provided, you may need to refer to the previous
steps if you cant remember how to do this step]

1. In the field Task, find your check standard task. (WT##check)

Page 5
2. Accept the binding. If the binding window does not automatically appear, then click on the icon that looks like a red
and white soccer ball then it will show you the container elements and binding screen
select . The binding should not exist -

3. Change the description for the step name :


Step description : Check application WT##

4. Check the definition (syntax check in the menu icon looks like a balance scale ) and then go
back to the workflow builder.

5. Save the workflow .

Defining Subsequent Events


The method that was assigned to this standard task in Lab 4 was APPROVE. The APPROVE referred to in the task
definition has one result parameter that can assume three different values. Depending on these values, the activity for
checking the notification of absence can have different subsequent events:

Question #2. What are the resulting subsequent events that you see?

1. In accordance with the three subsequent events for the step Check application, three branches were
automatically inserted into the workflow definition.

2. Now call the processing of the activity for checking the notification of absence again by double-clicking on the step
symbol. - "Check Application WT##"

3. Click the Outcomes Tab

4. Deselect the event New. click the green square to make this inactive [you should now have a gray diamond
].

5. click to go back to the graphical workflow editor. You will be asked if you want to save click Yes.

Question #3. How many branches are there now in your workflow? ______ What are the event names of each
branch? ___________________ and ____________________

6. You should save your workflow [just a precaution]

7. Double click on the activity Check Application this will take you to the Workflow Definition for this activity.

Entries for Responsibility


Selecting an agent

1. From the Control Tab - Select the pull down options next to Expression under the Agent section.

2. Select Superior of Workflow Initiator (Rule)".

3. The number 00000168 should appear.

4. click to return to the workflow builder. [Note: You may want to save at this point]

Step 4. Create the User Decision: Application Rejected:


Page 6
At this point, you will continue by integrating the user decision as an additional step in the workflow definition.
If the department head rejects the request for leave, the employee should have the chance to revise and resubmit the
request. In such situations, a user decision can be integrated as a step in the workflow definition.

Description of Steps Required to Integrate the User Decision in the Workflow Definition
Creating a User Decision as a Step in the Workflow Definition

1. Position the cursor on the event rejected and right click.


2. Select create and then choose User Decision.
This displays the screen for defining a user decision.

Entering Basic Data for User Decision:

1. First enter the following text in the input field Title. It will appear at runtime as the heading of the dialog box with the
decision options. Your application was rejected by &. Revise?
The "&" symbol is a placeholder for parameters that are assigned a value at runtime.

2. Position the cursor in the input field Parameter 1 and call F4: Possible entries.
This displays the dialog box (expression for first parameter of user decision)

3. Under the Notification of Absence choice, Choose the container element Approved by..

Entering Possible Decisions

1. Make the following entries in the Decision options section:


Decision text Event description
Revise application? Revise!
Withdraw application? Withdraw!

The Decision texts which you can enter here will appear as possible decisions in the work item which the applicant can
process after his/her request for leave is rejected.
The Event descriptions are the terms that will describe your events in the workflow definition.

Entries for "Responsibility"

1. Scroll down to the Agent section.


2. Click the button next to Expression.
3. Select Workflow Initiator for the input field of agent.

Page 7
Question #4. What Parameter appears in the Agent Expression Field area?

4. Your entries have now been made for the user decision.
5. Press the button "Syntax Check" if there are no errors continue
6. Go to the Workflow Builder.

Question #5. Draw the added Activities and Events that appear after the Event Rejected.

7. Save your Workflow Definition.

STEP 5 - INTEGRATE REVISE NOTIFICATION OF ABSENCE IN THE WORKFLOW


DEFINITION
1. Right Click on the event Revise and select create.
2. Select Activity

Entering Basic Data for Control

1. In the field Task, enter the ID (T <8-digit number>) of the revise standard task <WT##revise>
If you dont know the ID, use the F4 help to search via the abbreviation of the task. [If you cant remember how to
do this, look at previous sections.]
Step name : Revise notification WT##
2. Make sure you Define container elements and binding.
4. Confirm your entries with ENTER.

Entries for Responsibility

1. Under Agent: Select Workflow Initiator for the entry.


2. Go back to the workflow editor
3. Double click on the event and type the event name Application Revised
4. check and save your workflow definition.

STEP 6: INTEGRATING "SEND NOTIFICATION" IN THE WORKFLOW DEFINITION


You have already created a workflow task and integrated several steps into the workflow definition. You will now continue
by integrating the customer task Send notification in the workflow definition as an activity.

1. Right Click on the event approved and select create.


2. Select Activity.

Entering Basic Data for Control

1. In the field Task, enter the ID (T <8-digit number>) of the send standard task. If you no longer know the ID, use
the F4 help to search via the abbreviation of the task. [WT##send]

2. Enter the step name: Notification: Application approved WT##

3. Define the Binding.

4. Check the definition. (syntax check)

5. Go back to the Workflow Editor. Save

Page 8
6. Type in the following Event name Message Sent Check and Save your workflow!

7. Click the align icon to realign you graphic.

8. Choose Workflow Print Graphic This will print out a copy of a graphical version of your workflow. [note:
make sure you choose to fit to one page!!]

Concluding the LAB


1. Place all the answers to the questions above.

2. Hand on the question answers along with the print out (make sure your name is on it).

You have now started the multi-step task for the notification of absence workflow.

Logging Off
Make sure you log off appropriately.

Page 9

You might also like