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

Parameter _SCOPE in lock object

Former Member
0 Likes
5,026

Hi,

How the scope parameter behaves for the lock object ,means if we pass scope =1

wat is this mean ,and what are the possible values that we give to this parameter

4 REPLIES 4
Read only

Former Member
Read only

varma_narayana
Active Contributor
0 Likes
1,693

Hi...

The _SCOPE parameter will determine how the Locks are passed during V1 and V2 updates.

_SCOPE = 1 means Lock entries are deleted while passing the control to V1 update work process.

_SCOPE = 2 means Lock entries are passed while passing the control to V1 update work process. They are deleted at the End of V2.

This is the default setting.

_SCOPE = 3 means Lock entries are created only while passing the control to V1 update work process. They are again deleted at the End of V2.

<b>Reward if Helpful</b>

Read only

0 Likes
1,693

thanks naryana

But i m n getting it completeley

work process i know but what are v1 and v2 ?

Read only

0 Likes
1,693

Hii Tarun..

This comes under Database Updates Concept in SAP.

Let me give u basic idea.

V1 V2 Updates are processed by Update Work processes .

V1 - Means Critical updates which runs under locking

V2 - Means Non Critical updates which runs without locking

For this we use the statement

We will create/use a FM in SE37 with Processing type Update module.

And this function is called using

CALL FUNCTION 'FM' IN UPDATE TASK

Only in this scenario the _SCOPE parameter in Lock objects modules will work differently .

Otherwise you need not to bother about this parameter.

<b>Reward if Helpful</b><b></b>