<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><DIV>Hi</DIV>
<DIV>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.<BR><BR>Thanks<BR><BR>Arghadip Kar<BR><BR>SAP Workflow Expert<BR><BR>IBM INDIA</DIV></td></tr></table><br>