Locking Logic

Embed Size (px)

Citation preview

  • 7/30/2019 Locking Logic

    1/23

    Contents

    Introduction 2Use 3Prerequisites 3

    Features 3Activities 3Work with Multiple Single Values 4e.g. 1 Aggregated Lock 4e.g. 2 - Detailed Lock 6e.g. 2 - LiveCache Lock 9Work with Intervals 11e.g. 1- Aggregated Lock 11e.g. 2- Detailed Lock (result is different from sap help. need to check) 13e.g. 3- Livecache Lock 16Key Figure Specific Lock with Detailed Lock 18

    Introduction

    Source: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8c736222-0b01-0010-13a4-de0f8d118a76?

    QuickLink=index&overridelayout=true

    Release note SCM5.0

    Locking Logic in Demand Planning (DP) (Enhanced)

    Use

    As of SAP SCM 5.0, the new locking logic liveCache Lock is available in Demand

    Planning (DP). The system can use this logic to more precisely lock data you areaccessing than it can with the aggregated and detailed locks. The liveCache lock takes

    intervals into account during selection and evaluates forsingle values the first wildcardcharacter (*) or the first placeholder (+) for each value. You can activate theliveCache lock in planning area maintenance on the Locking Logic tab page. You canactivate the liveCache lock together with the key figure-specific lock.Source: http://help.sap.com/saphelp_scm2007/helpdata/en/77/d4103d2669752de10000000a114084/frameset.htm

    If, Prod1 -> only Loc1, select Prod1 in the selection automatically add Loc1; if Prod1

    ->Loc1 & Loc2, select Prod1 automatically add Loc1 & Loc2 in the selection.If multiple users want to work with data of the same characteristics simultaneously, then

    this is only possible if the each user's selection is differentiated by at least ONEcharacteristic value.

    Demand planning uses the liveCache lock by default, since it is the most precise lock. Ifyou are working with a planning area from an older release for which a different locking

    method is set up, change this setting by setting the liveCacheLockindicator.

    Aggregated Lock

    Using this locking method, the system can only create an entry in the locktable for one unique single value per characteristic. All other types ofselection for a characteristic cause the system to lock all values of the

  • 7/30/2019 Locking Logic

    2/23

    characteristic. These include the following selections:

    Intervals (entries with , , are also intervals), for example, products 1 to 100.

    Multiple single values, for example, location = DERBY, PHILADELPHIA and

    SINGAPORE.

    Exclusive selections (single values and intervals), for example, customer SMITH.

    When the liveCache LockandDetailed Lockindicators are not set, the aggregated lock isactive.

    Detailed Lock

    This lock is less restrictive than the aggregated lock. In this case, the systemcan create an entry in the lock table for multiple single values percharacteristic. The detailed lock can work with intervals or exclusiveselections.

    You can use the detailed lock together with the key figure specific lock. Formore information, see Key Figure Specific Locking.

    liveCache Lock

    The liveCache lock is the most precise locking method. Using this lockingmethod, the system can create an entry in the lock table for multiple singlevalues or one interval per characteristic. The liveCache lock does nottake exclusive selections into account.In addition, the system evaluates a wildcard character (*) and any number ofwild cards (+) in single values. Always use the wildcard character at the endof the characteristic value, for example, ABC*.

    You can use the liveCache lock together with the key figure specific lock. For

    more information, see Key Figure Specific Locking.

    Use

    The effect of this function is that the system only locks the key figures of aplanning area that are being processed in data views. The key figure specificlock can be used as an enhancement of the detailed lock or of the liveCachelock.

    Prerequisites

    You are working with demand planning (DP) planning areas.

    You have set theDetailed LockorliveCacheLockindicator on theLockingtab page inplanning area maintenance.

    Features

    If you have activated the key figure specific lock for a planning area, twousers can work with the same selection. A prerequisite for this is that bothusers are working in different data views that do not contain shared key

    http://help.sap.com/saphelp_scm2007/helpdata/en/e7/8cff5d0a57fb42bfb324a34eff1ae1/content.htmhttp://help.sap.com/saphelp_scm2007/helpdata/en/e7/8cff5d0a57fb42bfb324a34eff1ae1/content.htmhttp://help.sap.com/saphelp_scm2007/helpdata/en/e7/8cff5d0a57fb42bfb324a34eff1ae1/content.htmhttp://help.sap.com/saphelp_scm2007/helpdata/en/e7/8cff5d0a57fb42bfb324a34eff1ae1/content.htm
  • 7/30/2019 Locking Logic

    3/23

    figures.When you use the key figure specific lock, you can also set the Do not lockread-only key figures indicator so that the system does not lock read-onlykey figures. This enables multiple users to select the same read-only keyfigures of a planning area. A prerequisite for this is that the respective data

    views do not contain any key figures that have already been locked.In general you can change the Read-Only/Change attribute of a key figure by using amacro. However, this is not possible if you want to change a read-only key figure of a

    planning area for which there is no active key figure specific lock and in which the read-

    only key figures are not locked.

    Activities

    To activate the key figure specific lock for a planning area, in planning areamaintenance, you set the key figure specific lockindicator on the Locking tabpage. In addition to this indicator, you can also set the Do not lock read-onlykey figures indicator here.

    Work with Multiple Single Values

    e.g. 1 Aggregated Lock

    Characteristic Existing selection (user X) Desired Selection (user Y)

    A = 01 = 02 AND 03 AND 04

    Aggregated lock: user Y cannot work with this selection since multiple single values

    have been specified for characteristic A. The system now attempts to lock all values forcharacteristic A. This is not possible since user X is already working with the data of

    characteristic value 01.

  • 7/30/2019 Locking Logic

    4/23

    When the liveCache LockandDetailed Lockindicators are not set, the aggregated lock

    is active.

    User one select Product = RMCTEST1

    In Edit Mode

  • 7/30/2019 Locking Logic

    5/23

    User two select Product = RMCTEST2 and RMCTEST3

  • 7/30/2019 Locking Logic

    6/23

    e.g. 2 - Detailed Lock

    Detailed lock and liveCache lock: user Y can work with this selection since these locking

    methods take multiple single values into account and the specified characteristic values

    do not include value 01 that was locked by user X.

  • 7/30/2019 Locking Logic

    7/23

    User one select Product = RMCTEST1

    In Edit Mode

  • 7/30/2019 Locking Logic

    8/23

    User two select Product = RMCTEST2 and RMCTEST3

  • 7/30/2019 Locking Logic

    9/23

    e.g. 2 - LiveCache Lock

    LiveCache lock: user Y can work with this selection since these locking methods takemultiple single values into account and the specified characteristic values do not include

    value 01 that was locked by user X.

  • 7/30/2019 Locking Logic

    10/23

    User one select Product = RMCTEST1

    In Edit Mode

  • 7/30/2019 Locking Logic

    11/23

    User two select Product = RMCTEST2 and RMCTEST3

  • 7/30/2019 Locking Logic

    12/23

    Work with Intervals

    e.g. 1- Aggregated Lock

    Characteristic Existing selection (user X) Desired Selection (user Y)

    A = 01 From 02 to 04

    Aggregated lock: user Y cannot work with this selection since an interval has been

    specified for characteristic A. The system now attempts to lock all values forcharacteristic A.This is not possible since user X is already working with the data of

    characteristic value 01.

  • 7/30/2019 Locking Logic

    13/23

    When the liveCache LockandDetailed Lockindicators are not set, the aggregated lock

    is active.User one select Product = RMCTEST1

    In Edit Mode

  • 7/30/2019 Locking Logic

    14/23

    User two select Product = RMCTEST2 ~ RMCTEST4

  • 7/30/2019 Locking Logic

    15/23

    e.g. 2- Detailed Lock (result is different from sap help.need to check)

    Characteristic Existing selection (user X) Desired Selection (user Y)

    A = 01 From 02 to 04

    Detailed lock: user Y can work with this selection since an interval has been specified for

    characteristic A. The Interval is different from characteristic value 01 in user X.

  • 7/30/2019 Locking Logic

    16/23

    User one select Product = RMCTEST1

    In Edit Mode

  • 7/30/2019 Locking Logic

    17/23

    User two select Product = RMCTEST2 ~ RMCTEST4

  • 7/30/2019 Locking Logic

    18/23

    e.g. 3- Livecache Lock

    Characteristic Existing selection (user X) Desired Selection (user Y)

    A = 01 From 02 to 04

    Livecache lock: user Y can work with this selection since an interval has been specified

    for characteristic A. The Interval is different from characteristic value 01 in user X.

  • 7/30/2019 Locking Logic

    19/23

    User one select Product = RMCTEST1

  • 7/30/2019 Locking Logic

    20/23

    In Edit Mode

    User two select Product = RMCTEST2 ~ RMCTEST4

  • 7/30/2019 Locking Logic

    21/23

    Key Figure Specific Lock with Detailed Lock

    User can use the same selection as long as two data views do not containcommon key figure(s).

    Two data views can be in the same planning book or different planning

  • 7/30/2019 Locking Logic

    22/23

    books.

  • 7/30/2019 Locking Logic

    23/23