<br><font size=2 face="sans-serif">Hello Shai,</font>
<br><font size=2 face="sans-serif">there was a presentation of such a solution
in the ASUG a few years ago by <b>Ulrich Mende</b>.</font>
<br><font size=2 face="sans-serif">I attach his presentation.</font>
<br><font size=2 face="sans-serif">Perhaps this can be useful for you as
well.</font>
<br>
<br><font size=2 face="sans-serif">Kind regards</font>
<br><font size=2 face="sans-serif">Viveka</font>
<br>
<br><font size=2 face="sans-serif">________________________________________________<br>
<br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>&quot;Shai Eyal&quot; &lt;shaie@team.co.il&gt;</b>
</font>
<br><font size=1 face="sans-serif">Sent by: sap-wug-bounces@mit.edu</font>
<p><font size=1 face="sans-serif">2006-01-23 19:39</font>
<table border>
<tr valign=top>
<td bgcolor=white>
<div align=center><font size=1 face="sans-serif">Please respond to<br>
&quot;SAP Workflow Users' Group&quot; &lt;sap-wug@mit.edu&gt;</font></div></table>
<br>
<td width=59%>
<table width=100%>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">To</font></div>
<td valign=top><font size=1 face="sans-serif">&lt;sap-wug@mit.edu&gt;</font>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td valign=top>
<tr>
<td>
<div align=right><font size=1 face="sans-serif">Subject</font></div>
<td valign=top><font size=1 face="sans-serif">RE: Deadline and calendar</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br><font size=2><tt>Hi all,<br>
I'm using deadline for latest start: work item created + 3 days. I've<br>
found that the system counts 3 days, without checking any calendar.<br>
Therefore, if task was created on Friday evening, a deadline will appear<br>
in Monday, even though Saturday + Sunday weren't working days.<br>
Is there a way to relate it to SAP calendar ?<br>
<br>
Thanks,<br>
<br>
Shai E.<br>
<br>
-----Original Message-----<br>
From: sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] On Behalf<br>
Of sap-wug-request@mit.edu<br>
Sent: Saturday, January 21, 2006 7:03 PM<br>
To: sap-wug@mit.edu<br>
Subject: SAP-WUG Digest, Vol 14, Issue 62<br>
<br>
Send SAP-WUG mailing list submissions to<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
sap-wug@mit.edu<br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
http://mailman.mit.edu/mailman/listinfo/sap-wug<br>
or, via email, send a message with subject or body 'help' to<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
sap-wug-request@mit.edu<br>
<br>
You can reach the person managing the list at<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
sap-wug-owner@mit.edu<br>
<br>
When replying, please edit your Subject line so it is more specific than<br>
&quot;Re: Contents of SAP-WUG digest...&quot;<br>
<br>
<br>
Today's Topics:<br>
<br>
 &nbsp; 1. Re: Keep Single step task from completing until Dead Line<br>
 &nbsp; &nbsp; &nbsp;date (Rick Sample)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Fri, 20 Jan 2006 15:47:26 -0600<br>
From: &quot;Rick Sample&quot; &lt;Rick.Sample@gbe.com&gt;<br>
Subject: Re: Keep Single step task from completing until Dead Line<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
date<br>
To: sap-wug@mit.edu<br>
Message-ID: &lt;200601202148.k0KLlI8F028634@ns1.graybar.com&gt;<br>
Content-Type: text/plain; charset=us-ascii<br>
<br>
Mike,<br>
I am not in the ofc right now, but it was the first exception from the<br>
call to SWW_WI_START. <br>
<br>
Bottom line, if I have a terminating event in the task the task should<br>
not be set to completed until this event triggers event if I execute the<br>
task. Yes? <br>
<br>
When I call the SWW_WI_START, do I need to add or change any parms for<br>
this to wait for term event?<br>
<br>
Before Async changes:<br>
I start the task via SWW_WI_START. I use the Deadline date and action.
<br>
This works fine. <br>
I have a method on zbus2032-doSomething. From this method, I call a<br>
program and return. Task gets set to Comppleted status. <br>
Also, if dead line is reached it gets set to completed. <br>
This is expected results.<br>
<br>
After Async changes:<br>
Start Task with SWW_WI_START with same Deadline date and action. <br>
Added a zDummy event to zbus2032. <br>
Added the event to the terminating events in the Task. <br>
Changed the method I call in zbus2032 to Async. <br>
Save / complie changes on bus2032 and my task.<br>
<br>
The thinking here is that the task shouldn't be set to complete until<br>
the event triggers. <br>
<br>
The ESS Time Approval is a singel step task and waits for a term event<br>
to complete. I will look at it Monday and compare. <br>
<br>
Thanks!<br>
Rick<br>
<br>
<br>
&gt;&gt;&gt; wug.replies@workflowconnections.com 01/19/06 17:01 PM &gt;&gt;&gt;<br>
Hi Rick,<br>
That should definitively work. The method has to be asynchronous though,<br>
<br>
it seems you had some other problem preventing it starting. Can you<br>
clarify &quot;Failed to start&quot;?<br>
<br>
Cheers<br>
Mike<br>
<br>
Rick Sample wrote:<br>
&gt; I tried to start the Task with the object method set as asynchronous.<br>
&gt; Failed to start. <br>
&gt; <br>
&gt; I tried a zdummy terminating event in the Terminating Events. Didn't
<br>
&gt; matter.<br>
&gt; When I execute the task, it completes! <br>
&gt; <br>
&gt; I checked out the code in the Confirm to Complete FM. Way too much<br>
work<br>
&gt; for a simple task. <br>
&gt; Looks like the simplest way is to create a WF with the task and loop
<br>
&gt; until terminating event or deadline reached.<br>
&gt; <br>
&gt; Any other ideas, fire away...<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt;&gt;&gt;&gt;David.Trant@andrew.com 1/19/2006 14:25:03 &gt;&gt;&gt;<br>
&gt; <br>
&gt; What about making it an asynchronous task and finding/creating a <br>
&gt; terminating event to shut it down when the deadline is reached?<br>
&gt; <br>
&gt; &nbsp;<br>
&gt; <br>
&gt; ________________________________<br>
&gt; <br>
&gt; From: sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] On
<br>
&gt; Behalf Of Edwin Mukusha<br>
&gt; Sent: Thursday, January 19, 2006 12:27 PM<br>
&gt; To: SAP Workflow Users' Group<br>
&gt; Subject: Re: Keep Single step task from completing until Dead Line
<br>
&gt; date<br>
&gt; <br>
&gt; &nbsp;<br>
&gt; <br>
&gt; <br>
&gt; Hi Rick,<br>
&gt; <br>
&gt; I don't think you can do this without a workflow template of a writing<br>
<br>
&gt; this logic in a custom method (which would amount to the some effort
<br>
&gt; anyway). &nbsp;You are better off putting this standard task in a
wf <br>
&gt; template where you will more options at your disposal.<br>
&gt; <br>
&gt; sorry if this is not answer you wanted. <br>
&gt; <br>
&gt; Edwin. <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; &nbsp;<br>
&gt; <br>
&gt; &quot;Rick Sample&quot; &lt;Rick.Sample@gbe.com&gt;<br>
&gt; Sent by: sap-wug-bounces@mit.edu<br>
&gt; <br>
&gt; 01/19/2006 10:14 AM<br>
&gt; Please respond to &quot;SAP Workflow Users' Group&quot; <br>
&gt; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; To: &nbsp; &nbsp; &nbsp; &nbsp;sap-wug@mit.edu
<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; cc: &nbsp; &nbsp; &nbsp; &nbsp; <br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; Subject: &nbsp; &nbsp; &nbsp; &nbsp;Keep
Single step task from completing until<br>
&gt; Dead<br>
&gt; Line date<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; I have an standard task that has a Confirm on end. Started via <br>
&gt; SWW_WI_START. (I know, I need to change to API but not today) This
<br>
&gt; keeps the task in the inbox until the user completes or until the
Dead<br>
<br>
&gt; Line is reached and then terminates.<br>
&gt; <br>
&gt; Now, business does not like the Confirm on End pop-up. (Don't ask!)
<br>
&gt; They want it to just stay in the inbox until the deadline date. The
<br>
&gt; user could execute the task several times and just not go away until
<br>
&gt; dead line.<br>
&gt; <br>
&gt; I would rather not create a whole WF template just to loop. <br>
&gt; Anyone know of a way to achieve this in 4.6c?<br>
&gt; <br>
&gt; Rick<br>
&gt; <br>
&gt; <br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; SAP-WUG mailing list<br>
&gt; SAP-WUG@mit.edu<br>
&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br>
&gt; <br>
&gt;<br>
------------------------------------------------------------------------<br>
------------------------<br>
&gt; This message is for the designated recipient only and may<br>
&gt; contain privileged, proprietary, or otherwise private information.
&nbsp;<br>
&gt; If you have received it in error, please notify the sender<br>
&gt; immediately and delete the original. &nbsp;Any unauthorized use of<br>
&gt; this email is prohibited.<br>
&gt;<br>
------------------------------------------------------------------------<br>
------------------------<br>
&gt; [mf2]<br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; SAP-WUG mailing list<br>
&gt; SAP-WUG@mit.edu<br>
&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br>
<br>
_______________________________________________<br>
SAP-WUG mailing list<br>
SAP-WUG@mit.edu<br>
http://mailman.mit.edu/mailman/listinfo/sap-wug<br>
<br>
<br>
<br>
<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
SAP-WUG mailing list<br>
SAP-WUG@mit.edu<br>
http://mailman.mit.edu/mailman/listinfo/sap-wug<br>
<br>
<br>
End of SAP-WUG Digest, Vol 14, Issue 62<br>
***************************************<br>
<br>
_______________________________________________<br>
SAP-WUG mailing list<br>
SAP-WUG@mit.edu<br>
http://mailman.mit.edu/mailman/listinfo/sap-wug<br>
</tt></font>
<br>