08-22-2007 4:44 AM
Hi SAP Guru,
I need to lock a customized tables with sets of records to delete with similiar primary keys.
Is there a standard SAP function that allow me to feed in the table key and keys and it would does the locking?
what about the unlocking function too?
Thanks
08-22-2007 4:55 AM
08-22-2007 4:55 AM
08-22-2007 7:12 AM
Hi Colin..
To Lock the Entries in any Table you have to Use Lock Objects:
Steps:
Tcode SE11 - Creating Lock Object on the Custom Table.
Lock Object Name: EZabc.
Primary Table : <Your Custom table>.
Activate the Lock Object.
Now the System Generates 2 Function Modules.
ENQUEUE_<LOCK OBJ>. "To lock the records
DEQUEUE_<LOCK OBJ>. "To unlock the Records
like ....
ENQUEUE_EZABC.
DEQUEUE_EZABC.
In your Program You have to Call these two FMs.
<b>Reward if Helpful</b>