Can you create a Lock Object? What are Lock Objects?

Answer Posted / lokesh

Lock object is a virtual link of several SAP tables which
is used to synchronize simultaneous access by two users to
the same set of data (SAP lock concept).
[or]
when two users simultaneously attempt to access the
same data record, this is cynchronised by a lock mechanism.


To set the locks,

you must define a lock object in ABAP dictionary. The name
of lock object should start with 'E'.
Thd Fun Modules for requesting and releasing lock which are
create automatically when the lock object is activated must
be linked to the programming of the relevant online
transactions.

They are 3 types:

1) write (exclusive lock)
2) read ( shared lock )
3) exclusive but not cummulative

Function modules :
1)ENQUEUE_FSFLIGHT (to lock the object)
2)DEQUEUE_FSFLIGHT (to unlock the object)

Is This Answer Correct ?    29 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many ways you can create table? : abap data dictionary

730


What will exactly the hide statement do?

750


What are the aggregate objects in the dictionary? : abap data dictionary

944


Explain what are standard layouts sets in the sap script?

1124


What is pass by value and what is pass by reference? Which is better?

1068


What is meant by a schema? : sap abap hr

768


What is the function of the transport system and workbench organiser?

847


What are the properties of selection screen?

754


wht is the diff. b/n initialization and lotus of event

1614


What are the various types of selection screen event?

749


What is narrow casting and wide casting?

1331


Explain pai and pbo.

944


What are base tables of an aggregate object? : abap data dictionary

790


How we can retrieve data using secondary index. Explain with simple example?

868


What are the techniques involved in using sap supplied programs?

797