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
Explain how to Handle the internal tables in ABAP?
What are the types of subroutines?
there are 2 selection screens. material num in screen 200 and plant in screen 300. so how can you write in INITIALISATION event?
What is a variable in the sap abap?
What is view? Different types of view.
How can I get ascii value of any letter? Is there any function?
What is an evaluation path? : sap abap hr
****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
What is the function of a data element? : abap data dictionary
What is the meaning of client independent?
What is the collect statement? How is it different from append?
What is the use of at new statement ?
What is the function of a domain? : abap data dictionary
Define database layer?
What is a type group?