Skip to Content
0
Former Member
Jan 03, 2008 at 02:42 PM

Lock objects

23 Views

Hello All,

I am using the enque and deque function for a data dictionary table. I have some doubt how to use these functions:

CALL FUNCTION 'ENQUEUE_E_TABLE'

EXPORTING

tabname = table_name

EXCEPTIONS

foreign_lock = 1

system_failure = 2

OTHERS = 3.

here after locking the table...can i use this statement:

INSERT INTO table_name VALUES l_log. <--l_log is defined as l_log like table_name.

than after inserting I can release the table as follows:

*----


Unlock Table

CALL FUNCTION 'DEQUEUE_E_TABLE'

EXPORTING

tabname = table_name

Is this the right way of doing things?

Secondly, I want to know , that what happens to other user trying to access this table while i locked this table down. Will they lose the data or they need some sort of loop to find if the object is free to use?

Thanks for the help.

Note: I asked this question before as well...for some reason, I can not see that question under the option of your question on the right top corner of the screen when you logged into your profile...any ideas on this as well....Thanks.