Query Source: Environment

When you select “Environment” as the query source, the definition of the Query function is managed entirely in the SAP Profitability and Performance Management environment. Technically, this uses NetWeaver and BEx Query technology. During activation, the system creates a BEx query 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, and underlying data is used for reporting or planning purposes.

Key Date (Optional)

The master data (attributes, texts and hierarchies) of time-dependent InfoObjects is displayed in the output based on the key date that you specify.

Editable

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

When the selected input function is Model BW and allows planning, 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 running the query.

  • 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.

  • Default Values: The query output is initially displayed based on the values defined in the selection or the values entered for the variables. In the results that the system returns, you can change these values in the filter option.

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

  • Selection: An option to specify predefined filter values.

  • Variable: An option to enter the filter values in the Variable screen when the query is executed. 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).

    • Authorization: This is available only for SAP BW InfoObjects which are authorization-relevant.

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 a column or row definition.

  • Selection: You can 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 a report run. For example, the summation of two or more fields or complex calculations using formula functions. Only the functions available in the SAP BEx Query Designer are supported here.

For each Characteristic the following settings are available:
  • 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 when the selected characteristic has a hierarchy defined 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.

    • Hierarchy Date: If the hierarchies are time-dependent, you must specify a constant here.

    • Hierarchy Version: If the hierarchies are versioned, you must specify a constant here.

  • 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 running a query.

    • Display As:
      • “No Display”: The characteristic display is hidden. This function is particularly useful with the currency or unit characteristic for example, since the currencies are also displayed in the key figures.

      • “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.

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

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

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

      • “Short Text”: The short text for the characteristic values is used.

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

      • “Medium Text”: The medium text for the characteristic values is used.

  • Result Output Format

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

    • “Never”: Result rows are always suppressed.

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

  • Extended

    This section is available only for Environment or BW InfoObjects.

    Access Types for Result Values allows you to define the values shown in the value help:
    • “Posted Values”: The system only displays values that are available in the underlying InfoProvider.

    • “Master Data”: The system only displays values that are available in the characteristic master data.

    • “Characteristic Relationships”: The system only displays these if they have been defined in the SAP BW Planning Modeler.

For each Key Figure the following settings are available:
  • General

    Defines the 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”: The aggregation behavior is taken from the environment field or key figure definition.

    • “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 figures are summed for display.

  • Editable

    This is available only when Editable is set to “Yes” in the header. You can select individual key figures 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 key figure's display behavior

      • Always Show

      • Always Hide

      • Hide (can be shown): You can hide or unhide these key figures in the report output.

    • Highlight

      • Normal display

      • Highlighted display: Can be seen only in external reporting tools ( for example, Analysis for Office)

    • 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.

    • Change Sign

      • “Keep +/– Sign”: Displays the key figure value as stored.

      • “Reverse Sign”: Displays the reverse sign of the stored key figure value.

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”:

  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”:

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

    • Query Source = “Environment”
    • Input Function
    • Editable
    • Key Date
  2. Define the fields on the Fixed Values and Default sections 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.