‎2019 Oct 17 1:00 PM
‎2019 Oct 17 1:11 PM
‎2019 Oct 17 1:11 PM
‎2019 Oct 17 1:29 PM
if you create lock object from abap dictionary lock module will created automatically or not
‎2019 Oct 17 2:10 PM
Hello,
Transaction SE11 -> Lock object
Once you activate it, your ENQUEUE and DEQUEUE modules will be generated.
‎2019 Oct 17 3:10 PM
‎2019 Oct 17 3:01 PM
First you have to create a lock object in SE11, once this lock objects are created you will be automatically generated with FUNCTION MODULES based on below logic:
1. ENQUEUE_<Lockobject name> = To lock the table to be processed
2. DEQUEUE_<Lockobject name>. To release the lock
Regards
‎2019 Oct 17 3:11 PM
‎2019 Oct 18 8:20 AM
Once you create a lock object 2 function module will be created automatically with name "ENQUEUE_<name of lock object> and "DEQUEUE_<name of the lock object".
The naming convention for lock object is "EZ*" or "EY*".
During creation of lock object, you have to provide the table name which you want to enqueue, and you have to specify the field list as "Lock Parameter". Generally key fields of the header table is used as the "Lock parameter". Once the lock parameter are added, the parameters are available as "Importing parameter" in the enqueue function module.
Thanks,
Gourab
‎2019 Oct 18 8:52 AM
Hi ALaa Azazy,
May I request you to provide more details on what exactly you wanted to know from this question post, maybe a bit more details of your question can help
Thanks,
Kaushik
‎2019 Oct 18 12:54 PM
Hi,
Create lock object in se11, it should start with EZ or EY, after creating you have to provide 'table name' and 'lock mode', then in another tab you have to give the fields list as lock parameter, by default it will take primary key of table as lock parameter. once your creation, activate it. after activating automatically two function modules will be generated i.e 'ENQUEUE' and 'DEQUEUE' function modules.
we can check function modules -> menu -> goto -> lock modules, you can see function module here.
for example if your creating lock object by this name EZ_LOCK_TABLE,
function modules are generated like this ENQUEUE_EZ_LOCK_TABLE, DEQUEUE_EZ_LOCK_TABLE.
Enqueue for Request lock for object.
Dequeue for Release lock for object.