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

Lock Objects

Former Member
0 Likes
888

If I want to lock any entry of any database Table without creating the Lock Objects in SE11, then how can I do that???

9 REPLIES 9
Read only

Former Member
0 Likes
866

i guess that isnt possible.

Message was edited by:

Kaluvala Santhosh

Read only

Former Member
0 Likes
866

hi,

You would need to create lock objects using SE11 Transaction without which you cant lock any entry

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
866

Hi,

If u have to lock any table , then u should follow the Lock approach else i dont think this is possible.

Read only

Former Member
0 Likes
866

Hi Anurita,

Kindly close the thread and reward helpful answers

Read only

Former Member
0 Likes
866

hi,

You can check for available locks in R/3 for your table. Search the lock object in R/3 and If you can find the lock you can simply use this already existing lock.

Regards,

Richa

Read only

abdul_hakim
Active Contributor
0 Likes
866

hi

itz not possible at all.

Cheers,

Abdul Hakim

Mark all useful answers..

Read only

Former Member
0 Likes
866

SELECT FOR UPDATE would lock the row befor the DB transaction will be commited.

Read only

0 Likes
866

select for update - it's a DB-level lock.

Means - if you want to lock a record to prevent DB updates - that is fine, but if you use it to prevent access to this record - it's not going to help here.

Like if you use select for update but other programs use enqueue -> they will not see your lock and will think that data is NOT locked, they can read it into any internal structure, then you finish your update for one field for example.... BUT the other program can save the same record after your update is finished and it will actually reset your value back.

In other words - either ALL programs should use SAME locking technique (either select for update or enqueue) OR you may have a problem with "disappearing" updates.

Read only

Former Member
0 Likes
866

Hi all,

Does anybody know how long an object stays locked in SAP?

(transaction SM12)

Thanks

Kris