‎2009 Aug 29 1:39 PM
Hi gurus,
My Requirement: When i exicute 'BAPI_SALES_ORDER_CHANGE' no one can open VA02 and change a sales order.
For this ,
I created one lock object for the table VBAP in se11, when i try to lock the table VBAP with zprogram by using Enqueue and Dequeue Mechanisam The Tcode VA02 is not locked and i am amble to change.
Thanks in Advance.
Shiv'.
‎2009 Aug 29 2:14 PM
Hi,
How ru checking whether the table is locked or not when using tcode VA02.
Once the Program execution is over the lock which exists is released even though if u dont use dequeue FM.
Check in debugging mode ,stop the execution at the end of enqueue fm and then check in SM12 whether table is locked or not.
Regards,
Lakshman.
‎2009 Aug 29 4:20 PM
Hi,
you do not have to worry about locks.
BAPIS do the locking for you, in this case lock object EVVBAKE is used. If you do not believe, then use this lock object before calling BAPI_SALESORDER_CHANGE (as it is called in my system).
Try to open the order using VA02, then change it from another session using the BAPI. If the change is successful, you may report it to SAP.
Regards,
Clemens