‎2013 Dec 27 6:47 AM
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
‎2013 Dec 27 7:15 AM
Please read about why do we need locks to understand in detail. Read about implicit commits also
‎2013 Dec 27 8:01 AM
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 :
CALL FUNCTION 'XXX' IN UPDATE TASK
Hope this helps..
Cheers,
Remi