<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="Section1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">Shankar,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">I&#8217;m not sure I understand your situation so I don&#8217;t know if this will be helpful, but here goes:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">If the data is available at the time the event is raised: Does the event have a parameter that you can pass? If not, might it be worth creating a custom event
 that has the parameter(s) you need? If you use event parameters, that data is passed to the workflow when you raise the event.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D">If the data is determined later, couldn&#8217;t that be a background task as a step in the workflow? Then you would simply bind the task container to the workflow
 container.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span lang="EN" style="font-size:10.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;
color:black">Margaret Hilsbos</span></b><span style="font-size:8.5pt;
font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN" style="font-size:9.0pt;font-family:&quot;Arial&quot;,&quot;sans-serif&quot;;
color:black"><a href="http://www.dayzim.com/"><span style="color:blue">Day &amp; Zimmermann</span></a></span><span style="font-size:8.5pt;font-family:
&quot;Verdana&quot;,&quot;sans-serif&quot;;color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.5pt;font-family:&quot;Verdana&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;
color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;">From:</span></b><span style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;"> sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu]
<b>On Behalf Of </b>Sree S<br>
<b>Sent:</b> Monday, January 16, 2012 11:10 AM<br>
<b>To:</b> SAP Workflow Users' Group<br>
<b>Subject:</b> Re: Workitem Locked by user - unlocking not being possible<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Hi Mike.<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">I hope there is a misconception !<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">I am starting a workflow using a creation of an event,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Until and unless i write the container, how do i pass the value to the workflow container.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">I locked it because it was said in one off the forums to lock it as there might be an enqueue error problem in the workitem and someone might change the data in a later case.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">shankar<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On Mon, Jan 16, 2012 at 12:46 PM, Mike Pokraka &lt;<a href="mailto:wug@workflowconnections.com">wug@workflowconnections.com</a>&gt; wrote:<o:p></o:p></p>
<p class="MsoNormal">Your approach is flawed on several fronts:<br>
1. Simply Unlocking something because it's locked is dangerous. There's a<br>
reason a process locks something - to keep others away from data that's<br>
being changed!<br>
2. There's a workflow container for passing data into workflows, you<br>
should not need to write to the container.<br>
3. Starting workflows directly is not a preferred option, usually events<br>
should be used.<br>
<br>
Regards,<br>
Mike<o:p></o:p></p>
<div>
<div>
<p class="MsoNormal"><br>
<br>
On Sat, January 14, 2012 1:55 am, Sree S wrote:<br>
&gt; Hi<br>
&gt; All.<br>
&gt;<br>
&gt; I am calling a workflow from a module pool program.<br>
&gt; the workitem in the workflow is being sent to multiple approvers...<br>
&gt;<br>
&gt; When i am trying to write the workflow container with the values i have as<br>
&gt; per the current selection in the module pool.<br>
&gt;<br>
&gt; I am getting an error, that the workitem is locked by user.<br>
&gt; It says that - Enqueue Error.<br>
&gt; when i am trying to unlock the workitem using FM ' DEQUEUE_E_WORKITEM'. it<br>
&gt; doesnt work and nothing happens,<br>
&gt;<br>
&gt; I am trying to write the workitem container as I need to complete the<br>
&gt; workitem with the required values from module pool program and which has<br>
&gt; to<br>
&gt; be passed to the rest of the process in the workflow.<br>
&gt;<br>
&gt; Can you one guide me in what can be done as an alternate rather the<br>
&gt; existing FM.<br>
&gt;<br>
&gt; Please help me !<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Shankar<o:p></o:p></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal">&gt; _______________________________________________<br>
&gt; SAP-WUG mailing list<br>
&gt; <a href="mailto:SAP-WUG@mit.edu">SAP-WUG@mit.edu</a><br>
&gt; <a href="http://mailman.mit.edu/mailman/listinfo/sap-wug" target="_blank">http://mailman.mit.edu/mailman/listinfo/sap-wug</a><br>
&gt;<br>
<br>
<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><o:p></o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<p class="MsoNormal">-- <br>
shankar<o:p></o:p></p>
</div>
</div>
</body>
</html>