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

O Lock

Former Member
0 Likes
994

What is O Lock ?

Why and where is it used ?

Sandeep

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
944

Hi Sandeep

Optimistic locks, or 'O' locks initially behave like shared locks and can be converted into exclusive locks.

An optimistic lock (mode 0) is set, if the user displays data in change mode. Optimistic locks on the same object cannot collide. If the user wants to save the (changed) data, the optimistic lock has to be converted into an exclusive lock (mode E). (This does not work, if beforehand another user has set a non-optimistic lock on the object). This procedure deletes other optimistic locks on the object.

Subin

7 REPLIES 7
Read only

Former Member
0 Likes
944

O Lock?

are you talking about lock objects?

Read only

Former Member
0 Likes
944

Hi Sandeep,

i guess you are referring to Optimistic Lock.

Check this link

Programming with Optimistic Locks

http://help.sap.com/saphelp_nw70/helpdata/EN/9a/49d91d498b4e489eef193e949db3f7/content.htm

Programming with optimistic locks is not yet supported in the Data Dictionary. You have to request the locks, as shown in the example program below:

There are the new modes O and R for the ENQUEUE function modules.

Check for the demo program for Optimisitc Locks in the link mentioned above.

Regards,

SuryaD.

Edited by: SuryaD on Dec 19, 2009 4:25 PM

Read only

Former Member
0 Likes
944

Please elaborate what is "O" ?

Read only

Former Member
0 Likes
945

Hi Sandeep

Optimistic locks, or 'O' locks initially behave like shared locks and can be converted into exclusive locks.

An optimistic lock (mode 0) is set, if the user displays data in change mode. Optimistic locks on the same object cannot collide. If the user wants to save the (changed) data, the optimistic lock has to be converted into an exclusive lock (mode E). (This does not work, if beforehand another user has set a non-optimistic lock on the object). This procedure deletes other optimistic locks on the object.

Subin

Read only

0 Likes
944

Congratulations Subin - 30 points in only 3 posts.

Maybe you could let us know how you managed it. We'd all like to be able to answer questions as efficiently as you.

Rob

Read only

0 Likes
944

Looks like many of them are working hard to help SCN reach its goal

Read only

Former Member
0 Likes
944

Sandeep,

Heres more input for you

<< Cut and paste without attribution removed >>

Check this link for more info

http://help.sap.com/saphelp_webas630/helpdata/en/8e/c7430d53fd2548be18a291c27bd72e/frameset.htm

<< Cut and paste without attribution removed >>

Hope this info helps you .

Regards,

SuryaD.

Edited by: SuryaD on Dec 19, 2009 4:32 PM

Edited by: Rob Burbank on Dec 19, 2009 2:33 PM