Query Source: Environment CDS

If you select “Environment CDS” as the query source, the definition of the Query function is managed entirely in the SAP Profitability and Performance Management environment. Technically, this uses SAP ABAP CDS technology. During activation, the system creates an analytical query CDSview that can be used in SAP Profitability and Performance Management or externally in the SAP BW reporting tools.

Input Function

You select the input function based on the query which is created. Underlying data is used for reporting or planning purposes.

Editable

By default, this option is disabled and set to “No”.

If you select the input function Start of the navigation pathModel Table Source Next navigation step EnvironmentEnd of the navigation path, the Editable option is enabled.

  • If you select “Yes” , the system allows both reporting and planning. Manual data input or planning is permitted.

    If you select “No” , the system allows only reporting. Manual data input or planning is not permitted.

Filter Tab

This tab defines general fixed and default values. You can specify a variable to enter values manually when you run the query.

For fixed values, the query output is filtered and displayed based on the values defined in the selection or the values entered for the variables. You cannot change these values in the output results.

Variables are always input-ready and prompt you to enter values when the query is executed.

The sections below are displayed dynamically, based on the characteristics you select:
  • General: Displays the technical name and description.

  • Selection: An option to specify predefined filter values.

  • Variable: An option to enter the filter values on the Variable screen during query execution. Variables can be defined in the following ways:
    • “Single Value”: Only one value is allowed (can be mandatory or optional).

    • “Selection Option”: Single value, multiple single values, a range or a combination of these are allowed (can be mandatory or optional).

  • Variable Default Value: You can enter the default value for the variable.

Sheet Definition

In the sheet definition you define the rows, columns and free fields.

The following definitions are available:
  • Characteristic: Can be added to a column or row definition.

  • Key figure: Can be added to column or row definition.

  • Selection: Allows you to define “restricted” columns or rows by choosing particular characteristic values. You can also choose a key figure and restrict it to one or more characteristic values.

  • Formula: Allows you to define any calculations that are executed during the report run (or example, the summation of two fields or complex expressions).

The following settings are available for each characteristic :
  • General

    Displays the general properties of a field or characteristic when running a query:

    • Description: Displays the description of the field in the report.

    • Query Component: Represents the technical name of the field or characteristic.

  • Hierarchy

    This is available only if you have defined a hierarchy for the selected characteristic in the SAP Profitability and Performance Management environment.

    • Hierarchy Name: If the field has active hierarchies, you can choose one as a default for the report. You can choose another hierarchy during runtime.

  • Value Output Format

    This section is available only for Environment/BW InfoObjects. It allows you to define how the master data of the characteristic is displayed when you run a query.

    • Display As:
      • “Key and Text”: The characteristic values are displayed with their technical key and their text.

      • “Text”: The characteristic values are displayed with their text.

      • “Key”: The characteristic values are displayed with their technical key.

    If you set a display type that contains text, the following options are available (provided you have made the appropriate settings in the InfoObject master data):
    • Text Output

      • “Standard”: The shortest available text for the characteristic values is used.

      • “Long Text”: The long text for the characteristic values is used.

  • Result Output Format

    Show Result Rows allows you to define whether result rows for particular characteristic are displayed when your run a query:
    • “Always”: Result rows are always displayed.

    • “Never”: Result rows are always hidden.

    • Only if more than one child node exists, are result rows displayed when characteristics have more than one row displayed in the report output.

The following settings are available for each key figure:
  • General

    Defines general properties of key figures when running a query:

    • Description: You can modify the description of the key figure to be displayed in the report.

    • Query Component: Represents the technical name of the key figure.

  • Key Figure

    Aggregation behavior:
    • “Default”: Summation is considered by default.

    • “Maximum”: In case of aggregation, the key figure maximum value is displayed.

    • “Minimum”: In case of aggregation, the key figure minimum value is displayed.

    • “Summation”: In case of aggregation, the key figure is summed for display.

  • Editable

    This is available only if you have set the Editable indicator to “Yes” in the header. Individual key figures can be selected for planning or the manual input of data. You can select one of the following options:
    • “Yes”: Manual data input or planning is permitted.

    • “No”: Manual data input or planning is not permitted.

  • Display

    • Hide: Defines the display behavior of the key figure.

      • Always Show
      • Always Hide
    • Number of Decimal Places: Defines the number of decimal places to be displayed for individual key figures in the report output.

    • Scaling Factor: Defines the scaling factor of the individual key figures displayed.

Analyze Screen

On the Analyze screen of an editable query, you can use the Data Grid Upload feature. This feature allows you to upload data from a Microsoft Excel file directly on the Analyze query level.

Required structure of the file:

  • The first row of data must contain mapping information (technical names of fields that are used in the input function).

  • Actual data that you want to upload must start from the second row.

  • Duplicated records will be summed up.

  • Decimal places of key figures must be separated by: “.”

  • Thousands should be separated with “,”, however this is not mandatory

  • Every date has to be set in the following format: DD.MM.YYYY

  • The following file formats are supported: *.xlsx, *.xlsm

Procedure

Function Access

Follow the steps below to access the Query function with query source “Environment CDS”:

  1. In the client where SAP Profitability and Performance Management is installed, choose Start of the navigation pathSAP Menu Next navigation step Profitability and Performance Management Next navigation step Modeling Next navigation step Start My EnvironmentsEnd of the navigation path.

  2. The Environment screen appears in a separate browser window. Choose an existing environment and continue. Within the environment, you can set up the newly added function.

Function Configuration

Follow the steps below to configure the Query function with query source “Environment CDS”:

  1. In edit mode, configure the following required fields in the header.

    • Query Source = “Environment CDS”
    • Input Function
    • Editable
  2. Define the fields on the Fixed Values section on the Filter tab as follows:
    1. Choose (Add).

    2. The Add Details screen appears. Assign the following parameters:
      • Rule: Descriptive rule name

      • Query Component: Technical name of the field

      • Description: Name of the field

    3. Choose OK.

    4. Fill out the required fields that appear on the right-hand side of the query function when you add the fields.

  3. Define the Columns, Rows and Free section on the Sheet Definition tab.

    To do this proceed as follows:

    1. Choose (Add).

    2. The Add Details screen appears. Assign the following parameters:
      • Rule: Descriptive rule name

      • Rule Type: Technical name of the field

      • Description: Name of the field

    3. Choose OK.

    4. Fill out the required fields that appear on the right-hand side of the query function when you add the fields.

  4. Choose Save and then choose Activate.

Related Information

  • For more information about common aspects of SAP Profitability and Performance Management functions, see Concepts for Key Users.

  • For more information on how to add and remove functions in SAP Profitability and Performance Management environments, see Function Hierarchy.