<div>Hi Hari,</div>
<div> </div>
<div>My inline comments for your questions.</div>
<div><br>1) Is there a table that I can refer where we can find the Factory Calendar<br> ID based on the company code?<br><br>Yes. the table is T001W. The factory calender id field is FABKL.</div>
<div><br> 2) Will the function module &#39;END_TIME_DETERMINE&#39; always returns a working<br> day / non holiday - even when the OFFSET &amp; TIME unit are empty? [Since<br> offset is not fixed here as we have +3 and +5 for requested and latest ends<br>
 respectively]. I mean I just pass the factory calendar ID and the offset (+3<br> +5) I would anyhow be providing at the workflow step level - will it still<br> work?</div>
<div> </div>
<div>I do not understand &quot;<strong>Will the function module &#39;END_TIME_DETERMINE&#39; always returns a working day / non holiday - even when the OFFSET &amp; TIME unit are empty</strong>?&quot; <br>If I understand correctly you mean here offset mean duration. If that is what you mean the function module will return SY-DATUM and SY_UZEIT as return.<br>
</div>
<div class="gmail_quote">On Wed, Jun 29, 2011 at 4:01 PM, <span dir="ltr">&lt;<a href="mailto:hari.bommaraju@accenture.com">hari.bommaraju@accenture.com</a>&gt;</span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Hi Rick,<br><br>Thanks for the response!<br><br>My question is - since I have two deadlines (+3 days and +5 days for requested and latest end - which I specify only at workflow step level) - how do I pass this offset information (+3 or +5 information) to the deadline object ZFactoryDeadline?<br>
<br>The +3 / +5 days is what I define at the workflow step level - now how does this offset information reach the method &#39;END_TIME_DETERMINE&#39;?<br><br>Suppose I execute method &#39;END_TIME_DETERMINE&#39; on a holiday specifying only the calendar ID and empty offset and time unit - will it return the holiday date / next working date?<br>
<br>Br,<br>Hari<br>
<div>
<div></div>
<div class="h5"><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 Of Rick Bakker<br>
Sent: Wednesday, June 29, 2011 1:48 PM<br>To: SAP Workflow Users&#39; Group<br>Subject: Re: Using Factory Calendar<br><br>Hello,<br><br>1) To see factory calendars:<br>/nSPRO -&gt; SAP Reference IMG &gt; SAP NetWeaver &gt; General Settings &gt;<br>
Maintain Calendar<br><br>2)  I don&#39;t understand the question. If the OFFSET and TIME are empty<br>you would either get an error or today&#39;s date and time.<br>Try it out. If today is a non-work day and you use no offset then I<br>
would guess that it would return today.<br><br>regards<br>Rick Bakker<br>hanabi technology<br><br>On Wed, Jun 29, 2011 at 6:06 PM,  &lt;<a href="mailto:hari.bommaraju@accenture.com">hari.bommaraju@accenture.com</a>&gt; wrote:<br>
&gt; Dear WUG,<br>&gt;<br>&gt;<br>&gt;<br>&gt; Need your advice!<br>&gt;<br>&gt;<br>&gt;<br>&gt; We have a requirement where we need to use both the deadlines &quot;Requested<br>&gt; End&quot; and &quot;Latest End&quot; in the invoice approval step. A reminder mail has to<br>
&gt; go in case of &quot;requested end&quot; and the work item has to be logically deleted<br>&gt; in case of &quot;latest end&quot;.<br>&gt;<br>&gt;<br>&gt;<br>&gt; In the invoice approval step, the reference date/time is the &quot;work item<br>
&gt; creation&quot; and the time for &quot;requested end&quot; is +3 days and for &quot;latest end&quot;<br>&gt; is +5 days.<br>&gt;<br>&gt;<br>&gt;<br>&gt; Now - the business asks us to use factory calendars in this regard - to make<br>
&gt; sure they do not get notification on week ends / holidays.<br>&gt;<br>&gt;<br>&gt;<br>&gt; I have created a ZFactoryDeadline object as suggested in the book &quot;Practical<br>&gt; Workflow for SAP&quot;.<br>&gt;<br>
&gt;<br>&gt;<br>&gt; My questions:<br>&gt;<br>&gt;<br>&gt;<br>&gt; 1) Is there a table that I can refer where we can find the Factory Calendar<br>&gt; ID based on the company code?<br>&gt;<br>&gt;<br>&gt;<br>&gt; 2) Will the function module &#39;END_TIME_DETERMINE&#39; always returns a working<br>
&gt; day / non holiday - even when the OFFSET &amp; TIME unit are empty? [Since<br>&gt; offset is not fixed here as we have +3 and +5 for requested and latest ends<br>&gt; respectively]. I mean I just pass the factory calendar ID and the offset (+3<br>
&gt; / +5) I would anyhow be providing at the workflow step level - will it still<br>&gt; work?<br>&gt;<br>&gt;<br>&gt;<br>&gt; Br,<br>&gt;<br>&gt; Hari<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>
&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt; ________________________________<br>&gt; This message is for the designated recipient only and may contain<br>&gt; privileged, proprietary, or otherwise private information. If you have<br>
&gt; received it in error, please notify the sender immediately and delete the<br>&gt; original. Any other use of the email by you is prohibited.<br>&gt;<br>&gt; _______________________________________________<br>&gt; SAP-WUG mailing list<br>
&gt; <a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>&gt; <a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>&gt;<br>&gt;<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" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br><br><br>This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information.  If you have received it in error, please notify the sender immediately and delete the original.  Any other use of the email by you is prohibited.<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" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Thanks and Regards<br>Srini..<br>SAP Technical Consultant<br><a href="mailto:srinivasa.reddy.oota@sap.com">srinivasa.reddy.oota@sap.com</a><br>+919886760677<br>
<br>