Application Development and Automation 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: 
Read only

Perform a COMMIT during a DB lock

Former Member
0 Likes
374

Hi experts,

I have locked certain fields of a DB table using a lock object (called the FM ENQUEUE_XXXX). After successfully executing the FM, I need to update a table which is not affected by the lock object and save the changes with a COMMIT WORK. Things are not working as I wish because in debugging mode I have observed that the table is updated after I release the lock object (call FM DEQUEUE_XXXX). Can it be that I'm setting a wrong parameter during the call of the FM ENQUEUE_XXXX? The lock type I'm setting is E.

Thanks in advance for your help,

Jaime

2 REPLIES 2
Read only

Former Member
0 Likes
315

Moderator message - Welcome to SCN.

SAP locks using ENQUEUE and DEQUEUE FMs are logical locks not physical. But a COMMIT is hard. once you do a COMMIT, the database should be updated. How do you tell that it is not?

Rob

Read only

Former Member
0 Likes
315

Hi Rob,

I'm taking a look at the content of the table with the transaction SE16. The record is only updated after performing the DEQUEUE.

Regards,

Jaime