Skip to Content
-5

lock modules

how to create lock modules ?

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Best Answer
    Posted on Oct 17, 2019 at 12:11 PM

    see transaction ABAPDOCU

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 17, 2019 at 01:10 PM

    Hello,

    Transaction SE11 -> Lock object

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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 17, 2019 at 02:01 PM
    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 18, 2019 at 07:20 AM
    -1

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 18, 2019 at 11:54 AM
    -1

    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.

    Add a comment
    10|10000 characters needed characters exceeded