what is the use of lock object??
Answers were Sorted based on User's Feedback
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 |
Answer / muralikrishna
IT IS USED TO SYNCHRONOUS ACCESS OF SEVERAL USERS USING SAME
DATA
Is This Answer Correct ? | 5 Yes | 0 No |
what is the output of given code? data : f1 type i, f2 type i. write : / f1, f2. do 2 times. perform addfld. enddo. write : / f1, f2. form addfld. data : f1 type i, f2 type i. add 1 to f1. add 1 to f2. write : / f1 , f2. endform. int : f1 , f2.
what is Primary key and unique key and what is the Difference?
Sales Order Information Report that lists information like sales order no, Item no, material no, Quantity, Quantity unit, Net value, Currency,Sub Total, Grand Total. plz mention the detail coding Tahnks, Rahul
what is the difference between se16 and se17 ??? need urgent ans plz..
How i can make a enabled and disabled code using SAP ABAP? www.saponly.com
What is the different between template and a table?
What is the difference between pnp and pnpce? : abap hr
Pls reply me 1)can i debuging the idoc. 2)give some example of pool table and cluster table. 3)what is update module.
Why do we use logical blocks in abap program?
By which function module upload data from application Server to desk top and to code can u explain
When i create a Table Maintenance Generator ,which is the event that will Trigger ?
Importance of PA20, PA30 and PA40