How To Fix R9087 - Query does not contain key figures


SAP Error Message - Details

  • Message type: E = Error

  • Message class: R9 - Business Explorer

  • Message number: 087

  • Message text: Query does not contain key figures

  • Show details Hide details
  • What causes this issue?

    A query cannot be processed without a key figure.

    How to fix this error?

    Please select a key figure. There are two possibilities for the key
    figure selection:
    You select a key figure in the filter.
    You define data columns with key figure selections.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message R9087 - Query does not contain key figures ?

    The SAP error message R9087, which states "Query does not contain key figures," typically occurs in the context of SAP BW (Business Warehouse) or SAP BI (Business Intelligence) when you are trying to execute a query that does not include any key figures. Key figures are essential components in reporting as they represent measurable data, such as sales amounts, quantities, or other numerical values.

    Cause:

    1. Missing Key Figures: The query you are trying to execute does not have any key figures defined. This can happen if the query was created without selecting any key figures or if all key figures were removed from the query layout.
    2. Query Design Issues: There may be issues in the query design, such as filters or restrictions that inadvertently exclude all key figures.
    3. Data Source Issues: The underlying data source may not have any key figures available, or the key figures may not be properly defined in the InfoProvider.

    Solution:

    1. Check Query Design:

      • Open the query in the Query Designer.
      • Ensure that at least one key figure is included in the query. You can do this by dragging key figures from the available key figures list into the query structure.
    2. Review Filters and Variables:

      • Check if there are any filters or variables applied that might be excluding key figures. Adjust or remove these filters as necessary.
    3. Validate Data Source:

      • Ensure that the InfoProvider (e.g., InfoCube, DSO) used in the query contains the necessary key figures. You can check this in the Data Warehousing Workbench or InfoProvider settings.
    4. Recreate the Query:

      • If the query is still not functioning correctly, consider recreating it from scratch, ensuring that you include key figures during the design process.
    5. Check Authorizations:

      • Ensure that you have the necessary authorizations to access the key figures in the query. Lack of authorization can sometimes lead to issues in displaying data.

    Related Information:

    • Key Figures: In SAP BW, key figures are numerical values that can be aggregated and analyzed. They are essential for reporting and analysis.
    • Query Designer: This is the tool used to create and modify queries in SAP BW. Familiarity with this tool is crucial for resolving issues related to queries.
    • SAP Notes: Check SAP Notes for any known issues or patches related to this error message. SAP frequently updates its knowledge base with solutions to common problems.

    By following these steps, you should be able to resolve the R9087 error and successfully execute your query with the necessary key figures included.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Start your 7-day free trial now.


Related SAP Error Messages

Click the links below to see the following related messages:
  • R9086 Insert key figure in cell &1
    What causes this issue? Cells override not only the selections of the rows but also selections of the columns. For this reason, they also require a k...

  • R9085 Insert key figure
    What causes this issue? Data columns that contain a key figure selection already exist. Therefore, the current column definition must also contain a ...

  • R9088 Cannot delete; query has not been saved
    Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...

  • R9089 Cannot execute; query has not been saved
    Self-Explanatory Message Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of...

Click on this link to search all SAP messages.


Rating
ERPlingo's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker