<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi Loren,</span><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Are you maintaining the approval decision text mandatory in the workflow approval process. How is the approval process happening. Is it through the transaction or some othe process. </span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">1. Approval at transaction : In this process ask the user to maintain the decision  texts in the transaction during approving or rejection. Then you can user FM READ_TEXT for reading the same. Also as you mentioned, you are reading the workflow texts. I would suggest to read the current status of the workflow and then run the above logic.</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><span style="font-family:arial,sans-serif;font-size:13px">Thanks.</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br>
</span></div><div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div></div><div class="gmail_extra"><br clear="all"><div><div dir="ltr"><div><br></div><div><br></div><div><br></div>SIVA KRISHNA<br>
+91-9000008083<div><br></div></div></div>
<br><br><div class="gmail_quote">On Fri, Mar 28, 2014 at 8:02 PM,  <span dir="ltr">&lt;<a href="mailto:sap-wug-request@mit.edu" target="_blank">sap-wug-request@mit.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Send SAP-WUG mailing list submissions to<br>
        <a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
        <a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
or, via email, send a message with subject or body &#39;help&#39; to<br>
        <a href="mailto:sap-wug-request@mit.edu">sap-wug-request@mit.edu</a><br>
<br>
You can reach the person managing the list at<br>
        <a href="mailto:sap-wug-owner@mit.edu">sap-wug-owner@mit.edu</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than &quot;Re: Contents of SAP-WUG digest...&quot;<br>
<br>
<br>
Today&#39;s Topics:<br>
<br>
   1. RE: How Can I Get Text of Workitem Result ? (Bratzler, Loren)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Fri, 28 Mar 2014 09:24:19 -0400<br>
From: &quot;Bratzler, Loren&quot; &lt;<a href="mailto:loren.bratzler@nscorp.com">loren.bratzler@nscorp.com</a>&gt;<br>
Subject: RE: How Can I Get Text of Workitem Result ?<br>
To: &quot;SAP Workflow Users&#39; Group&quot; &lt;<a href="mailto:sap-wug@mit.edu">sap-wug@mit.edu</a>&gt;<br>
Message-ID:<br>
        &lt;<a href="mailto:D093F74E504B0745917E905C9FC31F2D1170FE1E60@GATUCEXCH07ASV.nscorp.ad.nscorp.com">D093F74E504B0745917E905C9FC31F2D1170FE1E60@GATUCEXCH07ASV.nscorp.ad.nscorp.com</a>&gt;<br>
<br>
Content-Type: text/plain; charset=&quot;us-ascii&quot;<br>
<br>
Rick,<br>
<br>
Thanks for the reply.  The function module you pointed out gets me close to what I am looking for but not quite.  For example, if I run that FM against my test work-item I get these results:<br>
<br>
[cid:image003.png@01CF4A62.713EDF70]<br>
<br>
The text that this brought back is the text that appears on the user decision buttons.<br>
<br>
I realize now that what I am really looking for is the Outcome Name as defined in the Decision Options:<br>
<br>
[cid:image001.png@01CF4A62.CF7ED540]<br>
<br>
<br>
Loren<br>
<br>
<br>
From: <a href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</a> [mailto:<a href="mailto:sap-wug-bounces@mit.edu">sap-wug-bounces@mit.edu</a>] On Behalf Of Rick Bakker<br>
Sent: Thursday, March 27, 2014 8:09 PM<br>
To: SAP Workflow Users&#39; Group<br>
Subject: Re: How Can I Get Text of Workitem Result ?<br>
<br>
Hi Loren,<br>
<br>
The text is in table SWD_TEXT but it&#39;s probably easier (and better) to go via FM SWU_INTERN_GET_DECISION_TEXT.<br>
<br>
regards<br>
Rick Bakker<br>
<br>
On Fri, Mar 28, 2014 at 3:47 AM, Bratzler, Loren &lt;<a href="mailto:loren.bratzler@nscorp.com">loren.bratzler@nscorp.com</a>&lt;mailto:<a href="mailto:loren.bratzler@nscorp.com">loren.bratzler@nscorp.com</a>&gt;&gt; wrote:<br>

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&#39;s decision.<br>

<br>
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:<br>
<br>
[cid:image004.png@01CF4A62.713EDF70]<br>
<br>
But displaying a value of &quot;0001&quot; on the report as the user&#39;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 &quot;APPROVED&quot; as it shows up in the workflow log:<br>

<br>
[cid:image005.png@01CF4A62.713EDF70]<br>
<br>
Is there a table somewhere in the system that I could query with the numeric WI_RESULT and get the text value back?<br>
<br>
Loren Bratzler<br>
Norfolk Southern Corporation<br>
<br>
_______________________________________________<br>
SAP-WUG mailing list<br>
<a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a>&lt;mailto:<a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a>&gt;<br>
<a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <a href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20140328/a7078081/attachment-0002.htm" target="_blank">http://mailman.mit.edu/pipermail/sap-wug/attachments/20140328/a7078081/attachment-0002.htm</a><br>

-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: image003.png<br>
Type: image/png<br>
Size: 12940 bytes<br>
Desc: image003.png<br>
Url : <a href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20140328/a7078081/attachment-0008.png" target="_blank">http://mailman.mit.edu/pipermail/sap-wug/attachments/20140328/a7078081/attachment-0008.png</a><br>

-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: image004.png<br>
Type: image/png<br>
Size: 18567 bytes<br>
Desc: image004.png<br>
Url : <a href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20140328/a7078081/attachment-0009.png" target="_blank">http://mailman.mit.edu/pipermail/sap-wug/attachments/20140328/a7078081/attachment-0009.png</a><br>

-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: image005.png<br>
Type: image/png<br>
Size: 14085 bytes<br>
Desc: image005.png<br>
Url : <a href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20140328/a7078081/attachment-0010.png" target="_blank">http://mailman.mit.edu/pipermail/sap-wug/attachments/20140328/a7078081/attachment-0010.png</a><br>

-------------- next part --------------<br>
A non-text attachment was scrubbed...<br>
Name: image001.png<br>
Type: image/png<br>
Size: 13224 bytes<br>
Desc: image001.png<br>
Url : <a href="http://mailman.mit.edu/pipermail/sap-wug/attachments/20140328/a7078081/attachment-0011.png" target="_blank">http://mailman.mit.edu/pipermail/sap-wug/attachments/20140328/a7078081/attachment-0011.png</a><br>

<br>
------------------------------<br>
<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>
<br>
End of SAP-WUG Digest, Vol 112, Issue 30<br>
****************************************<br>
</blockquote></div><br></div>