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
Can you print decimals in type n?
What is the definition of modification in an sap system and how do they impact an upgrade?
What is constructor expression in nw abap 7.4?
Can you set up background processing using call transaction?
Explain the Inportance of pa30? : abap hr
What are the different modes of processing batch input sessions? : abap bdc
What is the function of a domain?
How many main windows are allowed in sapscript?
Why do we use dynamic where conditions?
what is the difference between Blocked ALV and interactive ALV?
Explain the systems fields used for interactive lists and lists?
What are the system table used in abap?
1.why dont use top of page. wat is the use? 2. wat is sub screen? 3. why u select the session method in bdc ? how many records wil be updated on that time? 4.why dont use start form in script? 5.wat is difference b/w dilldown and interactive report? 6. wat is pf status interactine report?
Name some system global variables you can use in abap programs?
What are the different functions used in sap script? What are the parameters used in each function?