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

Table with locks

Former Member
0 Likes
671

Hello

I have locked my table TAB1 using enqueue_lockedObject. Now in my code I would like to check if there are any locks on table TAB1. I don't want to use transaction sm12, but I want to know the name of table where information about locks are store.

Greetings

1 ACCEPTED SOLUTION
Read only

santhosh_patil
Contributor
0 Likes
646

Hi,

Check with FM

<b>ENQUEUE_READ

ENQUE_READ</b>

-


Patil

5 REPLIES 5
Read only

Former Member
0 Likes
646

Hi,

ABAP locks are logical, not physical, so if you use an ENQUEUE function to lock a table, table updates do not release the locks. You have to use a DEQUEUE function to release the lock.

And since they are logical, not physical, the database is not enforcing the locks. It's up to individual programs to set, check and release them.

it's not the way ABAP works. The commit does not release the ABAP locks.

There will be physical locks at the database level, but we don't have much control over them.

Regards

Read only

0 Likes
646

Hi all

My problem is not to release the lock that I have made but I want to know the table where is information what locks are active.

I will try FM enqueue_read.

Thanks

Read only

0 Likes
646

Hi,

Try to debug the sm12 transaction.

U may get any hint...

---Patil

Read only

santhosh_patil
Contributor
0 Likes
647

Hi,

Check with FM

<b>ENQUEUE_READ

ENQUE_READ</b>

-


Patil

Read only

Former Member
0 Likes
646

read_enqueue solved problem.