<div dir="ltr">Hi Loren,<div><br></div><div>The text is in table SWD_TEXT but it&#39;s probably easier (and better) to go via FM&nbsp;SWU_INTERN_GET_DECISION_TEXT.</div><div><br></div><div>regards</div><div>Rick Bakker</div></div>

<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Mar 28, 2014 at 3:47 AM, 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" link="blue" vlink="purple"><div><p class="MsoNormal">I am exploring the possibilities of creating a custom report where I can pass in a long list of invoices and get back a listing that shows the workflow approval information for each invoice.&nbsp; We want to see who approved the invoice, the date and time of the approval, and the result of the user&rsquo;s decision.<u></u><u></u></p>

<p class="MsoNormal"><u></u>&nbsp;<u></u></p><p class="MsoNormal">I can easily identify the dialog steps from the workflow and I know that I can use SAP_WAPI_READ_CONTAINER to get the WI_RESULT field value as shown here:<u></u><u></u></p>

<p class="MsoNormal"><u></u>&nbsp;<u></u></p><p class="MsoNormal"><img width="626" height="316" src="cid:image001.png@01CF49A8.08BED050"><u></u><u></u></p><p class="MsoNormal"><u></u>&nbsp;<u></u></p><p class="MsoNormal">But displaying a value of &ldquo;0001&rdquo; on the report as the user&rsquo;s decision is not going to be helpful.&nbsp; I want to be able to translate the numeric decision value to the text value that was assigned in the workflow definition.&nbsp; We want to be able to see the value &ldquo;APPROVED&rdquo; as it shows up in the workflow log:<u></u><u></u></p>

<p class="MsoNormal"><u></u>&nbsp;<u></u></p><p class="MsoNormal"><img width="847" height="82" src="cid:image002.png@01CF49A8.C436C1D0"><u></u><u></u></p><p class="MsoNormal"><u></u>&nbsp;<u></u></p><p class="MsoNormal">Is there a table somewhere in the system that I could query with the numeric WI_RESULT and get the text value back?<u></u><u></u></p>

<p class="MsoNormal"><u></u>&nbsp;<u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:&quot;Comic Sans MS&quot;;color:blue">Loren Bratzler<u></u><u></u></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<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>