<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Loren,<br>
    <br>
    I think you are allowed to have a terminating event for a
    synchronous task. That should take care of change outside workflow.
    You don't need any hacks other than a synchronous edit method.<br>
    It is worth a try. Not a good practice to update SAP tables directly
    <span class="moz-smiley-s3"><span> ;-) </span></span>. <br>
    <br>
    Cheers,<br>
    Ramki.<br>
    <br>
    <div class="moz-cite-prefix">On 6/30/15, 3:24 PM, Bratzler, Loren
      wrote:<br>
    </div>
    <blockquote
cite="mid:D093F74E504B0745917E905C9FC31F2D13A569B148@GATUCEXCH07ASV.nscorp.ad.nscorp.com"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Comic Sans MS";
        panose-1:3 15 7 2 3 3 2 2 2 4;}
@font-face
        {font-family:"Comic Sans MS \;color\:blue";}
@font-face
        {font-family:"Courier New \;background\:white";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:"Times New Roman \, serif";
        panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";
        color:black;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:Consolas;
        color:black;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
span.EmailStyle21
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.EmailStyle22
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.l0s521
        {mso-style-name:l0s521;
        font-family:"Courier New";
        color:blue;
        background:white;}
span.l0s551
        {mso-style-name:l0s551;
        font-family:"Courier New";
        color:purple;
        background:white;}
span.l0s701
        {mso-style-name:l0s701;
        font-family:"Courier New";
        color:gray;
        background:white;}
span.l0s331
        {mso-style-name:l0s331;
        font-family:"Courier New";
        color:#4DA619;
        background:white;}
span.l0s311
        {mso-style-name:l0s311;
        font-family:"Courier New";
        color:gray;
        background:white;
        font-style:italic;}
span.EmailStyle28
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle29
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:#1F497D">Ramki,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Even if I put
            the status check in the &#8220;Complete Execution&#8221; condition,
            there is still the chance that someone could change the
            document status to &#8220;complete&#8221; between the time it is entered
            and when the approver acts upon it.&nbsp; Once that status is
            changed to &#8220;complete&#8221;, I would not be able to use that as a
            way to know that it is OK to advance to the next step.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">So now, I have
            come up with another hack that so far, appears to work for
            every scenario I can think of.&nbsp; It involves setting the
            status of the document back to &#8220;parked&#8221; before launching the
            MIR4 t-code.&nbsp; Then when we come back from MIR4, I check it
            again to see if the status has been changed to &#8220;complete&#8221;:<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"> </span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">begin_method&nbsp;zedit&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">changing&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">container</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:purple;background:white">.</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white"><br>
            <br>
          </span><span style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">DATA</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:purple;background:white">:&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">lv_status&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">TYPE&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">rbkp</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:gray;background:white">-</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">rbstat</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:purple;background:white">.</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white"><br>
            <br>
          </span><span style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">SELECT&nbsp;SINGLE&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">rbstat<br>
            &nbsp;&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">FROM&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">rbkp<br>
            &nbsp;&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">INTO&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">lv_status<br>
            &nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">WHERE&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">belnr&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:purple;background:white">=&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">object</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:gray;background:white">-</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">key</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:gray;background:white">-</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">invoicedocnumber<br>
            &nbsp;&nbsp;&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">AND&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">gjahr&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:purple;background:white">=&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">object</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:gray;background:white">-</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">key</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:gray;background:white">-</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">fiscalyear</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:purple;background:white">.</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white"><br>
            <br>
          </span><span style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">IF&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">lv_status&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:purple;background:white">=&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:#4DA619;background:white">'B'</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:purple;background:white">.</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white"><br>
            &nbsp;&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">UPDATE&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">rbkp<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">SET&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">rbstat&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:purple;background:white">=&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:#4DA619;background:white">'A'</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white"><br>
            &nbsp;&nbsp;&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">WHERE&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">belnr&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:purple;background:white">=&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">object</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:gray;background:white">-</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">key</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:gray;background:white">-</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">invoicedocnumber<br>
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">AND&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">gjahr&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:purple;background:white">=&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">object</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:gray;background:white">-</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">key</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:gray;background:white">-</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">fiscalyear</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:purple;background:white">.</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white"><br>
          </span><span style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">ENDIF</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:purple;background:white">.</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white"><br>
            <br>
          </span><span style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">PERFORM&nbsp;edit&nbsp;IN&nbsp;PROGRAM&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">rbus2081&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">TABLES&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">container&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">CHANGING&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">swo_%invoke</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:purple;background:white">.</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white"><br>
            <br>
          </span><span style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">SELECT&nbsp;SINGLE&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">rbstat<br>
            &nbsp;&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">FROM&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">rbkp<br>
            &nbsp;&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">INTO&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">lv_status<br>
            &nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">WHERE&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">belnr&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:purple;background:white">=&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">object</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:gray;background:white">-</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">key</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:gray;background:white">-</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">invoicedocnumber<br>
            &nbsp;&nbsp;&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">AND&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">gjahr&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:purple;background:white">=&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">object</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:gray;background:white">-</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">key</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:gray;background:white">-</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">fiscalyear</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:purple;background:white">.</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white"><br>
            <br>
          </span><span style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">IF&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white">lv_status&nbsp;&lt;&gt;&nbsp;</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:#4DA619;background:white">'B'</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:purple;background:white">.&nbsp;&nbsp;&nbsp;</span><i><span
              style="font-size:10.0pt;font-family:&quot;Courier
              New&quot;;color:gray;background:white">"&nbsp;Completed</span></i><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white"><br>
            &nbsp;&nbsp;exit_cancelled</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:purple;background:white">.</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white"><br>
          </span><span style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:blue;background:white">ENDIF</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:purple;background:white">.</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;background:white"><br>
            <br>
            end_method</span><span
            style="font-size:10.0pt;font-family:&quot;Courier
            New&quot;;color:purple;background:white">.</span><span
            style="color:#1F497D"><o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D">Note that I
            could not figure out how to get the SWC_CALL_METHOD to work
            so I am using the PERFORM option instead.&nbsp; It seems to work
            fine.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <div>
          <p class="MsoNormal"><span
              style="font-size:10.0pt;font-family:&quot;Comic Sans
              MS&quot;;color:blue">Loren Bratzler<o:p></o:p></span></p>
          <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:gray">Norfolk
              Southern Corporation<o:p></o:p></span></p>
        </div>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <p class="MsoNormal"><span style="color:#1F497D"><o:p>&nbsp;</o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #B5C4DF
            1.0pt;padding:3.0pt 0in 0in 0in">
            <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">
                <a class="moz-txt-link-abbreviated" href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</a> [<a class="moz-txt-link-freetext" href="mailto:sap-wug-bounces@mit.edu">mailto:sap-wug-bounces@mit.edu</a>]
                <b>On Behalf Of </b>Ramki Maley<br>
                <b>Sent:</b> Tuesday, June 30, 2015 1:34 PM<br>
                <b>To:</b> SAP Workflow Users' Group<br>
                <b>Subject:</b> [EXTERNAL] Re: Advance With Dialog on
                Asynchronous Task<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p>&nbsp;</o:p></p>
        <p class="MsoNormal" style="margin-bottom:12.0pt">Hi Loren,<br>
          <br>
          A better option might be to test the status in the&nbsp; 'Complete
          Execution' Condition for the step. Not sure if that will break
          the dialog chain. you can easily test it.<br>
          <br>
          And for the other question, the answer is SWC_CALL_METHOD
          &lt;Object&gt; &lt;Method&gt; &lt;Container&gt;.<br>
          <br>
          Cheers,<br>
          Ramki.<br>
          <br>
          <o:p></o:p></p>
        <div>
          <p class="MsoNormal">On 6/30/15, 9:28 AM, Bratzler, Loren
            wrote:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoNormal"><span style="color:#1F497D">Hey Jocelyn,
              hope you are doing well!</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D">Thinking
              about what you said and what Ramki said, I found a hack
              for my custom method that appears to work where I check
              the status of the document after returning from the t-code
              call:</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;">begin_method&nbsp;zedit&nbsp;</span><span
              style="font-size:10.0pt">changing&nbsp;</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;">container</span><span
              style="font-size:10.0pt">.</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;"><br>
              <br>
            </span><span style="font-size:10.0pt">DATA:&nbsp;</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;">lv_status&nbsp;</span><span
              style="font-size:10.0pt">TYPE&nbsp;</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;">rbkp</span><span
              style="font-size:10.0pt">-</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;">rbstat</span><span
              style="font-size:10.0pt">.</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;"><br>
              <br>
            </span><span style="font-size:10.0pt">DATA:&nbsp;</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;">xwfla1&nbsp;</span><span
              style="font-size:10.0pt">LIKE&nbsp;</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;">boole</span><span
              style="font-size:10.0pt">-</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;">boole&nbsp;</span><span
              style="font-size:10.0pt">VALUE&nbsp;'X'.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i>"Note916729</i></span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;"><br>
            </span><span style="font-size:10.0pt">SET&nbsp;PARAMETER&nbsp;ID&nbsp;'RBN'&nbsp;FIELD&nbsp;</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;">object</span><span
              style="font-size:10.0pt">-key-</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;">invoicedocnumber</span><span
              style="font-size:10.0pt">.</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;"><br>
            </span><span style="font-size:10.0pt">SET&nbsp;PARAMETER&nbsp;ID&nbsp;'GJR'&nbsp;FIELD&nbsp;</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;">object</span><span
              style="font-size:10.0pt">-key-</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;">fiscalyear</span><span
              style="font-size:10.0pt">.</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;"><br>
            </span><span style="font-size:10.0pt">SET&nbsp;PARAMETER&nbsp;ID&nbsp;'CHG'&nbsp;FIELD&nbsp;'X'.</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;"><br>
            </span><span style="font-size:10.0pt">EXPORT&nbsp;</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;">xwfla1&nbsp;</span><span
              style="font-size:10.0pt">TO&nbsp;MEMORY&nbsp;ID&nbsp;'FIENJOYWF'.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i>"Note916729</i></span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;"><br>
            </span><span style="font-size:10.0pt">CALL&nbsp;TRANSACTION&nbsp;'MIR4'&nbsp;AND&nbsp;SKIP&nbsp;FIRST&nbsp;SCREEN.</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;"><br>
              <br>
            </span><span style="font-size:10.0pt">SELECT&nbsp;SINGLE&nbsp;</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;">rbstat<br>
              &nbsp;&nbsp;</span><span style="font-size:10.0pt">FROM&nbsp;</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;">rbkp<br>
              &nbsp;&nbsp;</span><span style="font-size:10.0pt">INTO&nbsp;</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;">lv_status<br>
              &nbsp;</span><span style="font-size:10.0pt">WHERE&nbsp;</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;">belnr&nbsp;</span><span
              style="font-size:10.0pt">=&nbsp;</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;">object</span><span
              style="font-size:10.0pt">-key-</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;">invoicedocnumber<br>
              &nbsp;&nbsp;&nbsp;</span><span style="font-size:10.0pt">AND&nbsp;</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;">gjahr&nbsp;</span><span
              style="font-size:10.0pt">=&nbsp;</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;">object</span><span
              style="font-size:10.0pt">-key-</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;">fiscalyear</span><span
              style="font-size:10.0pt">.</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;"><br>
              <br>
            </span><span style="font-size:10.0pt">IF&nbsp;</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;">lv_status&nbsp;&lt;&gt;&nbsp;</span><span
              style="font-size:10.0pt">'B'.</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;"> &nbsp;&nbsp;&nbsp;</span><i><span
                style="font-size:10.0pt">"&nbsp;Completed</span></i><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;"><br>
              &nbsp;&nbsp;exit_cancelled</span><span style="font-size:10.0pt">.</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;"><br>
            </span><span style="font-size:10.0pt">ENDIF.</span><span
              style="font-size:10.0pt;font-family:&quot;Courier New
              ;background:white&quot;,&quot;serif&quot;"><br>
              <br>
              end_method</span><span style="font-size:10.0pt">.</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="font-size:10.0pt">&nbsp;</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="font-size:10.0pt">&nbsp;</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D">The obvious
              downside to this is if someone happens to change the
              document status to &#8220;completed&#8221; outside of workflow via the
              normal backend MIR4 screen.&nbsp; We do have an enhancement
              implementation on the MIR4 screen where I might be able to
              control the &#8220;save as complete&#8221; button to only be allowed
              by the workflow approver.&nbsp; If I can make that work, then
              this approach may work for us.</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D">One more
              question for anyone:&nbsp; This custom method, ZEDIT, is a copy
              of the standard method, EDIT.&nbsp; Is there a way to call the
              standard method from my custom method so that I don&#8217;t have
              to duplicate the code being executed?</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
          <div>
            <p class="MsoNormal"><span
                style="font-size:10.0pt;font-family:&quot;Comic Sans MS
                ;color:blue&quot;,&quot;serif&quot;">Loren Bratzler</span><o:p></o:p></p>
            <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:gray">Norfolk
                Southern Corporation</span><o:p></o:p></p>
          </div>
          <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
          <div>
            <div style="border:none;border-top:solid #B5C4DF
              1.0pt;padding:3.0pt 0in 0in 0in">
              <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">
                  <a moz-do-not-send="true"
                    href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</a>
                  [<a moz-do-not-send="true"
                    href="mailto:sap-wug-bounces@mit.edu">mailto:sap-wug-bounces@mit.edu</a>]
                  <b>On Behalf Of </b>Dart, Jocelyn<br>
                  <b>Sent:</b> Monday, June 29, 2015 4:54 PM<br>
                  <b>To:</b> SAP Workflow Users' Group<br>
                  <b>Subject:</b> [EXTERNAL] Re: Advance With Dialog on
                  Asynchronous Task</span><o:p></o:p></p>
            </div>
          </div>
          <p class="MsoNormal">&nbsp;<o:p></o:p></p>
          <div>
            <p class="MsoNormal">Hi Loren&nbsp;<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal">Ok so this is why that method was
              originally asynchronous as with a transaction the std way
              to find out if the work was done is to listen for a
              terminating event. &nbsp;<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal">&nbsp;<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal">So Catch-22.&nbsp;<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal">&nbsp;<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal">Maybe see if there is a BAPI that lets
              you do a synchronous call. &nbsp;<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal">&nbsp;<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal">Is creating your own alternative UI in
              SAPUI5 or WDA to control the edit a possible option?<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal">Rgds<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal">Jocelyn<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal"><br>
              Sent from my iPhone with many apologies for the spelling,
              grammar and any other deficiencies&nbsp;<o:p></o:p></p>
          </div>
          <div>
            <p class="MsoNormal" style="margin-bottom:12.0pt"><br>
              On 30 Jun 2015, at 5:28 am, Bratzler, Loren &lt;<a
                moz-do-not-send="true"
                href="mailto:Loren.Bratzler@nscorp.com">Loren.Bratzler@nscorp.com</a>&gt;
              wrote:<o:p></o:p></p>
          </div>
          <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
            <div>
              <p class="MsoNormal"><span style="color:#1F497D">I&#8217;m not
                  sure how I am going to be able to tell from within the
                  EDIT method if the document is &#8220;COMPLETE&#8221; or not.&nbsp; The
                  method code is executing transaction MIR4 directly
                  like this:</span><o:p></o:p></p>
              <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
              <p class="MsoNormal"><span
                  style="font-size:10.0pt;font-family:&quot;Courier New
                  ;background:white&quot;,&quot;serif&quot;">&nbsp;&nbsp;begin_method&nbsp;</span><span
                  class="l0s521"><span style="font-size:10.0pt">edit&nbsp;changing&nbsp;</span></span><span
                  style="font-size:10.0pt;font-family:&quot;Courier New
                  ;background:white&quot;,&quot;serif&quot;">container</span><span
                  class="l0s551"><span style="font-size:10.0pt">.</span></span><span
                  style="font-size:10.0pt;font-family:&quot;Courier New
                  ;background:white&quot;,&quot;serif&quot;"><br>
                  <br>
                  &nbsp;&nbsp;</span><span class="l0s521"><span
                    style="font-size:10.0pt">DATA</span></span><span
                  class="l0s551"><span style="font-size:10.0pt">:&nbsp;</span></span><span
                  style="font-size:10.0pt;font-family:&quot;Courier New
                  ;background:white&quot;,&quot;serif&quot;">xwfla1&nbsp;</span><span
                  class="l0s521"><span style="font-size:10.0pt">LIKE&nbsp;</span></span><span
                  style="font-size:10.0pt;font-family:&quot;Courier New
                  ;background:white&quot;,&quot;serif&quot;">boole</span><span
                  class="l0s701"><span style="font-size:10.0pt">-</span></span><span
                  style="font-size:10.0pt;font-family:&quot;Courier New
                  ;background:white&quot;,&quot;serif&quot;">boole&nbsp;</span><span
                  class="l0s521"><span style="font-size:10.0pt">VALUE&nbsp;</span></span><span
                  class="l0s331"><span style="font-size:10.0pt">'X'</span></span><span
                  class="l0s551"><span style="font-size:10.0pt">.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span
                  class="l0s311"><span style="font-size:10.0pt">"Note916729</span></span><span
                  style="font-size:10.0pt;font-family:&quot;Courier New
                  ;background:white&quot;,&quot;serif&quot;"><br>
                  &nbsp;&nbsp;</span><span class="l0s521"><span
                    style="font-size:10.0pt">SET&nbsp;PARAMETER&nbsp;ID&nbsp;</span></span><span
                  class="l0s331"><span style="font-size:10.0pt">'RBN'&nbsp;</span></span><span
                  class="l0s521"><span style="font-size:10.0pt">FIELD&nbsp;</span></span><span
                  style="font-size:10.0pt;font-family:&quot;Courier New
                  ;background:white&quot;,&quot;serif&quot;">object</span><span
                  class="l0s701"><span style="font-size:10.0pt">-</span></span><span
                  class="l0s521"><span style="font-size:10.0pt">key</span></span><span
                  class="l0s701"><span style="font-size:10.0pt">-</span></span><span
                  style="font-size:10.0pt;font-family:&quot;Courier New
                  ;background:white&quot;,&quot;serif&quot;">invoicedocnumber</span><span
                  class="l0s551"><span style="font-size:10.0pt">.</span></span><span
                  style="font-size:10.0pt;font-family:&quot;Courier New
                  ;background:white&quot;,&quot;serif&quot;"><br>
                  &nbsp;&nbsp;</span><span class="l0s521"><span
                    style="font-size:10.0pt">SET&nbsp;PARAMETER&nbsp;ID&nbsp;</span></span><span
                  class="l0s331"><span style="font-size:10.0pt">'GJR'&nbsp;</span></span><span
                  class="l0s521"><span style="font-size:10.0pt">FIELD&nbsp;</span></span><span
                  style="font-size:10.0pt;font-family:&quot;Courier New
                  ;background:white&quot;,&quot;serif&quot;">object</span><span
                  class="l0s701"><span style="font-size:10.0pt">-</span></span><span
                  class="l0s521"><span style="font-size:10.0pt">key</span></span><span
                  class="l0s701"><span style="font-size:10.0pt">-</span></span><span
                  style="font-size:10.0pt;font-family:&quot;Courier New
                  ;background:white&quot;,&quot;serif&quot;">fiscalyear</span><span
                  class="l0s551"><span style="font-size:10.0pt">.</span></span><span
                  style="font-size:10.0pt;font-family:&quot;Courier New
                  ;background:white&quot;,&quot;serif&quot;"><br>
                  &nbsp;&nbsp;</span><span class="l0s521"><span
                    style="font-size:10.0pt">SET&nbsp;PARAMETER&nbsp;ID&nbsp;</span></span><span
                  class="l0s331"><span style="font-size:10.0pt">'CHG'&nbsp;</span></span><span
                  class="l0s521"><span style="font-size:10.0pt">FIELD&nbsp;</span></span><span
                  class="l0s331"><span style="font-size:10.0pt">'X'</span></span><span
                  class="l0s551"><span style="font-size:10.0pt">.</span></span><span
                  style="font-size:10.0pt;font-family:&quot;Courier New
                  ;background:white&quot;,&quot;serif&quot;"><br>
                  &nbsp;&nbsp;</span><span class="l0s521"><span
                    style="font-size:10.0pt">EXPORT&nbsp;</span></span><span
                  style="font-size:10.0pt;font-family:&quot;Courier New
                  ;background:white&quot;,&quot;serif&quot;">xwfla1&nbsp;</span><span
                  class="l0s521"><span style="font-size:10.0pt">TO&nbsp;MEMORY&nbsp;ID&nbsp;</span></span><span
                  class="l0s331"><span style="font-size:10.0pt">'FIENJOYWF'</span></span><span
                  class="l0s551"><span style="font-size:10.0pt">.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></span><span
                  class="l0s311"><span style="font-size:10.0pt">"Note916729</span></span><span
                  style="font-size:10.0pt;font-family:&quot;Courier New
                  ;background:white&quot;,&quot;serif&quot;"><br>
                  &nbsp;&nbsp;</span><span class="l0s521"><span
                    style="font-size:10.0pt">CALL&nbsp;TRANSACTION&nbsp;</span></span><span
                  class="l0s331"><span style="font-size:10.0pt">'MIR4'&nbsp;</span></span><span
                  class="l0s521"><span style="font-size:10.0pt">AND&nbsp;SKIP&nbsp;FIRST&nbsp;SCREEN</span></span><span
                  class="l0s551"><span style="font-size:10.0pt">.</span></span><span
                  style="font-size:10.0pt;font-family:&quot;Courier New
                  ;background:white&quot;,&quot;serif&quot;"><br>
                  <br>
                  &nbsp;&nbsp;end_method</span><span class="l0s551"><span
                    style="font-size:10.0pt">.</span></span><o:p></o:p></p>
              <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
              <div>
                <p class="MsoNormal"><span
                    style="font-size:10.0pt;font-family:&quot;Comic Sans
                    MS ;color:blue&quot;,&quot;serif&quot;">Loren </span><o:p></o:p></p>
                <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:gray">&nbsp;</span><o:p></o:p></p>
              </div>
              <p class="MsoNormal"><span style="color:#1F497D">&nbsp;</span><o:p></o:p></p>
              <div>
                <div style="border:none;border-top:solid #B5C4DF
                  1.0pt;padding:3.0pt 0in 0in 0in">
                  <p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">From:</span></b><span
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;color:windowtext">
                      <a moz-do-not-send="true"
                        href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</a>
                      [<a moz-do-not-send="true"
                        href="mailto:sap-wug-bounces@mit.edu">mailto:sap-wug-bounces@mit.edu</a>]
                      <b>On Behalf Of </b>Ramki Maley<br>
                      <b>Sent:</b> Thursday, June 25, 2015 6:02 PM<br>
                      <b>To:</b> SAP Workflow Users' Group<br>
                      <b>Subject:</b> [EXTERNAL] Re: Advance With Dialog
                      on Asynchronous Task</span><o:p></o:p></p>
                </div>
              </div>
              <p class="MsoNormal">&nbsp;<o:p></o:p></p>
              <p class="MsoNormal">Loren,<br>
                <br>
                Instead of a terminating event for your custom EDIT
                method, Try issuing an EXIT_CANCELLED if the document is
                not 'COMPLETE'. This will keep the workitem from
                completing.<br>
                <br>
                Cheers,<br>
                Ramki.<o:p></o:p></p>
              <div>
                <p class="MsoNormal">On 6/25/15, 1:58 PM, Bratzler,
                  Loren wrote:<o:p></o:p></p>
              </div>
              <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
                <p class="MsoNormal">Hello Wuggers,<o:p></o:p></p>
                <p class="MsoNormal">&nbsp;<o:p></o:p></p>
                <p class="MsoNormal">Hope someone can help me here:<o:p></o:p></p>
                <p class="MsoNormal">&nbsp;<o:p></o:p></p>
                <p class="MsoNormal">I have a requirement in a workflow
                  to have a two-part approval process for the Incoming
                  Invoice (BUS2081) business object.&nbsp; The first part of
                  the approval process is to have the approver open the
                  document in Edit mode and review and make revisions to
                  a restricted number of fields.&nbsp; Once their review is
                  done, we want them to click &#8220;Save as Complete&#8221; and
                  then automatically advance to the second part of the
                  approval process where the user decision (approve or
                  reject buttons) appear.<o:p></o:p></p>
                <p class="MsoNormal">&nbsp;<o:p></o:p></p>
                <p class="MsoNormal">For the first step of the process,
                  I am using the standard EDIT method of the object and
                  when I define my task for using this method, I assign
                  the terminating event &#8220;COMPLETED&#8221; so that the task
                  will only complete when the user clicks &#8220;Save as
                  Complete&#8221;.<o:p></o:p></p>
                <p class="MsoNormal">&nbsp;<o:p></o:p></p>
                <p class="MsoNormal">The problem is that the EDIT method
                  for this object is asynchronous:<o:p></o:p></p>
                <p class="MsoNormal">&nbsp;<o:p></o:p></p>
                <p class="MsoNormal">&lt;image001.png&gt;<o:p></o:p></p>
                <p class="MsoNormal">&nbsp;<o:p></o:p></p>
                <p class="MsoNormal">So the &#8220;advance with dialog&#8221; option
                  does not work to automatically advance to the user
                  decision step where the approve/reject buttons will
                  appear.<o:p></o:p></p>
                <p class="MsoNormal">&nbsp;<o:p></o:p></p>
                <p class="MsoNormal">I tried to create my own custom
                  synchronous method in the object that was a copy of
                  the standard method.&nbsp; I then created a new task to
                  execute this new method and defined the same
                  terminating event.&nbsp; However, the problem with that is
                  when I insert the task into the workflow, there are
                  two outcome paths.&nbsp; One path is for the terminating
                  event I assigned but the other path is the normal
                  &#8220;advance&#8221; path.&nbsp; This causes the workflow to advance
                  to the user decision step when we don&#8217;t want it to.&nbsp;
                  We only want it to advance when they click &#8220;save as
                  complete&#8221; and raise the COMPLETED event.&nbsp; With this
                  configuration, the step advances when they click other
                  options on the screen like &#8220;back&#8221;, &#8220;exit&#8221; or &#8220;cancel&#8221;.<o:p></o:p></p>
                <p class="MsoNormal">&nbsp;<o:p></o:p></p>
                <p class="MsoNormal">&lt;image002.png&gt;<o:p></o:p></p>
                <p class="MsoNormal">&nbsp;<o:p></o:p></p>
                <p class="MsoNormal">The workflow builder will not allow
                  me to deactivate the &#8220;Step executed&#8221; outcome for the
                  step:<o:p></o:p></p>
                <p class="MsoNormal">&nbsp;<o:p></o:p></p>
                <p class="MsoNormal">&lt;image003.png&gt;<o:p></o:p></p>
                <p class="MsoNormal">&nbsp;<o:p></o:p></p>
                <p class="MsoNormal">Error message that occurs when you
                  try to deactivate this outcome:<o:p></o:p></p>
                <p class="MsoNormal">&nbsp;<o:p></o:p></p>
                <p class="MsoNormal">&lt;image004.png&gt;<o:p></o:p></p>
                <p class="MsoNormal">&nbsp;<o:p></o:p></p>
                <p class="MsoNormal">So I&#8217;m trying to figure out is
                  there some way for me to get around these limitations?<o:p></o:p></p>
                <p class="MsoNormal">&nbsp;<o:p></o:p></p>
                <p class="MsoNormal"><span
                    style="font-size:10.0pt;font-family:&quot;Comic Sans
                    MS ;color:blue&quot;,&quot;serif&quot;">Loren
                    Bratzler</span><o:p></o:p></p>
                <p class="MsoNormal"><span
style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;color:gray">Norfolk
                    Southern Corporation</span><o:p></o:p></p>
                <p class="MsoNormal"><span
                    style="font-size:12.0pt;font-family:&quot;Times New
                    Roman , serif&quot;,&quot;serif&quot;"><br>
                    <br>
                    <br>
                    <br>
                    <br>
                  </span><o:p></o:p></p>
                <pre>_______________________________________________<o:p></o:p></pre>
                <pre>SAP-WUG mailing list<o:p></o:p></pre>
                <pre><a moz-do-not-send="true" href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><o:p></o:p></pre>
                <pre><a moz-do-not-send="true" href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><o:p></o:p></pre>
              </blockquote>
              <p class="MsoNormal"><span
                  style="font-size:12.0pt;font-family:&quot;Times New
                  Roman , serif&quot;,&quot;serif&quot;">&nbsp;</span><o:p></o:p></p>
            </div>
          </blockquote>
          <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
            <div>
              <p class="MsoNormal"><span style="font-size:12.0pt">_______________________________________________<br>
                  SAP-WUG mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
                  <a moz-do-not-send="true"
                    href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</a></span><o:p></o:p></p>
            </div>
          </blockquote>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;font-family:&quot;Times New
              Roman&quot;,&quot;serif&quot;"><br>
              <br>
              <br>
              <o:p></o:p></span></p>
          <pre>_______________________________________________<o:p></o:p></pre>
          <pre>SAP-WUG mailing list<o:p></o:p></pre>
          <pre><a moz-do-not-send="true" href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><o:p></o:p></pre>
          <pre><a moz-do-not-send="true" href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><o:p></o:p></pre>
        </blockquote>
        <p class="MsoNormal"><span
            style="font-size:12.0pt;font-family:&quot;Times New
            Roman&quot;,&quot;serif&quot;"><o:p>&nbsp;</o:p></span></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
SAP-WUG mailing list
<a class="moz-txt-link-abbreviated" href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a>
<a class="moz-txt-link-freetext" href="http://mailman.mit.edu/mailman/listinfo/sap-wug">http://mailman.mit.edu/mailman/listinfo/sap-wug</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>