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

lock modules

former_member626380
Participant
1 ACCEPTED SOLUTION
Read only

loyd_enochs3
Participant
1,991

see transaction ABAPDOCU

9 REPLIES 9
Read only

loyd_enochs3
Participant
1,992

see transaction ABAPDOCU

Read only

0 Likes
1,991

if you create lock object from abap dictionary lock module will created automatically or not

Read only

danilo_henriques
Explorer
1,991

Hello,

Transaction SE11 -> Lock object

Once you activate it, your ENQUEUE and DEQUEUE modules will be generated.

Read only

0 Likes
1,991

thank you

Read only

former_member1716
Active Contributor
1,991
ALaa Azazy

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

Read only

0 Likes
1,991

thank you

Read only

Gourab_Dey
Product and Topic Expert
Product and Topic Expert
0 Likes
1,991

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

Read only

kaus19d
Active Contributor
0 Likes
1,991

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

Read only

Former Member
0 Likes
1,991

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.