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

What is meant by read lock? : sap abap data dictionary

565


SAP Script for Billing in which Billing document number was displayed as header, Bill Type, Bill Category, Bill Item, Cost, Base Unit of Measurement and Material number were categorically displayed for each billing document number. plz mention the detail coding Tahnks, Rahul

2097


What are the functional modules used in sequence in bdc? : abap hr

597


What are the different types of luws. What are they?

631


What do is landscape in sap project, I think its related to no. Of servers used, pls correct me if I am wrong, or what it is? : sap abap hr

557






How are BAPI different from normal function modules?

1724


How to Solve a Particular Ticket in Realtime ?

1753


Name a few data dictionary objects?

650


Do we have to migrate all sapscript forms to smart forms?

606


Explain sap abap 3-tier architecture?

737


What are logical databases?

633


What is collective search help? : sap abap data dictionary

609


What is help view?

559


How many types of size categories and data classes are there? : abap data dictionary

611


What is the Process to transfer IDOC from Outbound System to Inbound system.

1679