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

Lock Object Concept required

Former Member
0 Likes
415

Hi Everybody,

I have a quary. I have created a custom table which will be used to store master data entered by multiple Users through a module pool program. The program has following functionalities stated below:

CREATE : Entry of new data.

CHANGE: Changing of existing record.

DELETE: Delete existing record

I need to implement lock system inside the module pool program while performing the above operations. In CHANGE and DELETE mode I have implemented record lock system. But in case of CREATE mode which lock mode should I use, ie should I use whole table lock or particular record lock? agerly waiting for reply.

Regards,

Pulokesh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
396

Hi,

To create a new entry you need not lock the table. But still if you want to lock the table and dont want any one else to modify table while you are creating the lock it has to be on table level. You can not put lock on record level for a new entry.

Hope this clarifies your doubt.

Regards,

Lalit Kabra

2 REPLIES 2
Read only

Former Member
0 Likes
397

Hi,

To create a new entry you need not lock the table. But still if you want to lock the table and dont want any one else to modify table while you are creating the lock it has to be on table level. You can not put lock on record level for a new entry.

Hope this clarifies your doubt.

Regards,

Lalit Kabra