<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
Hello,<div><br></div><div>You don't need to lock the work item in order to write to the container. I think you can reserve it instead with a&nbsp;function&nbsp;module that i can't remember now and then replace it.</div><div><br></div><div>Regards,</div><div>Ali<br><br><div><div id="SkyDrivePlaceholder"></div>&gt; From: sap-wug-request@mit.edu<br>&gt; Subject: SAP-WUG Digest, Vol 86, Issue 15<br>&gt; To: sap-wug@mit.edu<br>&gt; Date: Mon, 16 Jan 2012 12:10:52 -0500<br>&gt; <br>&gt; Send SAP-WUG mailing list submissions to<br>&gt;         sap-wug@mit.edu<br>&gt; <br>&gt; To subscribe or unsubscribe via the World Wide Web, visit<br>&gt;         http://mailman.mit.edu/mailman/listinfo/sap-wug<br>&gt; or, via email, send a message with subject or body 'help' to<br>&gt;         sap-wug-request@mit.edu<br>&gt; <br>&gt; You can reach the person managing the list at<br>&gt;         sap-wug-owner@mit.edu<br>&gt; <br>&gt; When replying, please edit your Subject line so it is more specific<br>&gt; than "Re: Contents of SAP-WUG digest..."<br>&gt; <br>&gt; <br>&gt; Today's Topics:<br>&gt; <br>&gt;    1. Re: Workitem Locked by user - unlocking not being possible<br>&gt;       (Sree S)<br>&gt;    2. Re: Workitem Locked by user - unlocking not being possible<br>&gt;       (Mike Pokraka)<br>&gt;    3. Re: Workitem Locked by user - unlocking not being possible<br>&gt;       (Sree S)<br>&gt; <br>&gt; <br>&gt; ----------------------------------------------------------------------<br>&gt; <br>&gt; Message: 1<br>&gt; Date: Mon, 16 Jan 2012 08:40:52 +0000<br>&gt; From: Sree S &lt;to2sree@gmail.com&gt;<br>&gt; Subject: Re: Workitem Locked by user - unlocking not being possible<br>&gt; To: "SAP Workflow Users' Group" &lt;sap-wug@mit.edu&gt;<br>&gt; Message-ID:<br>&gt;         &lt;CAA_LhgSKOYtjRA3N7zCyFZwEoVzg7Pqr8MLmxE_-TQ8SkwrRgA@mail.gmail.com&gt;<br>&gt; Content-Type: text/plain; charset="iso-8859-1"<br>&gt; <br>&gt; This is not production system, this is quality system.<br>&gt; <br>&gt; On Sun, Jan 15, 2012 at 4:27 AM, brynn rutherford &lt;<br>&gt; brynn.rutherford@gmail.com&gt; wrote:<br>&gt; <br>&gt; &gt; Is this a production workitem? Is this one that users have already<br>&gt; &gt; selected or is this happening as you are testing?<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; On Sat, Jan 14, 2012 at 3:42 AM, Sree S &lt;to2sree@gmail.com&gt; wrote:<br>&gt; &gt;<br>&gt; &gt;&gt; Thanks for the prompt reply..<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; That doesnt work<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; On Sat, Jan 14, 2012 at 4:07 AM, brynn rutherford &lt;<br>&gt; &gt;&gt; brynn.rutherford@gmail.com&gt; wrote:<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;&gt; Did you try reactivating the workitem from within SWIA by clicking on<br>&gt; &gt;&gt;&gt; the matchstick? Also you may want to check and make sure you don't have the<br>&gt; &gt;&gt;&gt; curse of the SWNWIEX screen. I think you can also go into SM22 (I get that<br>&gt; &gt;&gt;&gt; tcode wrong sometimes) and kill the lock on the SWW table.<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; On Fri, Jan 13, 2012 at 5:55 PM, Sree S &lt;to2sree@gmail.com&gt; wrote:<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt; Hi<br>&gt; &gt;&gt;&gt;&gt; All.<br>&gt; &gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt; I am calling a workflow from a module pool program.<br>&gt; &gt;&gt;&gt;&gt; the workitem in the workflow is being sent to multiple approvers...<br>&gt; &gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt; When i am trying to write the workflow container with the values i have<br>&gt; &gt;&gt;&gt;&gt; as per the current selection in the module pool.<br>&gt; &gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt; I am getting an error, that the workitem is locked by user.<br>&gt; &gt;&gt;&gt;&gt; It says that - Enqueue Error.<br>&gt; &gt;&gt;&gt;&gt; when i am trying to unlock the workitem using FM ' DEQUEUE_E_WORKITEM'.<br>&gt; &gt;&gt;&gt;&gt; it doesnt work and nothing happens,<br>&gt; &gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt; I am trying to write the workitem container as I need to complete the<br>&gt; &gt;&gt;&gt;&gt; workitem with the required values from module pool program and which has to<br>&gt; &gt;&gt;&gt;&gt; be passed to the rest of the process in the workflow.<br>&gt; &gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt; Can you one guide me in what can be done as an alternate rather the<br>&gt; &gt;&gt;&gt;&gt; existing FM.<br>&gt; &gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt; Please help me !<br>&gt; &gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt; Thanks,<br>&gt; &gt;&gt;&gt;&gt; Shankar<br>&gt; &gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt; _______________________________________________<br>&gt; &gt;&gt;&gt;&gt; SAP-WUG mailing list<br>&gt; &gt;&gt;&gt;&gt; SAP-WUG@mit.edu<br>&gt; &gt;&gt;&gt;&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br>&gt; &gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt; _______________________________________________<br>&gt; &gt;&gt;&gt; SAP-WUG mailing list<br>&gt; &gt;&gt;&gt; SAP-WUG@mit.edu<br>&gt; &gt;&gt;&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; --<br>&gt; &gt;&gt; shankar<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; _______________________________________________<br>&gt; &gt;&gt; SAP-WUG mailing list<br>&gt; &gt;&gt; SAP-WUG@mit.edu<br>&gt; &gt;&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; SAP-WUG mailing list<br>&gt; &gt; SAP-WUG@mit.edu<br>&gt; &gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br>&gt; &gt;<br>&gt; &gt;<br>&gt; <br>&gt; <br>&gt; -- <br>&gt; shankar<br>&gt; -------------- next part --------------<br>&gt; An HTML attachment was scrubbed...<br>&gt; URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20120116/ee4ad853/attachment-0001.htm<br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; Message: 2<br>&gt; Date: Mon, 16 Jan 2012 12:46:10 -0000 (GMT)<br>&gt; From: "Mike Pokraka" &lt;wug@workflowconnections.com&gt;<br>&gt; Subject: Re: Workitem Locked by user - unlocking not being possible<br>&gt; To: "SAP Workflow Users' Group" &lt;sap-wug@mit.edu&gt;<br>&gt; Message-ID:<br>&gt;         &lt;beeabaf684f46ff043cc7f2b6b69c563.squirrel@g.mail.aaisp.net.uk&gt;<br>&gt; Content-Type: text/plain;charset=iso-8859-1<br>&gt; <br>&gt; Your approach is flawed on several fronts:<br>&gt; 1. Simply Unlocking something because it's locked is dangerous. There's a<br>&gt; reason a process locks something - to keep others away from data that's<br>&gt; being changed!<br>&gt; 2. There's a workflow container for passing data into workflows, you<br>&gt; should not need to write to the container.<br>&gt; 3. Starting workflows directly is not a preferred option, usually events<br>&gt; should be used.<br>&gt; <br>&gt; Regards,<br>&gt; Mike<br>&gt; <br>&gt; <br>&gt; On Sat, January 14, 2012 1:55 am, Sree S wrote:<br>&gt; &gt; Hi<br>&gt; &gt; All.<br>&gt; &gt;<br>&gt; &gt; I am calling a workflow from a module pool program.<br>&gt; &gt; the workitem in the workflow is being sent to multiple approvers...<br>&gt; &gt;<br>&gt; &gt; When i am trying to write the workflow container with the values i have as<br>&gt; &gt; per the current selection in the module pool.<br>&gt; &gt;<br>&gt; &gt; I am getting an error, that the workitem is locked by user.<br>&gt; &gt; It says that - Enqueue Error.<br>&gt; &gt; when i am trying to unlock the workitem using FM ' DEQUEUE_E_WORKITEM'. it<br>&gt; &gt; doesnt work and nothing happens,<br>&gt; &gt;<br>&gt; &gt; I am trying to write the workitem container as I need to complete the<br>&gt; &gt; workitem with the required values from module pool program and which has<br>&gt; &gt; to<br>&gt; &gt; be passed to the rest of the process in the workflow.<br>&gt; &gt;<br>&gt; &gt; Can you one guide me in what can be done as an alternate rather the<br>&gt; &gt; existing FM.<br>&gt; &gt;<br>&gt; &gt; Please help me !<br>&gt; &gt;<br>&gt; &gt; Thanks,<br>&gt; &gt; Shankar<br>&gt; &gt; _______________________________________________<br>&gt; &gt; SAP-WUG mailing list<br>&gt; &gt; SAP-WUG@mit.edu<br>&gt; &gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br>&gt; &gt;<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; Message: 3<br>&gt; Date: Mon, 16 Jan 2012 16:10:17 +0000<br>&gt; From: Sree S &lt;to2sree@gmail.com&gt;<br>&gt; Subject: Re: Workitem Locked by user - unlocking not being possible<br>&gt; To: "SAP Workflow Users' Group" &lt;sap-wug@MIT.EDU&gt;<br>&gt; Message-ID:<br>&gt;         &lt;CAA_LhgSru=qXib+pxkjQbdmrvBNtgump94ZYDHxxQvRY5nxPAw@mail.gmail.com&gt;<br>&gt; Content-Type: text/plain; charset="iso-8859-1"<br>&gt; <br>&gt; Hi Mike.<br>&gt; <br>&gt; I hope there is a misconception !<br>&gt; <br>&gt; I am starting a workflow using a creation of an event,<br>&gt; Until and unless i write the container, how do i pass the value to the<br>&gt; workflow container.<br>&gt; I locked it because it was said in one off the forums to lock it as there<br>&gt; might be an enqueue error problem in the workitem and someone might change<br>&gt; the data in a later case.<br>&gt; <br>&gt; Thanks,<br>&gt; shankar<br>&gt; <br>&gt; On Mon, Jan 16, 2012 at 12:46 PM, Mike Pokraka<br>&gt; &lt;wug@workflowconnections.com&gt;wrote:<br>&gt; <br>&gt; &gt; Your approach is flawed on several fronts:<br>&gt; &gt; 1. Simply Unlocking something because it's locked is dangerous. There's a<br>&gt; &gt; reason a process locks something - to keep others away from data that's<br>&gt; &gt; being changed!<br>&gt; &gt; 2. There's a workflow container for passing data into workflows, you<br>&gt; &gt; should not need to write to the container.<br>&gt; &gt; 3. Starting workflows directly is not a preferred option, usually events<br>&gt; &gt; should be used.<br>&gt; &gt;<br>&gt; &gt; Regards,<br>&gt; &gt; Mike<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; On Sat, January 14, 2012 1:55 am, Sree S wrote:<br>&gt; &gt; &gt; Hi<br>&gt; &gt; &gt; All.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I am calling a workflow from a module pool program.<br>&gt; &gt; &gt; the workitem in the workflow is being sent to multiple approvers...<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; When i am trying to write the workflow container with the values i have<br>&gt; &gt; as<br>&gt; &gt; &gt; per the current selection in the module pool.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I am getting an error, that the workitem is locked by user.<br>&gt; &gt; &gt; It says that - Enqueue Error.<br>&gt; &gt; &gt; when i am trying to unlock the workitem using FM ' DEQUEUE_E_WORKITEM'.<br>&gt; &gt; it<br>&gt; &gt; &gt; doesnt work and nothing happens,<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; I am trying to write the workitem container as I need to complete the<br>&gt; &gt; &gt; workitem with the required values from module pool program and which has<br>&gt; &gt; &gt; to<br>&gt; &gt; &gt; be passed to the rest of the process in the workflow.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Can you one guide me in what can be done as an alternate rather the<br>&gt; &gt; &gt; existing FM.<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Please help me !<br>&gt; &gt; &gt;<br>&gt; &gt; &gt; Thanks,<br>&gt; &gt; &gt; Shankar<br>&gt; &gt; &gt; _______________________________________________<br>&gt; &gt; &gt; SAP-WUG mailing list<br>&gt; &gt; &gt; SAP-WUG@mit.edu<br>&gt; &gt; &gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br>&gt; &gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; SAP-WUG mailing list<br>&gt; &gt; SAP-WUG@mit.edu<br>&gt; &gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br>&gt; &gt;<br>&gt; <br>&gt; <br>&gt; <br>&gt; -- <br>&gt; shankar<br>&gt; -------------- next part --------------<br>&gt; An HTML attachment was scrubbed...<br>&gt; URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20120116/9d82a72e/attachment-0001.htm<br>&gt; <br>&gt; ------------------------------<br>&gt; <br>&gt; _______________________________________________<br>&gt; SAP-WUG mailing list<br>&gt; SAP-WUG@mit.edu<br>&gt; http://mailman.mit.edu/mailman/listinfo/sap-wug<br>&gt; <br>&gt; <br>&gt; End of SAP-WUG Digest, Vol 86, Issue 15<br>&gt; ***************************************<br></div></div>                                               </div></body>
</html>