Activating a Planning Area

Objective

After completing this lesson, you will be able to activate a planning area

Planning Area Activation

All affected objects (master data types, time profiles, and planning areas) are activated within a single process. Modifying operations are grouped together (inactive >> active state).

Activation brings the planning model from a consistent state to another consistent state.

Model Lifecycle

The following list describes the lifecycle steps of a model:

  1. Define or configure a model:

    • In this step, master data types, time profiles, and key figures are defined.

    • Master data types are used for planning. Master data is grouped using the following sample master data types: product, customer, location, and resource. Attributes on the master data types are used to further describe the master data types, for example, product family, product subfamily, and customer region.

    • The time profile is the time dimension of the model.

    • Key figures are measures that hold transaction data, such as demand plan, sales forecast, and supply plan.

  2. Activate the model:

    • In this step, the defined model is validated for integrity and the model is activated.

      • Each object is validated internally for every object in scope.
      • External check is processed to validate dependency starting/ending with each object in scope.
      • Relationship check is processed for a set of objects, including objects in scope and dependent objects.
      • If this subsequent activation and planning area already contains data, the relationship to the uploaded data will also be validated.
    • This involves the creation of generated objects.

  3. Import:

    • Master data and key figure data are imported.

  4. Use:

    • The model is now ready to be used to enable the SAP Integrated Business Planning business process.

Historical States of a Planning Area

Historical states of the planning area created and saved as a result of certain actions. Historical states fall into two groups: full states and delta states.

  • Full states are created on:
    • Planing area activation
    • Planning area copy
    • Planning area transport
    • During a system upgrade
Delta states are created on:

  • Attributes, master data types, key figures, planning levels and time profiles creation/deletion/update
  • Any database change

A new SAP Fiori app Manage Historical states is available to facilitate the review of the historical states of the planning area. There, it is possible to archive the selected state and delete the archived state.

Activation Errors

During the process of configuring and activating your planning area, activation errors may show up in the log. These need to be resolved before a successful activation can be achieved. In this section, we look at four common activation errors and how they can be resolved.

To display the error log, in the Planning Areas Model Configuration app, choose the Log Hyperlink icon on the Planning Areas tab. You are connected to the Application Logs app, where you can choose the Download Table Contents toolbar button. The log opens in Microsoft Excel format.

Overview how an activaion error log can be selected and displayed using the application log app in the SAP IBP Fiori UI.

Activation Error 1: Key Figure Must Be Stored or a Calculation Must Exist

The first activation error that we look at here is the most common error. However, it is also one of the easiest to locate and correct.

  • Error! - Calculation PROMOTIONLIFTQTY@REQUEST: PROMOTIONLIFTQTY@MTHPRODCUST must be stored or a calculation must exist.

When the phrase "must be stored" is shown in an error, it refers to the Input Key Figures icon in the key figure calculation. This is due to a key figure not being set as Stored in the Input Key Figures dialog box.

Activation Error 2

The second error type is less common, but it is still an important error to resolve. There are two reasons for this error:

  • A key figure that is not a helper key figure does not have a calculation at REQUEST level.

  • A calculation at REQUEST level either must be an aggregation, or must have inputs from REQUEST level only.

Note that every key figure must have a request level calculation. The request level is the level at which the user requests the data. As we cannot predict at which level the user is going to request the data, we need to create a request level calculation.

If the only calculation that exists for the key figure is on the (for example) MTHPRODCUST level, this error occurs and the activation fails with the activation error. Every key figure that is created directly on the Key Figures tab automatically has a request level calculation added by the system. To resolve this error, create a request level calculation for the key figure indicated in the error. Generally, the calculation is SUM, but for price or percentage key figures an AVG or weighted average calculation might be more accurate.

Activation Error 3

Activation Error 3 is a less common error, but it can occur.

Error: Exception raised from  InternalError: dberror(PreparedStatement.execute): 2048 - column store error: fail to create scenario:  [34011] Inconsistent calculation model;CalculationNode (9_53) ->attributes -> calculatedAttribute (CAPDEMANDUTILPCT) ->expression:Expression is not valid: Evaluator: syntax error in expression string;expected TK_RPAREN,parsing 'fixed(IF(ISNULL("T10CAPASUPPLY") OR "T10CAPASUPPLY"=0,0,"HCAPADEMAND"/"T10CAPASUPPLY", 12, 6)[here]' at ptime/query/plan_executor/trex_wrapper/trex_wrapper_body/trex_metadata.cc:1965

In this error, the log indicates that the expression is not valid because of a missing parenthesis, TK_RPAREN. The system provides assistance by identifying where it expected to find the missing parenthesis but was unable to by labeling that point [here] in the error message. This is not always 100% accurate as you may have entered an extra parenthesis somewhere in the calculation. The system requires a closing parenthesis to match to it.

To resolve this error, choose the Key Figures tab and select the key figure listed in the error message in the left column. Select Edit to change the key figure and then Edit in the calculation definition. Supply the missing parenthesis. When you validate the calculation, the error should no longer be present.

When you choose Validate after entering a calculation, the system will do a syntax check for the parenthesis and usually flag the error before activation. Occasionally, you can go beyond this point, in which case the error occurs during activation instead and you receive an activation error.

Activation Error 4

Activation error 4 is one of the most difficult to trace and resolve. While creating key figure calculations, the Error dialog box shown in the figure, Error 4 in the Calculation Validation, may appear.

The figure shows a system message for an activation error in the calculation validation.

Or, if you get past this point, the error in the error log appears like one of the following:

  • E - Calculation DEPENDENTDEMANDQTY@MTHPRODLOC: Output PL attr. must be a subset of the input PL attr.

  • E - Calculation DEPENDENTDEMANDQTY@MTHPRODLOCCUST: Output PL attr. must be the union of the input PL attr.

All three errors refer to the same issue and are resolved in the same way. These errors refer to the planning level, which is where the error is located. If you look at the planning levels, this error usually means that you do not have the same number of attributes selected in the planning levels involved in the calculation.

Resolving Error Activation 4

The figure shows an example how an activation error in the calculation validation due to different attribute assignment can be resolved.

To resolve this error, choose the Planning Levels tab. In the left column, select the planning levels involved in the calculation. The different numbers of attributes are selected in the planning levels. For example, in the figure, the four attributes for T##PRODUCT are selected in the MTHPRODLOCCUST planning level, while only three attributes are selected for T##PRODUCT in the MTHPRODCUST planning level. The system cannot match up four attributes to only three attributes in this join, so the activation fails and the error is logged. A quick scan of the numbers can help you locate the error quickly, but the error details need to be viewed to see how it can be resolved. This can be a difficult error to locate.

This error occurs most often when you make a change to a master data type by either adding or eliminating an attribute. Failure to make the identical adjustment in all planning levels that are involved in calculations with each other causes this error.

Assigning Attributes to Planning Levels

You can eliminate or reduce the errors related to the union of attributes by adding the attributes to the planning area and choosing the Add and Assign to Planning Levels function.

Select all the planning levels that you want to assign your attribute on the Assign Attribute to Planning Levels screen. To assign the attribute to all planning levels of the planning area or all planning levels of a specific group of planning levels at once, select the checkbox in the table header or the one in the relevant table group header.

If you created a single new attribute and you are adding it to the planning area, you can assign it to the relevant planning levels in one step.

You must exercise caution, as assigning an attribute to the planning level(s) that do not contain the master data type where the new attribute belongs results in a model activation error.

Consistency Checks

When you start the consistency check or the activation of a planning area, the system performs checks on the planning area and on the model entities that are activated together with a planning area (planning levels, key figures, and versions).

Consistency Checks for Time Profiles

  • The following checks are performed for time profiles:

    • The definition of the time profile must be accurate.

    • A description must exist for the time profile.

    • A start date and an end date must be specified.

    • The end date must be later than the start date.

    • At least one time profile level must exist.

    • All time profile levels must have a description.

    • Time profile levels must form a sequence based on the period type. That is, a lower time profile level must have lower granularity than the higher ones.

    For example, a time profile level with the period type "Day" must come before the one that has "Month" for period type.

    • The base level of a time profile level must be a time profile level that has lower granularity.

  • The following checks are performed for changing time profiles:

    • It is not allowed to add or delete a time profile level if the time profile is assigned to any planning areas.

    • It is not allowed to remove an attribute assigned to a time profile level if the attribute is used in a planning level of an active planning area that uses the time profile.

    • It is not allowed to use active deletion on a time profile that is assigned to any planning areas.

    • If time periods already exist for the time profile, you cannot add an additional required attribute.

Consistency Checks for Master Data Types

  • The following checks are performed for all master data types:

    • A name must exist for the master data type.

    • The master data type must have at least one attribute.

    • Except for a virtual master data type, the master data type must have at least one key attribute.

    • If a description attribute is assigned to an attribute of the master data type, the description attribute must exist.

  • The following checks are performed for compound master data types:

    • A compound master data type must have at least two components, and all components must be active.

    • Virtual master data types cannot be used as a component of a compound master data type.

    • A compound master data type must have all the key attributes of the component master data types set to key, and it must not have any additional key attributes.

  • The following checks are performed when changing master data types:

    • It is not allowed to add or remove components to a compound master data type if data already exists for the master data type.

    • If an additional attribute is set to key, the attribute cannot be empty in any of the master data records.

    • If a key attribute is changed to a non-key attribute, the remaining key combination must have unique values for all existing master data records.

Consistency Checks for Planning Areas

The following are some of the checks that are performed for planning areas:

  • The planning area ID must be all uppercase.

  • A time profile must be assigned to the planning area.

  • The lowest time profile level must be used as the storage time profile level.

  • Time horizons must be specified for each time profile level of the assigned time profile.

  • A planning area cannot have inactive master data types and attributes.

  • You must either activate the master data types and attributes used in the planning area before you activate the planning area or include them in the activation of the planning area.

  • The planning area must have at least one stored key figure.

  • If a compound master data type is assigned to a planning area, its component master data types must be assigned to the planning area as well. The attributes that are assigned to the planning area must be selected from the component master data types.

Consistency Checks for Versions

The following checks are performed for versions:

  • The version ID must be all uppercase.

  • The version ID must not be BASELINE or __BASELINE.

  • A version must have at least one stored key figure specified as version-specific key figure.

Consistency Checks for Planning Levels

The following checks are the most common for planning levels:

  • The planning level ID must be all uppercase.

  • All attributes of a planning level must be attributes selected for the planning area.

  • All attributes selected for the planning area should be used in one or more planning levels.

  • A planning level that is used in a stored key figure must exist.

  • A planning level that is used as a base planning level of a stored key figure must have one or more root attributes other than the time attribute.

  • The time profile level of the lowest granularity must be the root attribute in a planning level.

  • If a planning level is used as a base planning level of a key figure, it must have exactly one time profile level set as root attribute.

  • Key figure data must not exist at a planning level whose root attributes have been changed.

  • Two planning levels that have the same root attributes (apart from the time attribute) and are used as the base planning level of one or more stored key figures must have the same set of non-root attributes.

  • Checks for external planning levels.

Consistency Checks for Key Figures

  • The following checks are some of the checks that are performed for key figures:

    • The key figure ID must be all uppercase.

    • A key figure and an attribute cannot share the same ID.

    • An attribute used as a time-dependent key figure can have either a time reference attribute specified or one or both of the From Period and To Period fields filled out.

    • For an attribute as a key figure, the value in the To Period field must not be sooner than the one in the From Period field.

  • The following checks are some of the checks that are performed for the calculation of key figures:

    • A key figure - except for helper key figures - must have a calculation defined at REQUEST level.

    • The calculation chain for every key figure must result in a stored key figure.

    • There should not be a calculation that is not used in any calculation graph.

    • The calculation graph must not contain circular references.

    • A key figure referenced in a calculation must be specified as an input key figure for the calculation.

    • An aggregation calculation must have exactly one input key figure.

    • In an aggregation calculation, the attributes of the output planning level must be a subset of the attributes of the input planning levels.

    • In a calculation that is not aggregation, the output planning level must contain all attributes from the input planning levels.

    • A calculation must include two planning levels in its inputs at most.

    • Only a planning level that has one or more root attributes can be used as the base planning level of a stored key figure.

    • Data upload is possible only at a planning level that has one or more root attributes.

    • SUM() calculation can be used for a key figure only if the Aggregation Mode of the key figure is set to Sum or Custom.

    • Only stored key figures can be marked as stored input in a key figure calculation.

    • A key figure must not reference itself on the same planning level in its calculation.

    • For a key figure at a specific planning level, only one calculation must exist.

Other Consistency checks

SAP introduces other checks with the goal to streamline the SAP IBP foundation and decrease the time it takes to activate planning areas.

Some recently introduced checks include checks for functions, such as IBP_CAGGR and IBP_LPA.

Restore Active Instance for Planning Areas

It is possible that the configuration done in a planning area had not been conceived correctly, and many errors are coming up when a consistency check is being run.

In such cases, the Restore Active Instance option can be used to revert changes made to a planning area that has already been activated. The same option can be used to cancel the deletion of an active planning area.

If this option is used on a planning area that has been changed, it restores the following settings and sub-objects of the active instance:

  • Planning area settings
  • Planning area attribute assignments
  • Time settings
  • Planning levels
  • Attributes as key figures
  • Key figures
  • Snapshot definitions
  • Versions

In a case of settings that can be changed without inactivation of the planning area (such as planning area attribute descriptions, business meaning, current period offset, planning area description, and so on), restoring the active instance doesn't revert the change. Changes have to be undone manually one by one.

How to Activate and Delete a Planning Area

Activate a Planning Area

In this exercise, you activate a planning area that you had built in the previous exercises.

Business Example

You are a member of the project team managing the implementation of SAP Integrated Business Planning for Supply Chain solution. You want to set up the business model objects in the SAP Integrated Business Planning system. Based on your blueprint, you set up and activate the necessary objects and planning area.

Note that when the data values for the exercise include ##, replace ## with the group number that the instructor has provided to you.

Task 1: Check the Consistency of Your Objects

Steps

  1. Check the consistency of your time profile.

    1. In the SAP Fiori launchpad, in the Model Configuration screen area, choose the Time Profile tile.

    2. Select your time profile in the list and choose Check.

    3. Check the log by either selecting Application Log on the top right of the screen or the Check-Success hyperlink in the Last Action column for your time profile.

  2. Check the consistency of your master data types.

    1. In the SAP Fiori launchpad, in the Model Configuration screen area, choose the Master Data Types tile.

    2. Select your master data types in the list on the left and choose CheckCheck Without Dependencies.

    3. Check the log by either selecting Application Log on the top right of the screen or the Check: Success hyperlink.

  3. Check the consistency of your planning area.

    1. In the SAP Fiori launchpad, in the Model Configuration screen area, choose the Planning Areas Model Configuration tile.

    2. Select your planning area from the list and choose the Check → With Dependencies option.

    3. Check the log by selecting the hyperlink in the Last Action Status column.

      Note

      You may choose to resolve any issues in configuration that are flagged by the check at this point.

      You may see issues with 2 key figures and you need to go back and change the inputs into calculations.

Task 2: Activate Your Planning Area and Include the Related Time Profile and Master Data Types

Steps

  1. Activate your planning area.

    1. In the SAP Fiori launchpad, on the Model Configuration tab, choose Planning Areas Model Configuration.

      Result

      The Planning Area screen appears.
    2. Select the T## planning area that you created in the list on the left of the screen.

    3. Choose ActivateFull Scope, With Dependencies.

  2. View the status of your activation in the log.

    1. In the Planning Area screen, to open the Logs, select the hyperlink in the Last Action Status column.

    2. Select the attachment to download the log to Notepad and help troubleshoot any errors in a failed activation.

      Result

      Once any errors are corrected, activate the planning area again.
    3. Choose Close.

      Result

      Remain on the same screen.

Task 3: Delete Your Planning Area

Steps

  1. Delete your planning area.

    1. In the SAP Fiori launchpad, on the Model Configuration tab, choose Planning Areas Model Configuration.

      Result

      The Planning Area screen appears.
    2. Select the T## planning area that you created in the list on the left of the screen.

    3. Choose Delete → Without Dependencies.

      Result

      A warning displays. Confirm the action.
    4. Activate your planning area.

Log in to track your progress & complete quizzes