<div>Perfect, thanks Rick it wasn&#39;t recognising the document type for some reason but you have got me an answer.</div>
<div> </div>
<div>Thanks</div>
<div> </div>
<div>Mike<br><br></div>
<div class="gmail_quote">On 23 August 2012 15:03, Rick Bakker <span dir="ltr">&lt;<a href="mailto:rbakker@gmail.com" target="_blank">rbakker@gmail.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">Mike, 
<div><br></div>
<div>Since you don&#39;t have a problem with changing the method, why not try the old trick of inserting</div>
<div>an infinite loop and then connecting to it to run it in debug (as Michael suggested).</div>
<div><br></div>
<div>
<div>* Temporary, for debugging.</div>
<div>data: lv_tmp(1).</div>
<div>lv_tmp = &#39;X&#39;.</div>
<div>while lv_tmp eq &#39;X&#39;.</div>
<div>endwhile.</div>
<div><br></div>
<div>SM50, find the program (often WF-BATCH) choose debug (Program/Session &gt; Program &gt; Debugging) </div>
<div>and change the value to get out of the loop.</div>
<div>NB: remember to remove the infinite loop later!</div>
<div><br></div>
<div>regards</div><span class="HOEnZb"><font color="#888888">
<div>Rick</div></font></span>
<div>
<div class="h5"><br>
<div class="gmail_quote">On Thu, Aug 23, 2012 at 11:54 PM, <span dir="ltr">&lt;<a href="mailto:michael.mcley@daimler.com" target="_blank">michael.mcley@daimler.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"><font face="sans-serif">Mike,</font><br><br><font face="sans-serif">The only advice I can offer here (and the WUG can correct me if I&#39;m wrong) is that workflow instances seem to maintain a lot of contextual information relating to the status of all the objects (workflows, tasks, methods, etc...) that were active at the time the workflow was started.  Meaning in a lot of cases new changes will not be evident on old workflows.  </font><br>
<br><font face="sans-serif">So just make sure you are starting a brand new workflow when you are testing a change.</font><br><br><font face="sans-serif">If this isn&#39;t relevant, I seem to remember there is a way to enter the debugger when you are testing a workflow.  But you have to change the task to foreground and click a couple of buttons in SWUS (maybe in the options dialog) after setting a breakpoint in the code.  Maybe someone else knows how to do this.<br>
</font><font color="#808000" size="4"><b></b></font>
<p><font color="#808000" size="4"><b>Michael McLey</b></font><font color="#808000" size="3"><b></b><br>MBUSI - IT Parts &amp; Administration </font><font color="#808000"><br>Mercedes-Benz US International, Inc.</font><font color="#808000" size="3"></font><font color="#808000"><br>
1 Mercedes Drive</font><font color="#808000" size="3"> </font><font color="#808000"><br>Vance, AL 35490</font><font color="#808000" size="3"> </font><font color="#808000"><br>PHONE:  <a href="tel:%28205%29%20462%20-%205239" target="_blank" value="+12054625239">(205) 462 - 5239</a></font><font color="#808000" size="3"> </font><font color="#808000"><br>
EMAIL:   <a href="mailto:michael.mcley@daimler.com" target="_blank">michael.mcley@daimler.com</a></font><font color="#808000" size="3">   </font><br><br><br></p>
<p></p>
<table width="100%">
<tbody>
<tr valign="top">
<td width="40%"><font size="1" face="sans-serif"><b><a href="mailto:mikenickson@gmail.com" target="_blank">mikenickson@gmail.com</a></b></font><br><font size="1" face="sans-serif">Sent by: <a href="mailto:sap-wug-bounces@mit.edu" target="_blank">sap-wug-bounces@mit.edu</a></font> 
<p><font size="1" face="sans-serif">08/23/2012 08:27 AM</font></p>
<table border="1">
<tbody>
<tr valign="top">
<td bgcolor="white">
<div align="center"><font size="1" face="sans-serif">Please respond to<br><a href="mailto:sap-wug@mit.edu" target="_blank">sap-wug@mit.edu</a></font></div></td></tr></tbody></table><br></td>
<td width="59%">
<table width="100%">
<tbody>
<tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">To</font></div></td>
<td><font size="1" face="sans-serif"><a href="mailto:SAP-WUG@mit.edu" target="_blank">SAP-WUG@mit.edu</a></font></td></tr>
<tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">cc</font></div></td>
<td></td></tr>
<tr valign="top">
<td>
<div align="right"><font size="1" face="sans-serif">Subject</font></div></td>
<td><font size="1" face="sans-serif">Workflow not responding to latest version of the business object</font></td></tr></tbody></table><br>
<table>
<tbody>
<tr valign="top">
<td></td>
<td></td></tr></tbody></table><br></td></tr></tbody></table>
<div>
<div><br><br><br><font size="3">I have amended a method on ZBUS2012 to exit on a certain document type (ZA) rather than perform the rest of the method code, saved and generated the object in the development client.<br> <br>
I test the object in the other client and it works fine.<br> <br>The workflow though seems to be hanging on to the old version of the object code, and the results I am getting in the task container that calls the method seems to be ignoring the new version of the code and it is not just exiting and returning as I expect.</font><br>
<font size="3"> </font><br><font size="3">I have even added a random error message to one of the method output parameters to see if it is using the new version of the object, to no avail.<br> <br>Tried OBUF and logging off and on again but still this is mystifying me.<br>
 <br>The workflow task should be calling the latest version of the object, but this doesn&#39;t seem to be happening.<br> <br>Any idea what I have missed ?<br> <br>How come when I test the object it works as I expect, but when the workflow calls the object it doesn&#39;t ?</font><br>
<font size="3"> </font><br></div></div><font size="3">Mike</font><tt><font size="+0">_______________________________________________<br>SAP-WUG mailing list<br><a href="mailto:SAP-WUG@mit.edu" target="_blank">SAP-WUG@mit.edu</a><br>
</font></tt><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank"><tt><font size="+0">http://mailman.mit.edu/mailman/listinfo/sap-wug</font></tt></a><tt><font size="+0"><br></font></tt><br><font face="sans-serif"><font color="#808080" size="-1" face="sans-serif, Arial, Helvetica"><br>
If you are not the intended addressee, please inform us immediately that you have received this e-mail in error, and delete it. We thank you for your cooperation. <br></font></font>
<p></p><br>_______________________________________________<br>SAP-WUG mailing list<br><a href="mailto:SAP-WUG@mit.edu" target="_blank">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></blockquote></div><br></div></div></div><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></blockquote></div><br>