Skip to Content
author's profile photo Former Member
Former Member

Function modules upon activation of locked objects?

What are the names of the functional modules that will be generated upon activation of locked objects?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 21, 2008 at 08:03 AM

    Prior to creating setting any locks in an ABAP program, a lock objects must be created in the ABAP dictionary.

    When the lock object is created, the system will automatically generated the two function modules required for locl management.

    The First function module used to set locks is the ENQUEUE_<lock Object Name>. This function module is used to generate a lock entry in the lock table. If the lock cannot be set for any reason then this would be reflected in the return code.

    The second function module used to release locks is the DEQUEUE_<Lock Object Name>. Thus function module will remove a lock entry from the lock table.

    These Function modules are used to set and release locks in an ABAP program. The programmer simply perform the specific "CALL FUCNTION.."

    statemen for each functiom module.

    These lock functiom modules are executed in a specific work process with the SAP system dedicated to lock management, This work process is run on a single server that maintains the central lock table for entire SAP system.

    There are two types of locks that can be set:

    Shared lock - is a read only lock that prevents data from being changed while a user is reading it.

    Exclusive lock- is a rite lock that prevents data being changed while a used is already modifying it.

    Thanks & Best Regards,

    Shakti Barath

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.