Deadline Monitoring in Workflows in SAP ECC 6.

0

Applies to:
Product release ECC 6.0.

Summary
A major advantage of workflow is the ability to monitor the workflow steps according to a predefined schedule. Deadline monitoring defines the time span with in which a job is scheduled to start ‘or’ terminate. Authors: Nihar Ranjan Barik, Yudhajit Mitra and Sunil Ojha

Company: CAPGEMINI COSULTING INDIA PVT. LTD. Created on: 3 January 2008

Author Bio
Nihar Ranjan Barik is an ABAP/Workflow consultant. He is currently working with Capgemini Consulting India Pvt. Ltd. Yudhajit Mitra is an ABAP/Workflow consultant. He is currently working with Capgemini Consulting India Pvt. Ltd. Sunil Ojha is a XI certified workflow consultant. His current engagement is with Capgemini Consulting India Pvt. Ltd.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG

BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com 1

Deadline Monitoring in Workflows in SAP ECC 6.0

Table of Contents
Deadline Monitoring in SAP Workflow................................................................................................................3 Some More Points ..............................................................................................................................................7 Related Content..................................................................................................................................................7 Disclaimer and Liability Notice............................................................................................................................8

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG

BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com 2

Deadline Monitoring in Workflows in SAP ECC 6.0

Deadline Monitoring in SAP Workflow
A major advantage of workflow is the ability to monitor the workflow steps according to a predefined schedule. Following are different deadlines that can be monitored against each workflow step: • • • • Requested Start Latest Start Requested End Latest End

Requested Start - Earliest point in time at which the work item can be executed. A dialog work item appears in the Business Workplaces of its recipients when the requested start is reached if the work item is already available for processing. If the dialog work item is not created until after the requested start, it appears immediately in the Business Workplaces of its recipients. With background work items, execution starts when the requested start is reached at the earliest. Latest Start - Deadline by which one of the recipients of a work item must have started to process it. Requested End - Deadline by which the processing of a work item should be terminated. Latest End - Latest point in time for the processing of a work item to end. The processing of a work item ends when it assumes either the status logically deleted or the status completed.
Note: Reactions to a missed deadline for the last three deadline types can define. The system offers the following possible reactions.

• •

Notification Free modeling

In this example, we will define a deadline to the User Decision example created earlier. Following is the screenshot of the application developed using the User Decision example:

We would extend this example to the deadline monitoring.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG

BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com 3

Deadline Monitoring in Workflows in SAP ECC 6.0

In the User Decision step, click on the “latest end” tab.

By default, No deadline monitoring is active (as seen in the above screenshot). Choose the “Work Item Creation” from the list box.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG

BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com 4

Deadline Monitoring in Workflows in SAP ECC 6.0

After selecting “Work Item Creation”, chose an offset of 5 minutes. This means that the work item must be executed within 5 minutes of the creation, if not this would trigger.

Enter recipient details to whom the message to be escalated, if the work item is not executed with in 5 minutes after work item creation.
Note: Activated deadlines are marked with in the tab page index.

Save and activate the workflow definition.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG

BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com 5

Deadline Monitoring in Workflows in SAP ECC 6.0

Testing the workflow application: • • • Execute your workflow. Check for the work item in the SAP Inbox. This time do NOT execute the work item. Wait for the deadline to be triggered. After that, a deadline message is delivered to the recipient mentioned in the “Latest End” tab. See the screenshot below.

Don’t worry if the deadline message doesn’t appear immediately after 5 minutes. This depends on various factors including how the deadline monitoring program is scheduled and also on the availability of the background processors. Use SWWA to check how the deadline monitoring program is scheduled in program.

For example, assume that our work item has been created at 09:10 hrs and the deadline message is expected to trigger at 09:15 hrs. From the above screenshot, it is understood that the background program is scheduled to execute for every 3 minutes. Assume that the last run of the program is at 09:14hrs and the next run is expected at 09:17hrs. So even our deadline expires at 09:15, the deadline message would appear only at 09:17hrs after execution of the background program.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG

BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com 6

Deadline Monitoring in Workflows in SAP ECC 6.0

Some More Points
In our above example, we have used the deadline on the “Work Item” creation time. i.e., 5 minutes after creation time, the deadline message would be sent. Now we would check the other option “Expression”. Here we can mention the date and time, when the deadline message should appear irrespective of the work item creation date/time.

As seen in the above screenshot, we can provide the target date and time by which the task should be finished. Container elements could be used in this case. Please refer to our example on creation of container elements.

Related Content
Forums • Workflow http://www.sap-img.com/workflow/sap-workflow.htm Download • Business Workflow http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSTART/BCBMTWFMSTART.pdf Steps Type: http://help.sap.com/saphelp_nw70/helpdata/en/81/756c927b54dd4c98d3d2f832b54de1/frameset.htm Business Workflow http://help.sap.com/saphelp_46c/helpdata/en/c5/e4a930453d11d189430000e829fbbd/content.htm Tutorials http://help.sap.com/saphelp_46c/helpdata/en/04/926f8546f311d189470000e829fbbd/frameset.htm

SDN Weblogs/SAP help • • •

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG

BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com 7

Deadline Monitoring in Workflows in SAP ECC 6.0

Disclaimer and Liability Notice
This document may discuss sample coding or other information that does not include SAP official interfaces and therefore is not supported by SAP. Changes made based on this information are not supported and can be overwritten during an upgrade. SAP will not be held liable for any damages caused by using or misusing the information, code or methods suggested in this document, and anyone using these methods does so at his/her own risk. SAP offers no guarantees and assumes no responsibility or liability of any type with respect to the content of this technical article or code sample, including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP. You agree that you will not hold, or seek to hold, SAP responsible or liable with respect to the content of this document.

SAP DEVELOPER NETWORK | sdn.sap.com © 2008 SAP AG

BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap.com 8

Sign up to vote on this title
UsefulNot useful