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

different _scope parameter of Enqueue_<lock object> and Dequeue_<lock objec

Former Member
0 Likes
1,949

Hi, all.

When we create lock object and generate enqueue_<lock object> and

dequeue_<lock object>, the default value of _scope is

enqueue : _scope = 2(update owner only)

dequeue : _scope = 3(for both dialog owner and update owner).

Does anyone tell me the reason of this different default values?

i read help.sap.com - lock related help but i couldn't get the idea

of these different default values between enqueue and dequeue.

Best Regards.

Sejoon

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,252

Hi,

When you use ENQUEUE, the owner is going to lock that record. So at that time, the only person who can modify the record in the one who has locked it using ENQUEUE. So only he needs to be informed.

Whereas when you use DEQUEUE, the owner who has locked the record and processed it + the 2nd user who wants to lock it needs to be informed. Hence it is to update the 1st User(who has done the update and planning to release the lock) + 2nd User(who wants to do the update and planning to lock the record ).

Best regards,

Prashant

Hi, all.

When we create lock object and generate enqueue_<lock object> and

dequeue_<lock object>, the default value of _scope is

enqueue : _scope = 2(update owner only)

dequeue : _scope = 3(for both dialog owner and update owner).

Does anyone tell me the reason of this different default values?

i read help.sap.com - lock related help but i couldn't get the idea

of these different default values between enqueue and dequeue.

Best Regards.

Sejoon

3 REPLIES 3
Read only

Former Member
0 Likes
1,252

Hi,

Check the following link:

http://www.sapbrain.com

Regards,

Bhaskar

Read only

0 Likes
1,252

Hi, Bhaskar

Thanks for your info but could you tell me where you point in the URL regarding

this topic?

Best Regards.

Sejoon

Read only

Former Member
0 Likes
1,253

Hi,

When you use ENQUEUE, the owner is going to lock that record. So at that time, the only person who can modify the record in the one who has locked it using ENQUEUE. So only he needs to be informed.

Whereas when you use DEQUEUE, the owner who has locked the record and processed it + the 2nd user who wants to lock it needs to be informed. Hence it is to update the 1st User(who has done the update and planning to release the lock) + 2nd User(who wants to do the update and planning to lock the record ).

Best regards,

Prashant