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