You are on page 1of 8

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

...........7 Disclaimer and Liability Notice...................................................................................................................sap.....sap.........3 Some More Points ....................7 Related Content....com © 2008 SAP AG BUSINESS PROCESS EXPERT COMMUNITY | bpx...........com 2 ............0 Table of Contents Deadline Monitoring in SAP Workflow.............................Deadline Monitoring in Workflows in SAP ECC 6.............................................................................................................................................................................................................................................................8 SAP DEVELOPER NETWORK | sdn.............................................................

Deadline Monitoring in Workflows in SAP ECC 6. Latest Start .Deadline by which one of the recipients of a work item must have started to process it. The system offers the following possible reactions. If the dialog work item is not created until after the requested start. With background work items. execution starts when the requested start is reached at the earliest. we will define a deadline to the User Decision example created earlier. • • Notification Free modeling In this example. it appears immediately in the Business Workplaces of its recipients.0 Deadline Monitoring in SAP Workflow A major advantage of workflow is the ability to monitor the workflow steps according to a predefined schedule. Note: Reactions to a missed deadline for the last three deadline types can define.sap.Deadline by which the processing of a work item should be terminated. Following is the screenshot of the application developed using the User Decision example: We would extend this example to the deadline monitoring.sap. Following are different deadlines that can be monitored against each workflow step: • • • • Requested Start Latest Start Requested End Latest End Requested Start . 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.com © 2008 SAP AG BUSINESS PROCESS EXPERT COMMUNITY | bpx. The processing of a work item ends when it assumes either the status logically deleted or the status completed. Requested End . Latest End .Earliest point in time at which the work item can be executed.com 3 .Latest point in time for the processing of a work item to end. SAP DEVELOPER NETWORK | sdn.

Deadline Monitoring in Workflows in SAP ECC 6.com 4 . By default.0 In the User Decision step.sap. No deadline monitoring is active (as seen in the above screenshot). click on the “latest end” tab.sap.com © 2008 SAP AG BUSINESS PROCESS EXPERT COMMUNITY | bpx. SAP DEVELOPER NETWORK | sdn. Choose the “Work Item Creation” from the list box.

chose an offset of 5 minutes. if not this would trigger. Save and activate the workflow definition.sap. if the work item is not executed with in 5 minutes after work item creation. Enter recipient details to whom the message to be escalated.sap. This means that the work item must be executed within 5 minutes of the creation.com 5 .0 After selecting “Work Item Creation”.com © 2008 SAP AG BUSINESS PROCESS EXPERT COMMUNITY | bpx. Note: Activated deadlines are marked with in the tab page index. SAP DEVELOPER NETWORK | sdn.Deadline Monitoring in Workflows in SAP ECC 6.

the deadline message would appear only at 09:17hrs after execution of the background program.sap. From the above screenshot. See the screenshot below.0 Testing the workflow application: • • • Execute your workflow. This depends on various factors including how the deadline monitoring program is scheduled and also on the availability of the background processors. This time do NOT execute the work item.com © 2008 SAP AG BUSINESS PROCESS EXPERT COMMUNITY | bpx. Check for the work item in the SAP Inbox. SAP DEVELOPER NETWORK | sdn. it is understood that the background program is scheduled to execute for every 3 minutes.Deadline Monitoring in Workflows in SAP ECC 6. Assume that the last run of the program is at 09:14hrs and the next run is expected at 09:17hrs. a deadline message is delivered to the recipient mentioned in the “Latest End” tab.sap. Don’t worry if the deadline message doesn’t appear immediately after 5 minutes. Wait for the deadline to be triggered. So even our deadline expires at 09:15. Use SWWA to check how the deadline monitoring program is scheduled in program. assume that our work item has been created at 09:10 hrs and the deadline message is expected to trigger at 09:15 hrs. After that.com 6 . For example.

Deadline Monitoring in Workflows in SAP ECC 6.sap. the deadline message would be sent.0 Some More Points In our above example. Please refer to our example on creation of container elements. we have used the deadline on the “Work Item” creation time.com 7 . Related Content Forums • Workflow http://www.com © 2008 SAP AG BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap. 5 minutes after creation time.com/printdocu/core/Print46c/en/data/pdf/BCBMTWFMSTART/BCBMTWFMSTART.sap.htm Tutorials http://help.sap.e.htm Business Workflow http://help. i.sap. Now we would check the other option “Expression”. Here we can mention the date and time.com/saphelp_46c/helpdata/en/c5/e4a930453d11d189430000e829fbbd/content.htm Download • Business Workflow http://help. when the deadline message should appear irrespective of the work item creation date/time.com/workflow/sap-workflow. we can provide the target date and time by which the task should be finished..com/saphelp_46c/helpdata/en/04/926f8546f311d189470000e829fbbd/frameset. As seen in the above screenshot.pdf Steps Type: http://help.htm SDN Weblogs/SAP help • • • SAP DEVELOPER NETWORK | sdn. Container elements could be used in this case.sap.sap-img.com/saphelp_nw70/helpdata/en/81/756c927b54dd4c98d3d2f832b54de1/frameset.

or seek to hold. including any liability resulting from incompatibility between the content within this document and the materials and services offered by SAP.Deadline Monitoring in Workflows in SAP ECC 6. 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. SAP responsible or liable with respect to the content of this document. code or methods suggested in this document. and anyone using these methods does so at his/her own risk.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 DEVELOPER NETWORK | sdn.com 8 . You agree that you will not hold.sap.com © 2008 SAP AG BUSINESS PROCESS EXPERT COMMUNITY | bpx.sap. SAP will not be held liable for any damages caused by using or misusing the information.