<div dir="ltr">Hi Jeff,<div><div>I think I came across a piece of standard code that solves a similar problem:</div><div><br></div><div>There is a field &#39;Workitem ID&#39; on the standard screen System:Status (System\Status... menu in SAP GUI).</div><div>This field displays current workitem id if you got to current screen by executing a workitem. Otherwise the field is invisible.<br></div><div>You can see the the code behind this field relies on FM &#39;GET_WORKFLOW_ID&#39;. (see module INIT in include LSHSYO01).</div>
</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Jul 26, 2014 at 3:41 AM, Mark Pyc <span dir="ltr">&lt;<a href="mailto:mark.pyc@gmail.com" target="_blank">mark.pyc@gmail.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 dir="ltr"><div>G&#39;day Jeff,</div><div><br></div><div>I dug this out recently while trying to do something similar. It didn&#39;t work for me in SRM 7, but it may work for you. </div><div><br></div><div>FM - SWE_WI_GET_FROM_REQUESTER</div>
<div><br></div><div>If you get a Workitem, you must be in WF. Might work. Dunno. </div><div><br></div><div>Have fun,</div><div>Mark</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">On 22 July 2014 06:59, Jeff Rappaport <span dir="ltr">&lt;<a href="mailto:Jeff@business-workflow.com" target="_blank">Jeff@business-workflow.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div dir="ltr">
<div dir="ltr">
<div style="color:rgb(0,0,255);font-family:&quot;Bookman Old Style&quot;;font-size:10pt">
<div>All,</div>
<div> </div>
<div>   I’m drawing a complete blank since I did it so long ago. I’m 
trying to tell the difference on whether an FI Tranx was run direct through the 
Tranx or executed from within the WF calling that Tranx or FM. We’re trying to 
make sure it was executed by only a valid Agent from within the step.</div>
<div> </div>
<div>Thanx,</div>
<div style="color:rgb(0,0,255);font-family:&quot;Bookman Old Style&quot;;font-size:10pt"><br>Jeffrey 
A. Rappaport<br>Business Workflow Inc.<br>Voice: <a href="tel:%2B1%20%28609%29%20301-8706" value="+16093018706" target="_blank">+1 (609) 301-8706</a><br>Fax: +1 
<a href="tel:%28866%29%20301-7666" value="+18663017666" target="_blank">(866) 301-7666</a> <br>Email: Jeff@Business-Workflow.com<br>Web: 
<a href="http://www.Business-Workflow.com" target="_blank">www.Business-Workflow.com</a><br>Link: 
<a href="http://www.linkedin.com/in/businessworkflow" target="_blank">www.linkedin.com/in/businessworkflow</a><br><br><br>The information contained in 
this message may be privileged, confidential and protected from disclosure. If 
the Reader of this message is not the intended recipient, you are hereby 
notified that any dissemination, distribution or copying of this communication 
is strictly prohibited. If you have received this communication in error and 
would like to be removed from any future mailings from this Sender, please hit 
&#39;Reply&#39; to this email with &quot;REMOVE&quot; in the Subject 
line.<br><br></div></div></div></div>
<br></div></div><span class="">_______________________________________________<br>
SAP-WUG mailing list<br>
<a href="mailto:SAP-WUG@mit.edu" target="_blank">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></span></blockquote></div><br></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><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Egor Malov</div>
</div>