<div>100% agree. Book is not good to calculate X number of working days. Happened to me last Monday.</div>  <div>&nbsp;</div>  <div>Jammi<BR><BR><B><I>Mark Pyc &lt;mark.pyc@gmail.com&gt;</I></B> wrote:</div>  <BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">  <DIV>Very true. I hadn't thought of this really, but I think Kjetil is also right to point out the relevance of short versus long deadlines. If you did&nbsp;make the deadlines take each "off day" into account then&nbsp;when you're&nbsp;deciding how long you need the deadline you'd need to think about weeks as multiples of 5 days (assuming simple calendar). And really if you're going to have a deadline over 10 days shirely you start talking in weeks or months and then the adjustment to a working day is a nicety but not that important anyway. </DIV>  <DIV>&nbsp;</DIV>  <DIV>However I appreciate that in other scenarios true FC calculations are important.</DIV> 
 <DIV>&nbsp;</DIV>  <DIV>My 2p (soon to be 2c again!)</DIV>  <DIV>Mark<BR><BR>&nbsp;</DIV>  <DIV><SPAN class=gmail_quote>On 9/28/06, <B class=gmail_sendername>Soady, Phil</B> &lt;<A href="mailto:phil.soady@sap.com">phil.soady@sap.com</A>&gt; wrote:</SPAN>   <BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi&nbsp;&nbsp;Kjetil,<BR>I think you have hit the nail on the head and this is why Paul<BR>correctly believes the sample solutions are&nbsp;&nbsp;wrong (don't address his <BR>issue).<BR><BR>The sample solutions only convert a calculated date into a working day.<BR>They do not calculate an offset of x working days from now.<BR><BR>The only way to do this is to call the calendar test x times for each <BR>day<BR>from now until the number of days tested as positive as as work days<BR>equals the desired offset.<BR><BR>The sample solutions simply correct a date to next factory calendar<BR>date.<BR>That's my quick
 interpretation of the code at least. <BR><BR>I have also seen this logic mistake around factory calendar in other<BR>custom code stretches.<BR><BR>ie incorrect.<BR>today (t) + offset (n) = y.<BR>corrected date (df) = factory_cal( y).<BR>df is now = to y or higher to reach first working after y. <BR><BR>However this is flawed, since Y is not (n) working days more than (t).<BR>A loop to call the calendar check (n) times is required.<BR><BR>Cheers<BR>Phil.<BR><BR><BR>Phil Soady<BR>Solution Architect<BR>Netweaver Consulting <BR>SAP Australia<BR>M&nbsp;&nbsp;+61 412 213 079<BR>F&nbsp;&nbsp;+61 2 9957 7263<BR>mailto:<A href="mailto:phil.soady@sap.com">phil.soady@sap.com</A><BR><BR><BR>-----Original Message-----<BR>From: <A href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu </A>[mailto:<A href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A>] On Behalf<BR>Of Kjetil Kilhavn<BR>Sent: Thursday, 28 September 2006 6:31 PM<BR>To: SAP Workflow Users'
 Group<BR>Subject: RE: Deadlines based on factory calendar - is The Book wrong? <BR><BR>Hmmmm... I looked a little more at the code in the presentation<BR>(embedded text file), and it looks like it is exactly the same solution<BR>as the appendix in the book.<BR><BR>However, there is one thing that makes me wonder about your requirement. <BR>You say that not only should the deadline be a working day, but only<BR>working days should be taken into account. It may make some sense for<BR>very short deadlines, e.g. a two-day deadline, but should a 15-day<BR>deadline be a three-week deadline? In the worst case (I don't know what <BR>options the standard function modules give you) you will have to loop<BR>over every date in the range and check if it is a working day or not.<BR>--<BR>Kjetil Kilhavn, Statoil OFT GBS BAS DEV SAP<BR><BR><BR>&gt; -----Original Message----- <BR>&gt; From: Kjetil Kilhavn<BR>&gt; Sent: 28. september 2006 10:14<BR>&gt; To: 'SAP Workflow Users'
 Group'<BR>&gt; Subject: RE: Deadlines based on factory calendar - is The Book wrong?<BR>&gt;<BR>&gt; I think this has been discussed several times before (have <BR>&gt; you searched the archives?) in this group, but I can't recall<BR>&gt; if anyone has had quite the same requirements as you.<BR>&gt;<BR>&gt; I have attached a PDF file (can't remember where I got it,<BR>&gt; whether it was in this group or perhaps on ASUG's site) with <BR>&gt; another implementation, and a PowerPoint file with an<BR>&gt; implementation that seems to be exactly what you want.<BR>&gt;<BR>&gt; If you find none of these match your needs than please create<BR>&gt; the ultimate solution and share it with the rest of us. <BR>&gt; --<BR>&gt; Kjetil Kilhavn, Statoil OFT GBS BAS DEV SAP<BR>&gt;<BR>&gt;<BR>&gt; &gt; -----Original Message-----<BR>&gt; &gt; From: <A href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A><BR>&gt; &gt; [mailto: <A
 href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</A>] On Behalf Of<BR>&gt; &gt; <A href="mailto:Paul.Bakker@osr.treasury.qld.gov.au">Paul.Bakker@osr.treasury.qld.gov.au</A><BR>&gt; &gt; Sent: 28. september 2006 09:13 <BR>&gt; &gt; To: <A href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</A><BR>&gt; &gt; Subject: Deadlines based on factory calendar - is The Book wrong?<BR>&gt; &gt;<BR>&gt; &gt; Hello all,<BR>&gt; &gt;<BR>&gt; &gt; We have a requirement to calculate the deadline for a <BR>&gt; &gt; workitem (eg Latest<BR>&gt; &gt; Start) based on the Factory Calendar.<BR>&gt; &gt;<BR>&gt; &gt; For example, if the workitem was created on a Thursday and<BR>&gt; &gt; the 'Latest Start' deadline is +3 days, then it should be <BR>&gt; &gt; triggered on the following Tuesday (not Sunday). In other<BR>&gt; &gt; words, it should only take working days into account.<BR>&gt; &gt;<BR>&gt; &gt; Surprisingly, SAP standard does not cater for this scenario. <BR>&gt; &gt; I
 therefore implemented the solution suggested in the The<BR>&gt; &gt; Book, in Appendix A9. It shows you how to create a custom<BR>&gt; &gt; deadline object based on the factory calendar, and use the<BR>&gt; &gt; expression ZDEADLINE.DATE as the reference date in the step.<BR>&gt; &gt;<BR>&gt; &gt; Surprisingly (again), this solution DOES NOT work. Deadlines<BR>&gt; &gt; are triggered without taking weekends into account.<BR>&gt; &gt;<BR>&gt; &gt; When I had a closer look at it, I noticed that the Factory <BR>&gt; &gt; Calendar is only being used to determine the Workitem<BR>&gt; &gt; _Creation Date_; it is not being used to calculate the Latest<BR>&gt; &gt; Start Date. The book even seems to concede this:<BR>&gt; &gt;<BR>&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "Note that the reference date gives the date based on<BR>&gt; &gt; the factory calendar, but any offset will simply be added to<BR>&gt; &gt; the reference date as normal".<BR>&gt; &gt;<BR>&gt; &gt; If this
 really is the case, then what is the point of <BR>&gt; &gt; implementing this solution?<BR>&gt; &gt;<BR>&gt; &gt; Has anyone gotten it to work? I'm sure it must be me... sigh.<BR>&gt; &gt;<BR>&gt; &gt; cheers<BR>&gt; &gt; Paul<BR>&gt; &gt;<BR>&gt; &gt;<BR>&gt; &gt; ************************************************************** <BR>&gt; &gt; **************************************************************<BR>&gt; &gt; **************************<BR>&gt; &gt;<BR>&gt; &gt; Only an individual or entity who is intended to be a<BR>&gt; &gt; recipient of this e-mail may access or use the information <BR>&gt; &gt; contained in this e-mail or any of its attachments.&nbsp;&nbsp;Opinions<BR>&gt; &gt; contained in this e-mail or any of its attachments do not<BR>&gt; &gt; necessarily reflect the opinions of Queensland Treasury.<BR>&gt; &gt; <BR>&gt; &gt; The contents of this e-mail and any attachments are<BR>&gt; &gt; confidential and may be legally privileged and the subject of<BR>&gt;
 &gt; copyright.&nbsp;&nbsp;If you have received this e-mail in error, please<BR>&gt; &gt; notify Queensland Treasury immediately and erase all copies <BR>&gt; &gt; of the e-mail and the attachments.&nbsp;&nbsp;Queensland Treasury uses<BR>&gt; &gt; virus scanning software.&nbsp;&nbsp;However, it is not liable for<BR>&gt; &gt; viruses present in this e-mail or in any attachment.<BR>&gt; &gt; <BR>&gt; &gt; **************************************************************<BR>&gt; &gt; **************************************************************<BR>&gt; &gt; **************************<BR>&gt; &gt;<BR>&gt; &gt; _______________________________________________ <BR>&gt; &gt; SAP-WUG mailing list<BR>&gt; &gt; <A href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A><BR>&gt; &gt; <A href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A> <BR>&gt; &gt;<BR><BR><BR>-------------------------------------------------------------------<BR>The
 information contained in this message may be CONFIDENTIAL and is<BR>intended for the addressee only. Any unauthorised use, dissemination of <BR>the<BR>information or copying of this message is prohibited. If you are not the<BR>addressee, please notify the sender immediately by return e-mail and<BR>delete<BR>this message.<BR>Thank you.<BR><BR>_______________________________________________ <BR>SAP-WUG mailing list<BR><A href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A><BR><A href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR><BR>_______________________________________________ <BR>SAP-WUG mailing list<BR><A href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</A><BR><A href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</A><BR></BLOCKQUOTE></DIV><BR>_______________________________________________<BR>SAP-WUG mailing
 list<BR>SAP-WUG@mit.edu<BR>http://mailman.mit.edu/mailman/listinfo/sap-wug<BR></BLOCKQUOTE><BR><p>&#32;
        
                <hr size=1>Get your own <a href=" http://us.rd.yahoo.com/evt=43290/*http://smallbusiness.yahoo.com/domains"
>web address for just $1.99/1st yr</a>. We'll help. <a href="http://us.rd.yahoo.com/evt=41244/*http://smallbusiness.yahoo.com/"
>Yahoo! Small Business</a>.