Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

what is the use of lock object??

Answer Posted / syed

Hi

Lock objects are use in SAP to avoid the inconsistancy at
the time of data is being insert/change into database.

SAP Provide three type of Lock objects.
- Read Lock(Shared Locked)
protects read access to an object. The read lock allows
other transactions read access but not write access to
the locked area of the table

- Write Lock(exclusive lock)
protects write access to an object. The write lock allows
other transactions neither read nor write access to
the locked area of the table.

- Enhanced write lock (exclusive lock without cumulating)
works like a write lock except that the enhanced write lock
also protects from further accesses from the
same transaction.

You can create a lock on a object of SAP thorugh
transaction SE11 and enter any meaningful name start with
EZ Example EZTEST_LOCK.

Use: you can see in almost all transaction when you are
open an object in Change mode SAP could not allow to any
other user to open the same object in change mode.

Example: in HR when we are enter a personal number in
master data maintainance screen SAP can't allow to any
other user to use same personal number for changes.

Technicaly:
When you create a lock object System automatically creat
two function module.
1. ENQUEUE_<Lockobject name>. to insert the object in a
queue.
2. DEQUEUE_<Lockobject name>. To remove the object is being
queued through above FM.

You have to use these function module in your program

Is This Answer Correct ?    8 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Different types of locks?

1026


What is the disadvantage of a call by reference? : abap modularization

1099


****THANK YOU ALL ABAP EXPERTS**** I got a JOB as ABAP Consultant in Infosys.I cleared the interview.The question posted here are really good.I cleared interview based on this material only.It really works.I thank all members who posted que&ans here. Those who are in search of job in MNC study this question set only you will get sucess. Thanks once again allinterview.com and members of this community. tulika20021@rediffmail.com

2151


2)In production what is the user exit?

1956


What are the types of windows in sap script?

1092


What are two methods of modifying sap standard tables? : abap data dictionary

1274


List the various components of the enterprise structure in systems, applications, and products (sap) in human capital management (him)? : sap abap hr

940


What is a data dictionary? : abap data dictionary

984


How many types of views are there? : abap data dictionary

1033


How do you document abap/4 programs? Do you use program documentation menu option?

1204


What are internal tables? How do you get the number of lines in an internal table? How to use a specific number occurs statement?

1061


What are the organizational related Infotypes

2083


What are the contents in technical specifications?

1142


What are the uses of the information in the data dictionary? : abap data dictionary

1197


Differentiate between ooabap and abap?

1230