<div><font face="arial,helvetica,sans-serif">Hi Deepali,</font></div>
<div><font face="arial,helvetica,sans-serif"></font> </div>
<div><font face="arial,helvetica,sans-serif">I don't know what do you mean by before starting but workitem id will be generated only after an instance of that work item is generated. I think you can check with Program Exits if they can solve your purpose.</font></div>
<div><font face="arial,helvetica,sans-serif"></font> </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> </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> </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 <<a href="mailto:deepalimargaj@gmail.com">deepalimargaj@gmail.com</a>>:<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> We have a requirement to get workitem ID for a Foreground task in a workflow. I have written code 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 (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 WorkItem is created and we don'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> Thanks in advance.</div>
<div> </div>
<div> </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>