Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Problem while using Lock object for the table VBAP

Former Member
0 Likes
832

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'.

2 REPLIES 2
Read only

former_member209217
Active Contributor
0 Likes
584

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.

Read only

Clemenss
Active Contributor
0 Likes
584

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