You are on page 1of 21

0

Deadlines

Contents

 Deadline monitoring with


 Simple deadlines
 Modeled deadlines

 SAP AG 1999

© SAP AG BC601 10-1


0.2
Deadlines: Unit Objectives

At the conclusion of this unit, you will be able to

 Set up and test a simple deadline


 Add a deadline to a workflow step
 Integrate a modeled deadline into a workflow
definition

 SAP AG 1999
 SAP AG

© SAP AG BC601 10-2


0.3
Course Overview Diagram (10)

Course Overview Containers

Introduction Routing

Customizing Deadlines 10

Workflow Definition Events

Business Object Builder Workflow Wizards

Tasks Workflow and the Internet

Monitoring and Analysis Appendix


 SAP AG 1999

© SAP AG BC601 10-3


0.4
Deadlines: Business Scenario

 The total ‘material’ business process cannot


exceed 7 days
 The display step is most likely to be late
 Options for late activities on the critical path are
‘simple deadlines’ or ‘modeled deadlines’

 SAPAG1999
 SAPAG

© SAP AG BC601 10-4


0.5
Simple Deadlines

 Deadlines available  Each deadline has


 Requested start  An individual reference
point
 Requested end
 A notification agent for
 Latest end deadline monitoring
 Latest start (exception:
Requested start)
 A notification text
(exception:
Requested start)

 SAP AG 1999

 Requested start
Earliest possible time for processing start; Introduced by the system:
The work item is not visible in the Business Workplace until this time.
 Requested end
Latest requested time for completion of processing of a workflow
 Latest start
Latest deadline for workflow processing start
 Latest end
Latest deadline for completion of processing of a workflow
 The deadlines are specified with reference to the start of the workflow or work item or an individual
expression.
 The deadline is defined in the workflow step behind the relevant tab page.
The recipient of the notification is also specified there.
 The definition of the text that is sent is part of the task definition.
It is behind the "Description" tab page.
 The missed deadline is evaluated by the job SWWDHEX.

© SAP AG BC601 10-5


0.6
Exampleof aSimpleDeadlineEscalation

Writechangedocument

M aterial: M y_part Triggersevent

Sendrem indermessage
O ldm aterial: O riginal_part Event
New _part
Starts

W orkflowstep
Displaymaterial
Organizational plan Recipient and
Designdepartm ent deadlinedefined
Designerposition
Holder: M ary
Recipient
Material Managerposition
Holder: Frank Displaymaterial
Recipient when
deadlinem issed Text for missed
deadlinedefined
Tim eoffset
forlatest
end
SAPAG1999

 Deadline monitoring can only be defined in the context of a workflow step.


 Definition:
- Integration of task in a workflow or selection of a workflow step.
- The definition occurs in the workflow step on the tab page for the requested step.
The time, which can expire, is determined.
The reference point for the calculation is determined.
It is established that it is a simple deadline.
The recipient of the missed deadline work item is determined.
 Runtime behavior: In the case of a simple deadline
- The work item remains in the Business Workplace after deadline reached.
- The work item can be executed at any time, even after the deadline has been reached. The status of
the work item does not change.
- A missed deadline work item is sent to the specified recipient. The work item text is defined in the
underlying task.
- The recipient finds the work item in the Business Workplace by choosing Inbox -> Deadline
messages.
 Prerequisites:
- The job SWWDHEX has to be scheduled.
This job can be executed periodically, for example once every hour. It can also be scheduled so that

it always starts when a work item is pending for deadline monitoring.


You can read the help text for this job and schedule the job with transaction SWU3.

© SAP AG BC601 10-6


0.7
Modeled Deadlines

 Deadlines available  Each deadline has


 Requested start  An individual reference
point
 Requested end
 A customer-specific
 Latest end action, which is executed
 Latest start when the deadline is reached

 SAP AG 1999

 The deadline is defined in the workflow step behind the relevant tab page.
 If a modeled deadline in chosen, the system automatically generates an extra branch in the workflow
definition.
 Modeled deadlines can be transferred into the workflow step manually or using a wizard.
 Modeling using a Workflow Wizard:
- The monitored work item is set to obsolete when the deadline is reached.
- The workflow goes to the branch that is behind the outcome ‘Obsolete’.
- The customer-specific action was defined in this outcome.
- The original work item can no longer be executed with it.
 Modeling manually on the tab page:
- The workflow goes to the branch ‘Deadline reached’.
- The customer-specific action was defined in this outcome.
- The original work item is still executable.
- Using the workflow step ‘Process control’, the status of the monitored work item can be changed.
 The missed deadline is evaluated by the job SWWDHEX.

© SAP AG BC601 10-7


0.8
Modeling Deadline Monitoring Using a Wizard

User
decision

Result 1 Result 2 Obsolete Latest end reached


Set “Deadline
reached“ indicator
Any alternative step
is included
Flag set

Work item set


to "obsolete"

Work item set


to "obsolete"

 SAP AG 1999

 Modeled deadlines
- If a set deadline is missed, modeled subsequent actions are executed, rendering further processing
of the monitored work item superfluous.
- When defining the monitored step, the exception processing "obsolete" must be selected and any
appropriate subsequent steps implemented. The data on deadline setting must be maintained. An
event description must be entered for the deadline to be monitored.
 The wizard “Model deadline monitoring” helps you to integrate the necessary steps.
This wizard can be found by choosing the "Wizards" menu option in the Workflow Builder.
 Release < 4.6:
You insert a task in the definition by selecting an event and choosing Wizards -> Model deadline
monitoring in the Workflow Builder.
The wizard queries the task and the data on deadline monitoring.
 As of Release 4.6:
You model deadline monitoring for an existing task by selecting an existing task in the Workflow
Builder and choosing Wizards -> Model deadline monitoring.
The wizard queries the data on deadline monitoring.
If you have not selected a task when you call the wizard, the wizard proceeds as in Release 4.5 and
earlier.

© SAP AG BC601 10-8


0.9
Exampleof aModeledDeadlineEscalation

 Terminateoldworkitemandstart anewworkitem
Material: My_part Changedocuments

Oldmaterial: Original_part Event


New _part

Workflow
Organizational plan
Designdepartm ent
Designerposition Recipient
Holder: M ary
M aterial Managerposition Step
Holder: Frank Displaymaterial

Toolate

Recipient Any
escalationstep

SAPAG1999

 Modeled deadline monitoring without Wizard:


- Integrate your task in a workflow.
- Define deadline monitoring for the step on the required tab page.
- Set the indicator for modeled deadline monitoring.
- Switch to the "Outcomes" tab page and activate the event "Processing obsolete".
- Integrate the processing branch that is to be included after obsolete.
- If you want the work item to be terminated if the deadline is missed, you have to terminate it
yourself.
Insert the workflow step "Process control" into your workflow definition.

© SAP AG BC601 10-9


0.10
Deadlines: Unit Summary

 Deadline functionality
is integrated in
SAP Business Workflow
 There are two options:
 simple deadlines

 modeled deadlines

 SAP AG 1999

© SAP AG BC601 10-10


Exercises

Unit: Deadlines
Topic: Modeled Deadlines

At the conclusion of these exercises, you will be able to:


 Use a wizard to create a modeled deadline

To demonstrate modeled deadlines, we will modify our workflow


definition created in previous exercises. After the step to display the
material changes, a new step to display the material has been inserted.
This step is to be monitored to ensure that the material change is
approved in good time. Otherwise, the work item is deleted from the
agent's Business Workplace.

1-1 Call the workflow definition you created on the first day and start the Workflow
Builder.
1-2 The task "Display material" after the result "Changes displayed" is to be subject to
deadline monitoring. If the deadline has been reached, the work item is to be set to
obsolete and a new branch in the processing is included.
This "modeled deadline monitoring" is created using a wizard.

1-2-1 Add a deadline to control the latest end allowed for the completion of the
work item.
1-2-2 Give the agent 5 minutes once the work item has entered their Business
Workplace to complete processing.
1-3 If the deadline is missed, an alternative processing step is needed. For example, you
could use the user decision "My first test" from the exercise in unit 2. Activate the
workflow and exit the screen.
1-4 Start the workflow using the explicit start function. Make sure that you use the user
WF-BC-MGR.
1-5 A list of material changes is displayed. Process this work item by exiting the list
and then choosing the button for "Complete processing of step". Then switch to the
workflow inbox of your manager and employee. Do NOT, however, process the
"Display material" work item. Instead, switch back to the initiator’s session and
choose "Workflow log" to monitor the workflow. Wait a couple of minutes, refresh
the workflow log and see what happens.

© SAP AG BC601 10-11


Unit: Deadlines (additional exercise)
Topic: Making Customer-Specific Changes to a Workflow
Template; Simple Deadline Monitoring

At the conclusion of these exercises, you will be able to:


 Copy a workflow template
 Set up and test a simple deadline
 Create and test an express work item
 List options for recipient routing
 Forward a message to a distribution list
The next user test was successfully completed.
Since the end users have a better understanding of the SAP Workflow
System, many additional requests are now made. The demand for a more
optimized process is particularly high for the procedure "Notification of
absence".
You agree to look into escalation procedures in order to achieve a
guaranteed maximum processing time.
Another important issue from the management’s perspective is improved
routing to avoid information overload.

1-1 Copy the workflow template for "Notification of absence" (WS30000015) into a
separate workflow template: Z_##_process.
1-1-1 Note the new workflow task number:

___________________________________________________________

1-2 A deadline is to be set for the manager’s approval. We will give the manager an
aggressive deadline of 5 minutes to check the notification of absence. The
employee is notified if the deadline is missed. Modify your workflow now to add
this deadline and the recipient for missed deadline.

1-2-1 Call your workflow in change mode in the Workflow Builder.

1-2-2 Choose the approval step in order to add a deadline.

1.2.3 Specify a deadline of 5 minutes and activate monitoring of requested end.

1.2.4 Enter the recipient for missed deadline. In this exercise, we will use the
expression Initiator from the container as the recipient.

© SAP AG BC601 10-12


Note: Each workflow automatically contains the user ID that started
the workflow, in the "Initiator" field. In the case of the notification
of absence, this is the user ID of the employee who creates the form.
In this exercise, we will use the "Initiator" field to send the
notification of a missed deadline back to the employee who created
the form.

1-2-5 Enter the notification text for the task "Approve notification of absence".
The recipient receives this notification text if the deadline is missed.

1-2-6 Activate the workflow to check and save your changes.

1-3 Test the workflow with the new simple deadline. Each group is to start their new
workflow manually using the employee user ID BC601-##. You can resubmit one
of the forms you created in the Business Workplace exercise for approval.

1-3-1 Start your new workflow explicitly.

1-3-2 Check the Business Workplace of user ID BC601-MGR## to see if the


work item to be approved has entered the worklist. If it has, wait until the
deadline has passed.

1-3-3 Then check the employee's Business Workplace to see if the notification
for missed deadline has appeared.

1-3-4 Execute this work item to check the notification text that was added and
remove the deadline notification from your worklist.

1-4 Managers often forget to check their workflow inboxes for notifications of absence
and, as a result, miss the deadline. You decide to define the approval step as an
express work item. Change your workflow accordingly.

1-4-1 Call your workflow in change mode in the Workflow Builder.

1-4-2 Change the approval step.

1-4-3 Change the priority of the step to make it an express work item.

1.4.4 Activate the workflow to check and save your changes.

1-5 Test your workflow with the express work item. Each group is to start their
workflow manually using the employee user ID. Use a different absence form from
the Business Workplace exercise

1.5.1 Start the workflow explicitly.

1-5-2 How is the manager notified about this work item?

___________________________________________________________

___________________________________________________________

___________________________________________________________

© SAP AG BC601 10-13


Solutions

Unit: Deadlines
Topic: Modeled Deadlines

1-1 Change the workflow definition you created on the first day and go to the
Workflow Builder.

In the SAP Easy Access menu, choose:

Tools  Business Workflow  Development  Definition Tools.

Double-click "Workflow Builder".

If your workflow is not displayed, choose the "Other workflow/version..." icon.


Enter WS and your workflow task number.

1-2 The task "Display material" after the event "Changes displayed" is to be subject to
deadline monitoring. Use the wizard to create modeled deadline monitoring.

Position your cursor on the task "Display material master" and click once to
select the task.
Choose Wizards  Model deadline monitoring.

Choose the "Continue" button to start the wizard.

1-2-1 Add a deadline to control the latest end allowed for the completion of the
work item.

Select the "Latest end" radio button as the deadline type to be monitored.

Choose the "Continue" button.

1-2-2 Give the agent 5 minutes once the work item has entered their Business
Workplace to complete processing.

Enter 5 in the "Time int" field and select "Minute(s)" next to this field.
Select the "Work item creation" radio button to activate monitoring from
the time the work item is created.

Choose the "Continue" button.

Choose the "Complete" button so the wizard can complete the process.

1-3 If the deadline is missed, an alternative branch is needed.


© SAP AG BC601 10-14
You could, for example, use the user decision "My first test" from the exercise in
the Workflow Definition unit. Activate the workflow and exit the screen.

Make sure that you are on the "Workflow Builder - Change 'zwf_test##'" screen.

Select the user decision "My first test" and choose:


Edit  Block  Cut.

Select the event "Obsolete" and choose:


Edit  Block  Paste.

In the Workflow Builder, choose the "Generate and activate runtime version"
button.

1-4 Start the workflow using the explicit start function. Start the workflow as WF-BC-
MGR.

SAP EASY ACCESS -> Tools -> Business Workflow -> Development -> Runtime
Tools -> Start Workflow (Test Environment).
Enter WSXXXXXXXX (where XXXXXXXX is the number of your workflow).

1-5 A list of material changes is displayed. Process this work item by exiting the list
and then choosing the button for "Complete processing of step". Then switch to the
workflow inbox of your manager and employee. Do NOT, however, process the
"Display material" work item. Instead, switch back to the workflow initiator’s
session and choose "Workflow log" to monitor the workflow. Wait a couple of
minutes, refresh the workflow log and see what happens.

On the "Start Workflow (Test Environment)" screen, choose the "Workflow log"
button to monitor the processing of the workflow in the View: Workflow
Chronicle.

After 5 or 6 minutes, choose the "Refresh" button and check in the workflow log
that the missed latest end has actually been reached.
If so, the entry "DEADLINE" should appear in the "Status" column and
"Latest end reached" in the "Result" column.

© SAP AG BC601 10-15


Solutions

Unit: Deadlines (additional exercise)


Topic: Making Customer-Specific Changes to a Workflow
Template; Simple Deadline Monitoring

1-1 Copy the workflow template for "Notification of absence" (WS30000015) into your
own workflow template.
In the SAP Easy Access menu, choose:
Tools  Business Workflow  Development  Definition Tools  Task/Task
Groups.

Double-click "Copy".

On the "Task: Copy" screen, enter the following information:

Field Name Input Data

Task type WS (workflow template)

Task 30000015

Choose the "Copy task" button.

In the "Copy Task" dialog box, "Workflow template" should be displayed in the
"Target task type" field. "AF_process" should be displayed in the
"Abbreviation" field and "Process notification of absence" in the "Name" field.

Note: Start the abbreviation and name with Z and your group number
so that you can identify your workflow.

Overwrite the "Abbreviation" and "Name" as follows:

Field Name Input Data

Abbreviation Z##_process

Name Group## Process notification of absence

Choose the "Copy task Enter" button at the bottom of the "Copy Task" dialog
box.

© SAP AG BC601 10-16


1-1-1 Note the new workflow task number:

Number generated by the system.

1-2 A deadline is to be set for the manager’s approval. We will give the manager an
aggressive deadline of 5 minutes to check the notification of absence. The
employee is notified if the latest end was missed. Modify your workflow now to
add this deadline and the recipient for missed deadline.
1-2-1 Call your workflow in change mode in the Workflow Builder.

In the SAP Easy Access menu, under "Definition Tools", double-click


"Workflow Builder".

If your workflow is not displayed, choose the "Other workflow/version"


icon. Enter WS and your workflow task number from the previous step.
Choose the "Insert" button.

1-2-2 Choose the approval step in order to add a deadline.

Double-click on the "Approve notification of absence" step.

On the "Workflow Builder - Change Step: Activity" screen, choose the


"Requested end" tab page.

1-2-3 Specify a deadline of 5 minutes and activate monitoring of requested end.

Select "Work item creation" in the "Refer. date/time" field.

In the "+" field, enter 5 and make sure that the default value for the unit
is "Minute(s)".

Choose the "Syntax check" button (scales icon).

1.2.4 Enter the recipient for missed deadline. In this exercise, we will use the
expression Initiator from the container as the recipient.

Note: Each workflow automatically contains the user ID that started


the workflow, in the "Initiator" field. In the case of the notification
of absence, this is the user ID of the employee who creates the form.
In this exercise, we will use the "Initiator" field to send the
notification of a missed deadline back to the employee who created
the form.

On the "Notification" tab page, select "Workflow initiator (expression)"


from the pull-down menu.

Choose the "Syntax check" button (scales icon) to check your settings.

© SAP AG BC601 10-17


1.2.5 Enter the notification text for the task "Approve notification of absence".
The recipient receives this notification text if the deadline is missed.

Note: The notification text for missed deadline is stored at the


individual task level and not in the workflow step.

To display the task, click on the blue text line.


Click on the "Description" tab page and select "Requested end text" in the
"Text type" field.
Choose the "Change text" button.

On the "Requested end text Change" screen, enter your own text to inform
the creator of the form that the manager did not complete the check within
the requested time period. Exit the screen.

Note: If the "Enter change request" dialog box is displayed, choose


the "Create request" button. Enter a short description and choose the
"Save Enter" button. On the "Enter Change Request" screen, choose
the "Continue Enter" button.

Exit the "Workflow Template: Change" screen and then exist the
"Workflow Builder - Change Step: Activity" screen by choosing the
"Back" button (green arrow).

1-2-6 Activate the workflow to check and save your changes.

Choose the "Back" button (green arrow) to return to the Workflow


Builder.

Choose the "Generate and activate runtime version" button (match icon)
to activate the workflow and save your changes.

Return to the SAP Easy Access menu by choosing the "Back" button
(green arrow).

© SAP AG BC601 10-18


1-3 Test the workflow with the new simple deadline. Each group is to start their new
workflow manually using the employee user ID BC601-##. You can resubmit one
of the forms you created in the Business Workplace exercise for approval.

1-3-1 Start your new workflow explicitly.

In the SAP Easy Access menu, open the "Runtime Tools" folder.

Double-click "Start Workflow (Test Environment)".

Enter your new workflow number in the "Task" field.

Note: If the workflow was started automatically, it would receive


information about the absence form from the system as soon as the
form was created. Since we are starting this workflow explicitly, we
have to provide the workflow with the form number.

Choose the “Input data” button.


Choose the matchcode symbol for the "Notif of absence" field.
Enter the number of one of the forms you created in an earlier exercise
and choose the "Back" button (green tick) to continue.
Choose the "Execute" button.
1-3-2 Check the Business Workplace of user ID BC601-MGR## to see if the
work item to be approved has entered the worklist. If it has, wait until the
deadline has passed.
To call the worklist, choose the "Business Workplace" button on the
"Start Workflow (Test Environment)" screen or choose:
Office  Workplace in the SAP Easy Access Menu.
1.3.3 Then check the employee's Business Workplace to see if the notification
for missed deadline has appeared.
In the employee's Business Workplace, a deadline notification is displayed
in both the "Workflow" view as well as the "Missed Deadline" view of the
inbox. Choose the "Missed Deadline" button.
1-3-4 Execute this work item to check the notification text that was added and
remove the deadline notification from your worklist.
Double-click on the "Ex…" column.
Your deadline notification text is displayed in the "Description" field.
To remove the work item, choose the "Set to ‘Done’" button at the top of
the screen.

© SAP AG BC601 10-19


1-4 Managers often forget to check their workflow inboxes for notifications of absence
and, as a result, miss the deadline. You decide to define the approval step as an
express work item. Change your workflow accordingly.
1-4-1 Call your workflow in change mode in the Workflow Builder.

In the SAP Easy Access menu, under "Definition Tools", double-click


"Workflow Builder".

If your workflow is not displayed, choose the "Other workflow/version"


icon. Enter WS and your workflow task number from the previous step.
Choose the "Insert" button.

1-4-2 Change the approval step.

Double-click on the "Approve notification of absence" step.

1.4.3 Change the priority of the step to make it an express work item.

On the "Workflow Builder - Change Step: Activity" screen, choose the


"Other" tab page. This tab page is to the far right; you may have to use
the scroll key to select it.

Change the priority from "5 Medium" to "1 Highest - Express".

1-4-4 Activate the workflow to check and save your changes.

Choose the "Back" button (green arrow).

Choose the "Generate and activate runtime version" button (match icon)
to activate the workflow and save your changes.

1-5 Test your workflow with the express work item. Each group is to start their
workflow manually using the employee user ID. Use a different absence form from
the Business Workplace exercise.

1-5-1 Start the workflow explicitly.


On the "Workflow Builder-Change" screen, choose Workflow  Test, or
the "Test" button.
On the Start Workflow (Test Environment) screen, your workflow number
should be displayed in the "Task" field.
Choose the “Input data” button.
Choose the matchcode symbol for the "Notif of absence" field.
Enter the number of a form you created in an earlier Business Workplace
exercise and choose the "Back" button (green tick) to continue.
Choose the "Execute" button.

1-5-2 How is the manager notified about this work item?


© SAP AG BC601 10-20
Go back to the manager's session and choose "Enter". A dialog box is
immediately displayed, informing the manager that they have received a
work item with priority 1. The manager can access the Business
Workplace directly from this dialog box.

© SAP AG BC601 10-21

You might also like