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 / 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 |
What are different ABAP editors? What are the differences?
Can we call a subroutine in a script? If so, how?
how to debug a screen without using /h,break-point,debuging,stop.
What are base tables of an aggregate object? : abap data dictionary
SAP Date Format?
What are the functional areas? User groups? And how does abap/4 query work in relation to these?
while uploading a flat file through bdc call trans, then the system get CRASHED. how do i know how many records have been updated.
What is the use of the raising exception? : abap modularization
how to code in SMARTFORMS for MULTIPLE RECORDS?
What is the purpose of creating symbolic a/c, what is transaction code for same? Can we assign one symbolic a/c to multiple wage types? : sap abap hr
How can end-of-selection be used?
Utility of bdc cursor?