<div id="mb_0">
<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>