Background task executing but not executing method

arghadip kar arghadipkar at yahoo.com
Mon Oct 26 09:24:46 EDT 2009


Hi Ramkey
Thanks 

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

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

You can reach the person managing the list at
    sap-wug-owner at 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>
Subject: Background task executing but not executing method properly
To: sap-wug at mit.edu
Message-ID: <462912.61313.qm at 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>
Subject: Re: Background task executing but not executing method
    properly
To: "SAP Workflow Users' Group" <sap-wug at mit.edu>
Message-ID: <4AE21EC5.4090805 at 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://mailman.mit.edu/mailman/listinfo/sap-wug


------------------------------

_______________________________________________
SAP-WUG mailing list
SAP-WUG at mit.edu
http://mailman.mit.edu/mailman/listinfo/sap-wug


End of SAP-WUG Digest, Vol 59, Issue 58
***************************************



      
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.mit.edu/pipermail/sap-wug/attachments/20091026/91ac9343/attachment.htm


More information about the SAP-WUG mailing list