<div dir="ltr">Hi Loren,<div><br></div><div>The text is in table SWD_TEXT but it's probably easier (and better) to go via FM 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"><<a href="mailto:loren.bratzler@nscorp.com" target="_blank">loren.bratzler@nscorp.com</a>></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. We want to see who approved the invoice, the date and time of the approval, and the result of the user’s decision.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <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> <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> <u></u></p><p class="MsoNormal">But displaying a value of “0001” on the report as the user’s decision is not going to be helpful. I want to be able to translate the numeric decision value to the text value that was assigned in the workflow definition. We want to be able to see the value “APPROVED” as it shows up in the workflow log:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <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> <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> <u></u></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Comic Sans MS";color:blue">Loren Bratzler<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial","sans-serif";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>