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

Locking entire Ztable

Former Member
0 Likes
711

Hi,

The ENQUEUE function module 'EZ....' should have tablename as importing parameter than key fields of the ztable for which the lock is set.Same applies to Dequeue function.

Also without passing any parameters to enqueue or dequeue function, does lock gets set for table specified in the 'Primary table' field while creating lock object?

Hi,

The ENQUEUE function module 'EZ....' should have tablename as importing parameter than key fields of the ztable for which the lock is set.Same applies to Dequeue function.

Also without passing any parameters to enqueue or dequeue function, does lock gets set for table specified in the 'Primary table' field while creating lock object?

2 REPLIES 2
Read only

Former Member
0 Likes
515

Hello Shilpa

It all depends on the lock object you are using. If you use the lock object with Enqueue by passing the table name like for example the lock object E_TABLE, then it will lock the entire table for update. But if you have created a custom lock objects for your table with all primary keys, then it will just lock that single record and not the entire table.

Regards

~ Ranganath

Read only

PS_1978
Active Participant
0 Likes
515

You can use the FM ENQUEUE_E_TABLE to lock the whole table. Pass table name to tabname and sy-mandt to varkey parameters.

Best Regards,

Kumar