<div><font face="arial,helvetica,sans-serif">Hi Deepali,</font></div>
<div><font face="arial,helvetica,sans-serif"></font>&nbsp;</div>
<div><font face="arial,helvetica,sans-serif">I don&#39;t know what do you mean by before starting but workitem id&nbsp;will be generated only after an instance of that work item is generated. I think you can check with Program Exits if&nbsp;they can solve your purpose.</font></div>

<div><font face="arial,helvetica,sans-serif"></font>&nbsp;</div>
<div>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><font face="arial,helvetica,sans-serif"><span lang="EN-US" style="FONT-SIZE: 10pt">Programming exits are available for workflow/dialog/wait step/background work items in which you can add ABAP classes. The ABAP classes must support the interface </span><span lang="EN-US" style="FONT-SIZE: 10pt; FONT-FAMILY: Courier; mso-bidi-font-family: Courier">IF_SWF_IFS_WORKITEM_EXIT </span><span lang="EN-US" style="FONT-SIZE: 10pt">and they can react to a pre-defined status change. </span></font></p>

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><font face="arial,helvetica,sans-serif"><span lang="EN-US" style="FONT-SIZE: 10pt"></span></font><font face="arial,helvetica,sans-serif"><span lang="EN-US" style="FONT-SIZE: 10pt"></span></font>&nbsp;</p>

<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><font face="arial,helvetica,sans-serif"><span lang="EN-US" style="FONT-SIZE: 10pt">I hope this helps.</span></font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><font face="arial,helvetica,sans-serif"><span lang="EN-US" style="FONT-SIZE: 10pt"></span></font>&nbsp;</p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><font face="arial,helvetica,sans-serif"><span lang="EN-US" style="FONT-SIZE: 10pt">Thanks,</span></font></p>
<p class="MsoNormal" style="MARGIN: 0cm 0cm 0pt; mso-layout-grid-align: none"><font face="arial,helvetica,sans-serif"><span lang="EN-US" style="FONT-SIZE: 10pt">Shaurya Jain</span></font></p><br><br></div>
<div class="gmail_quote">2008/7/11 Deepali Margaj &lt;<a href="mailto:deepalimargaj@gmail.com">deepalimargaj@gmail.com</a>&gt;:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div>Hi Experts,</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp; We&nbsp;have a&nbsp;requirement to get workitem ID for a Foreground task in a workflow. I have written code&nbsp;which uses FM SWO_QUERY_REQUESTER to return the workItem ID and update it to custom table. I have placed this code in the object method call&nbsp;(used by task) and it returns workitem ID correctly only if work Item execution is started. However requirement is to get the workItem ID as soon as&nbsp;WorkItem is created and we don&#39;t want to execute the workItem before receiving the ID in a custom table. Could anybody suggest the proper place to write this code .</div>

<div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Thanks in advance.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Regards,</div>
<div>Deepali</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>