Background task executing but not executing method properly
Ramki Maley
rmaley at erpworkflow.com
Mon Oct 26 14:29:28 EDT 2009
Arghadip, you need to talk to your SD folks.
arghadip kar wrote:
> Hi Ramkey
>
> Thanks for the update. So how can I accomplish the scenario where the
> Sales order needs to be locked throughout the Workflow and when it is
> approved it needs to remove the Delevery block and if rejected upload
> some Rejection reason. For this what type of locking I should have to
> use. I wish to do this using Background task.
>
> Thanks
>
> Arghadip Kar
>
> SAP Workflow Expert
>
> IBM INDIA
>
> --- On *Sat, 10/24/09, sap-wug-request at mit.edu
> /<sap-wug-request at mit.edu>/* wrote:
>
>
> From: sap-wug-request at mit.edu <sap-wug-request at mit.edu>
> Subject: SAP-WUG Digest, Vol 59, Issue 58
> To: sap-wug at mit.edu
> Date: Saturday, October 24, 2009, 9:34 PM
>
> Send SAP-WUG mailing list submissions to
> sap-wug at mit.edu
> <http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug@mit.edu>
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://mailman.mit.edu/mailman/listinfo/sap-wug
> or, via email, send a message with subject or body 'help' to
> sap-wug-request at mit.edu
> <http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug-request@mit.edu>
>
> You can reach the person managing the list at
> sap-wug-owner at mit.edu
> <http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug-owner@mit.edu>
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of SAP-WUG digest..."
>
>
> Today's Topics:
>
> 1. Background task executing but not executing method properly
> (arghadip kar)
> 2. Re: Background task executing but not executing method
> properly (Ramki Maley)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 23 Oct 2009 11:43:05 -0700 (PDT)
> From: arghadip kar <arghadipkar at yahoo.com
> <http://us.mc503.mail.yahoo.com/mc/compose?to=arghadipkar@yahoo.com>>
> Subject: Background task executing but not executing method properly
> To: sap-wug at mit.edu
> <http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug@mit.edu>
> Message-ID: <462912.61313.qm at web50304.mail.re2.yahoo.com
> <http://us.mc503.mail.yahoo.com/mc/compose?to=462912.61313.qm@web50304.mail.re2.yahoo.com>>
> Content-Type: text/plain; charset="us-ascii"
>
> Hi
> I am facing a strange issue. I have created a custom method of a BO
> which has been delegated to standard BO BUS2032. This method
> actually locks the Sales Order. When I execute this method from
> Business Object it executes perfectly. When I try to execute this
> methd from a background task it gets completed but the sales order
> is not locked. I am using Function Module ENQUEUE_EVVBAKE to lock
> the entry. This does not work when I execute in background. I have
> also check WF-BATCH and it has all the authorization SAP_ALL.
> Another thing that I have done I have added a flag which should
> return X if the Function module returns sy-subrc = 0. This flag also
> gets set though the document is not locked. When I lock this
> transaction code manually and execute the background task this flag
> is not set. This is clear there is no issue with binding. Can anyone
> throw some lights on this. It seems that the WF-BATCH is not able to
> execute this method. I have checked SWU3 and it
> is properly configured. Thanks a lot in advance.
>
> Thanks
>
> Arghadip Kar
>
> SAP Workflow Expert
>
> IBM INDIA
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://mailman.mit.edu/pipermail/sap-wug/attachments/20091023/6c3d1813/attachment-0001.htm
>
> ------------------------------
>
> Message: 2
> Date: Fri, 23 Oct 2009 17:23:17 -0400
> From: Ramki Maley <rmaley at erpworkflow.com
> <http://us.mc503.mail.yahoo.com/mc/compose?to=rmaley@erpworkflow.com>>
> Subject: Re: Background task executing but not executing method
> properly
> To: "SAP Workflow Users' Group" <sap-wug at mit.edu
> <http://us.mc503.mail.yahoo.com/mc/compose?to=sap-wug@mit.edu>>
> Message-ID: <4AE21EC5.4090805 at erpworkflow.com
> <http://us.mc503.mail.yahoo.com/mc/compose?to=4AE21EC5.4090805@erpworkflow.com>>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Arghadip, what you are experiencing is normal enqueue behavior. You
> cannot expect a lock to be active once the background task is complete.
> Locks (that are not linked to a database update) are released
> implicitly
> when the SAP transaction ends, in your case the completion of the BG
> Step. When you are testing the method from SWO1 in dialog mode, the
> lock
> would be released when you exit SWO1.
>
> Cheers,
> Ramki.
>
> arghadip kar wrote:
> > Hi
> > I am facing a strange issue. I have created a custom method of a BO
> > which has been delegated to standard BO BUS2032. This method
> actually
> > locks the Sales Order. When I execute this method from Business
> Object
> > it executes perfectly. When I try to execute this methd from a
> > background task it gets completed but the sales order is not
> locked. I
> > am using Function Module ENQUEUE_EVVBAKE to lock the entry. This
> does
> > not work when I execute in background. I have also check WF-BATCH
> and it
> > has all the authorization SAP_ALL. Another thing that I have done
> I have
> > added a flag which should return X if the Function module returns
> > sy-subrc = 0. This flag also gets set though the document is not
> locked.
> > When I lock this transaction code manually and execute the
> background
> > task this flag is not set. This is clear there is no issue with
> binding.
> > Can anyone throw some lights on this. It seems that the WF-BATCH
> is not
> > able to execute this method. I have checked SWU3 and it is properly
> > configured. Thanks a lot in advance.
> >
> > Thanks
> >
> > Arghadip Kar
> >
> > SAP Workflow Expert
> >
> > IBM INDIA
> >
> >
> >
> >
> ------------------------------------------------------------------------
> >
> > _______________________________________________
> > SAP-WUG mailing list
> > SAP-WUG at mit.edu
> <http://us.mc503.mail.yahoo.com/mc/compose?to=SAP-WUG@mit.edu>
> > http://mailman.mit.edu/mailman/listinfo/sap-wug
>
>
> ------------------------------
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> <http://us.mc503.mail.yahoo.com/mc/compose?to=SAP-WUG@mit.edu>
> http://mailman.mit.edu/mailman/listinfo/sap-wug
>
>
> End of SAP-WUG Digest, Vol 59, Issue 58
> ***************************************
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug
More information about the SAP-WUG
mailing list