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: 

Lock objects

Former Member
0 Kudos

Moderator message: Please use a more informative subject in future

Hi All,

I have a small doubt.If i make a lock object for a table in write mode.

Then if at any given time one user is writing some content to that table then can other users see the contents of the table, or it only dont allow them to display the table.

Thank in Advance.

Edited by: Matt on Jan 13, 2009 11:56 AM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

That will depend on the scope parameter passed by you during ENQUEUE..

7 REPLIES 7

Former Member
0 Kudos

That will depend on the scope parameter passed by you during ENQUEUE..

SuhaSaha
Advisor
Advisor
0 Kudos

Hello Mayank,

When you create a Lock Object for a table you have to give the Lock Mode. This determines how to the table records are access by several users.

SAP Documentation:

Lock mode

Defines how to synchronize table record access by several users.

The following modes exist:

Exclusive lock

The locked data can be read or processed by one user only. A request for another exclusive lock or for a shared lock is rejected.

Shared lock

Several users can read the same data at the same time, but as soon as a user edits the data, a second user can no longer access this data. Requests for further shared locks are accepted, even if they are issued by different users, but exclusive locks are rejected.

Exclusive but not cumulative lock

Exclusive locks can be requested by the same transaction more than once and handled successively, but an exclusive but not cumulative lock can only be requested once by a given transaction. All other lock requests are rejected.

I think this will help you.

BR,

Suhas

Former Member
0 Kudos

hi,

Thanks for te reply.

But i am getting the following lock mode during lock creation.

1.WRITE

2.READ

3.EXCLUSIVE NOT CUMULATIVE.

and not :

1.Exclusive lock

2.Shared lock

3.Exclusive but not cumulative lock

Is WRITE lock only is EXCLUSE and also corresponding for the others lock.

Please clarify..

Thanks in Advance.

Former Member
0 Kudos

Hi,

Go through this link for the details about lock objects.

http://help.sap.com/saphelp_nwpi711/helpdata/en/cf/21eea5446011d189700000e8322d00/content.htm

Regards,

Deepthi.

Former Member
0 Kudos

Hi,

you just check below link

hope it will help you.

Regards,

Anki Reddy

Former Member

matt
Active Contributor
0 Kudos

Please use a more informative subject in future