<div dir="ltr"><div>G&#39;day Loren,</div><div> </div><div>An oldie, but a goldie!! </div><div> </div><div>SAP has some wonderful code that says if the message number is initial, don&#39;t include it in the log. Oh but wait, message 000 is a valid message number.... Too bad. Pick a different number.</div>
<div> </div><div>If you change to message ZWF_MSG 001 it&#39;ll work a treat.</div><div> </div><div>Have fun,</div><div>Mark</div><div> </div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 11 December 2013 05:41, Bratzler, Loren <span dir="ltr">&lt;<a href="mailto:loren.bratzler@nscorp.com" target="_blank">loren.bratzler@nscorp.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" vlink="purple" link="blue"><div><p class="MsoNormal"><span style="color:rgb(31,73,125)">I feel like I’m asking an awful lot of questions here lately!  But here is another issue I am facing.  I spoke with Sue about this at TechEd and I have scoured SCN and the internet trying to find an answer but no luck so far.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125)">I have added a temporary exception to a BOR method when a user has the object locked.  On other workflows where we have a temporary exception, the workflow log shows a yellow warning indicator on the execution of the step that you can click on and get the temporary exception message:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125)"><img width="678" height="115" src="cid:image001.png@01CEF5AB.2D2E60F0"></span><span style="color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125)">If you click on the warning, you get a pop-up window that displays the message:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125)"><img width="432" height="140" src="cid:image002.png@01CEF5AB.707E2110"></span><span style="color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125)">However, on the workflow where I just added the temporary exception, I do not get the warning message.  You can see in this example below, that the background task was executed twice by the retry program (RSWWERRE) before it finally completed but I did not get the warning messages:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><img width="680" height="149" src="cid:image003.png@01CEF5AB.D2FF4300"><span style="color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125)">I have compared the two BOR methods (the one that works and the one that doesn’t work) and I believe I am doing everything correct.  They both have the exception defined as temporary:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><img width="656" height="205" src="cid:image004.png@01CEF5AC.995779F0"><span style="color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125)">And the logic in the method is doing an EXIT_RETURN raising the temporary exception number:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span><span style="font-size:10pt">* If there is only one error message and it is a user lock</span></span><span style="background:white;font-family:&quot;Courier New&quot;;font-size:10pt"><br>
</span><span><span style="font-size:10pt">* error (CJ-806), raise temporary exception 9001.</span></span><span style="background:white;font-family:&quot;Courier New&quot;;font-size:10pt"><br>      </span><span><span style="font-size:10pt">IF </span></span><span style="background:white;font-family:&quot;Courier New&quot;;font-size:10pt">lv_lines </span><span><span style="font-size:10pt">= </span></span><span><span style="font-size:10pt">1</span></span><span><span style="font-size:10pt">.</span></span><span style="background:white;font-family:&quot;Courier New&quot;;font-size:10pt"><br>
        </span><span><span style="font-size:10pt">READ TABLE </span></span><span style="background:white;font-family:&quot;Courier New&quot;;font-size:10pt">lt_result </span><span><span style="font-size:10pt">INDEX </span></span><span><span style="font-size:10pt">1</span></span><span style="background:white;font-family:&quot;Courier New&quot;;font-size:10pt"><br>
              </span><span><span style="font-size:10pt">INTO </span></span><span style="background:white;font-family:&quot;Courier New&quot;;font-size:10pt">ls_result</span><span><span style="font-size:10pt">.</span></span><span style="background:white;font-family:&quot;Courier New&quot;;font-size:10pt"><br>
        </span><span><span style="font-size:10pt">IF </span></span><span style="background:white;font-family:&quot;Courier New&quot;;font-size:10pt">ls_result</span><span><span style="font-size:10pt">-</span></span><span style="background:white;font-family:&quot;Courier New&quot;;font-size:10pt">message_id     </span><span><span style="font-size:10pt">= </span></span><span><span style="font-size:10pt">&#39;CJ&#39; </span></span><span><span style="font-size:10pt">AND</span></span><span style="background:white;font-family:&quot;Courier New&quot;;font-size:10pt"><br>
           ls_result</span><span><span style="font-size:10pt">-</span></span><span style="background:white;font-family:&quot;Courier New&quot;;font-size:10pt">message_number </span><span><span style="font-size:10pt">= </span></span><span><span style="font-size:10pt">&#39;806&#39;</span></span><span><span style="font-size:10pt">.</span></span><span style="background:white;font-family:&quot;Courier New&quot;;font-size:10pt"><br>
          lv_msg1 </span><span><span style="font-size:10pt">= </span></span><span style="background:white;font-family:&quot;Courier New&quot;;font-size:10pt">ls_result</span><span><span style="font-size:10pt">-</span></span><span style="background:white;font-family:&quot;Courier New&quot;;font-size:10pt">message_text</span><span><span style="font-size:10pt">.</span></span><span style="background:white;font-family:&quot;Courier New&quot;;font-size:10pt"><br>
          exit_return </span><span><span style="font-size:10pt">9001 </span></span><span style="background:white;font-family:&quot;Courier New&quot;;font-size:10pt">lv_msg1 space space space</span><span><span style="font-size:10pt">.</span></span><span style="background:white;font-family:&quot;Courier New&quot;;font-size:10pt"><br>
        </span><span><span style="font-size:10pt">ENDIF</span></span><span><span style="font-size:10pt">.</span></span><span style="background:white;font-family:&quot;Courier New&quot;;font-size:10pt"><br>      </span><span><span style="font-size:10pt">ENDIF</span></span><span><span style="font-size:10pt">.</span></span><span style="color:rgb(31,73,125)"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125)">Even though these changes were made strictly to the BOR Object, I also generated a new version of the workflow to see if that would make the messages start appearing in the log, but that did not work either.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:rgb(31,73,125)">Anyone have any ideas on what I might be missing here?<u></u><u></u></span></p><p class="MsoNormal">
<span style="color:rgb(31,73,125)"><u></u> <u></u></span></p><div><p class="MsoNormal"><span style="color:blue;font-family:&quot;Comic Sans MS&quot;;font-size:10pt">Loren Bratzler<u></u><u></u></span></p><p class="MsoNormal">
<span style="color:gray;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;font-size:10pt">Norfolk Southern Corporation<u></u><u></u></span></p><p class="MsoNormal"><span style="color:gray;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;font-size:10pt">110 Franklin Road SE<u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:gray;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;font-size:10pt">Roanoke, VA  24042-0060<u></u><u></u></span></p><p class="MsoNormal"><span style="color:gray;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;font-size:10pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="color:gray;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;font-size:10pt">Phone: <a href="tel:540-524-3072" target="_blank" value="+15405243072">540-524-3072</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="color:gray;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;font-size:10pt">Email: <a href="mailto:loren.bratzler@nscorp.com" target="_blank">loren.bratzler@nscorp.com</a><u></u><u></u></span></p>
</div><p class="MsoNormal"><span style="color:rgb(31,73,125)"><u></u> <u></u></span></p></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></div>