02-15-2007 10:30 AM
Hi,
Which function module will help us to LOCK, set of 'Z' tables. Like i need to LOCK 6 'z' tables, where i 'm goin to pass only the table names.
OR May be i 'll pass the tables and key fields.. and the FM has to LOCK the key fields of the TABLES.
02-15-2007 11:17 AM
02-15-2007 12:31 PM
You reuire to crete a lock object by SE11.
It will generate ENQUEUE and DENQUEUE FM's.
use the same.
02-15-2007 12:33 PM
try this
*-------------lock Table
CALL FUNCTION 'ENQUEUE_E_TABLE'
EXPORTING
tabname = table_name
EXCEPTIONS
foreign_lock = 1
system_failure = 2
OTHERS = 3.
*-------------Unlock Table
CALL FUNCTION 'DEQUEUE_E_TABLE'
EXPORTING
tabname = table_name