<div><div>Hi Swathi,<br><br>On the step you want the &quot;Workitem ID&quot; from, set your _Workitem binding (from Task to Workflow) to a container element in your workflow (you can call it &quot;Previous_Workitem&quot; for example):
<br><br>Note: if binding out from a normal task, your container element should be Object type: WORKINGWI, <br>for background tasks the object should be BATCHITEM and; <br>for sub/workflows, the Object type is FLOWITEM.<br>
<br>Now you have stored the standard output of that workflow step into a container - you should have the &quot;Workitem ID&quot; of that step available in your &quot;Previous_Workitem&quot; container.<br><br>Hope that helps.
<br><br>Cheers,<br>Tom<br><br><br>&nbsp;</div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Thu, January 25, 2007 3:08 pm, Swathi_Devireddy wrote:
<br>&gt; Hi,<br>&gt; I have a situation where i need to check whether that partcular <span id="st" name="st" class="st">Workitem</span><br>&gt; was executed by the<br>&gt; Standard Option-Forward <span id="st" name="st" class="st">
Workitem</span> in my next Background step &nbsp;in &nbsp;Workflow.<br>&gt;<br>&gt; I checked the standard table SWIHEAD there is a field WI_FORW_BY which<br>&gt; contains a value if it WI was forwarded.<br>&gt; Problem is i am unable to retrieve the 
<span id="st" name="st" class="st">workitem</span> ID .<br>&gt;<br>&gt; Design<br>&gt; Main workflow calls a subworkflow. In my subworkflow i have my steps.<br>&gt; When i do binding of the <span id="st" name="st" class="st">
Workitem</span> ID it retrieves the first <span id="st" name="st" class="st">Workitem</span> ID in<br>&gt; my<br>&gt; subworkflow and not my Current Steps <span id="st" name="st" class="st">Workitem</span> in Logs.<br>&gt; Any idea how to get the current 
<span id="st" name="st" class="st">workitem</span> ID.<br>&gt;<br>&gt; Thanks &amp; Regards<br>&gt; Swathi Devireddy<br>&gt; HCU-<span id="st" name="st" class="st">SAP</span><br>&gt; Satyam Computer Services Ltd<br>&gt; * &nbsp; &nbsp;: +91 40 3065 2511
<br>&gt; * : +91 98853 35301<br></blockquote></div><br>