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


Please Help Members By Posting Answers For Below Questions

Explain how to Handle the internal tables in ABAP?

824


What are the types of subroutines?

809


there are 2 selection screens. material num in screen 200 and plant in screen 300. so how can you write in INITIALISATION event?

1960


What is a variable in the sap abap?

758


What is view? Different types of view.

767


How can I get ascii value of any letter? Is there any function?

882


What is an evaluation path? : sap abap hr

736


****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

1903


What is the function of a data element? : abap data dictionary

788


What is the meaning of client independent?

763


What is the collect statement? How is it different from append?

753


What is the use of at new statement ?

1569


What is the function of a domain? : abap data dictionary

770


Define database layer?

798


What is a type group?

714