Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

update enque deque

Former Member
0 Kudos

HI

I need to update two database tables using update statement .

I know enque deque is needed before update modify etc operations with databse tables

my question is if enque deque is not used what is the performance impact and implications ( the database table is locked so that multiple user performing same operations  or using same database update application does not results in conflicts ) but I have checked in backend only once the application is executed fully the update is done for eg first update return is sy-subrc = 0 (in debugging mode ) and second update statement is executed only when the program is closed and run full the update to database is visible in data base elsewise the update is not done even if first update on first table has sy-subrc = 0.

also update statement locks the database tables automatically as checked in sm12 so is there need for enque deque really or it is just a performance and code review practice.

pls suggest

regards

Nishant

2 REPLIES 2

nabheetscn
Active Contributor
0 Kudos

Please read about why do we need locks to understand in detail. Read about implicit commits also

p190355
Active Contributor
0 Kudos


Hello Nishant ,

Please try updating the tables using Update function modules.


1) You can either call update the tables in two separate Update function modules

= or =

2) Two update statements with the same Update function module

3) Within the Update function module, you can decide on the type of updation to be :

Synchronous / Asynchronous


CALL FUNCTION 'XXX' IN UPDATE TASK


Hope this helps..


Cheers,

Remi