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

HOW CAN I LOCK MY DATABASE TABLE WITHOUT USING A PROGRAM?

Former Member
0 Likes
497

I am making a database table but i want that ONLY me can edit the table.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
475

Hi,

Did you try using the authoriation group?

Shruthi

Edited by: Shruthi R on May 23, 2008 8:48 AM

3 REPLIES 3
Read only

Former Member
0 Likes
476

Hi,

Did you try using the authoriation group?

Shruthi

Edited by: Shruthi R on May 23, 2008 8:48 AM

Read only

Former Member
0 Likes
475

Hi,

U can create a lock for your table by SE11:

Here u can create a lock object with the name has to begin with EZ*.This way two function modules will be created automatically, one for ENQUEUE and one for DEQUEUE.

To lock the table:

CALL FUNCTION 'ENQUEUE_E_TABLE'

EXPORTING

tabname = table_name

EXCEPTIONS

foreign_lock = 1

system_failure = 2

OTHERS = 3.

Do the required task

To Unlock the Table:

CALL FUNCTION 'DEQUEUE_E_TABLE'

EXPORTING

tabname = table_name

Here the table_name represents the table that you want to lock

Reward if useful.

Regards,

Swetha.

Read only

Former Member
0 Likes
475

Hi Rico,

Create a lock object with EXCLUSIVE LOCK mode for your DB table.

Hope this is helpful to you. If you need further information, revert back.

Reward all the helpful answers.

Regards

Nagaraj T