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

Database table protection or lock

mucsiattila
Explorer
0 Likes
939

Hello!

I need to protect a DB table from writing when my program in running. I have tried CF 'ENQUEUE_E_TABLE' and custom locks also, but these only work if the other programs do check the lock. If other programs start to insert/update/delete the table without checking the lock, they are executed with no errors or warnings. I tested it several times and checked in SM12 if the lock exists. So i need a solution to permanently protect the table from any writing, except the one that I executing.

Thanks in advance.

1 REPLY 1
Read only

RaymondGiuseppi
Active Contributor
895

If those (dirty) programs don't use any SAP lock concept, then (alas) you have to lock data at database level.

If there are not too many such programs, better correc those to use SAP Locks