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 in locking the database table

Former Member
0 Likes
533

hi, Experts

i have problem with lock to the table.

i have use following code.

CALL FUNCTION 'ENQUEUE_EZCUSTOMER'

EXPORTING

MODE_ZPVCUST = 'X'

MANDT = SY-MANDT

CUSTNO = zpvcust-custno

and if i m writing any update query to the zpvcust table then that query executes successfully.

plz help me

1 ACCEPTED SOLUTION
Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
490

Hello,

The table entry will be locked only if some other user is trying to modify the same entry, else it will not.

So whats bothering you my friend?

BR,

Suhas

4 REPLIES 4
Read only

former_member209217
Active Contributor
0 Likes
490

Hi,

Only you will be able to update the table which is locked by you.

To check whether its locked or not goto SM12 and press enter . You should be able to see the name of the table if its locked

Regards,

Lakshman.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
491

Hello,

The table entry will be locked only if some other user is trying to modify the same entry, else it will not.

So whats bothering you my friend?

BR,

Suhas

Read only

Former Member
0 Likes
490

but if i m writing update query for that table then also table is updated.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
490

Yes, it will be updated.

If you are assuming that creating a "table lock" will ensure that user cannot update the entry then you are mistaken.

What exactly is the business req. you are trying to achieve?

BR,

Suhas