By default SAP provides locking mechanism if db is being used by a user ,then what is the use of writing enque method in your code?
Answer Posted / marek
It is used for blocking data base element (for example) for whole process of your report. For example you SELECT some data form db, and before MODIFY or UPDATE statement is a lot of code and it could take a while to execute – the data could be change by other program (or even the same run by other person).
A ways to avoid that is to use ENQUEUE and DEQUEUE items using a proper function module or using SELECT FOR UPDATE statement .
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What are the field and chain statements?
What data is contained in data dictionary? : abap data dictionary
What is your approach for writing a bdc program? : abap bdc
What is the relationship existing between the various data elements in data dictionary? : abap data dictionary
If A is the super class of B. And both the classes have constructor. We create an object of class B. Then which constructor will be called? If both then in which order?
What are the advantages and disadvantages of ABAP query tool?
What are the three hierarchical levels of data types and objects?
What is a multiple line field?
What are the Various Types of internal tables?
What is difference between float and packed data type?
while implementing badi what are the tables u find??
What are the screen painter and menu painter?
Do you know any other patterns if yes.. explain
Name the function module used to convert logical file names to physical file names in abap/4 programs?
What are clustered tables?