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 is the definition of modification in an sap system and how do they impact an upgrade?
How can you find the field/data underlying a transaction?
If I have put commit in badi implementation class after update, is it allowed? Also if some standard functionality already implemented an update and now i m doing update and if it fails, what will be the impact of commit?
What is difference between dialog program and a report?
Does sap handle multiple languages?
What kind of financial periods exist in SAP? What is the relevant table for that?
Which bdc you prefer? : abap bdc
Specify the types of data dictionary objects.
How the Sy-Mandt value gets updated in the table and Is this having any foreign key relationship.
What is output determination?
I need the coding for BDC program to upload Purchase orders of known vendor (ME21) in Material Management
What is the BAPI_CUSTMATINFO_GETDETAILM used for? what is the input and output of this bapi.
How can we use multiple transactions by using bdc_insert? : abap bdc
What is the difference between abap and hr abap? : abap hr
What are the features of abap/4 dictionary? : abap data dictionary