Background task executing but not executing method properly

Ramki Maley rmaley at erpworkflow.com
Fri Oct 23 17:23:17 EDT 2009


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



More information about the SAP-WUG mailing list