How To Fix /STMC/CR_LOG120 - Rest aggregation must be disabled (Top N &1)


SAP Error Message - Details

  • Message type: E = Error

  • Message class: /STMC/CR_LOG -

  • Message number: 120

  • Message text: Rest aggregation must be disabled (Top N &1)

  • Show details Hide details


  • Self-Explanatory Message

    Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.

    To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.

    Unfortunately, there isn't any extra information in this error notice.



    What else can you do?

    First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).

    Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.

    You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.


Smart SAP Assistant

  • What is the cause and solution for SAP error message /STMC/CR_LOG120 - Rest aggregation must be disabled (Top N &1) ?

    The SAP error message /STMC/CR_LOG120 Rest aggregation must be disabled (Top N &1) typically occurs in the context of SAP BW (Business Warehouse) or SAP HANA when you are trying to execute a query that involves a "Top N" filter or aggregation, but the system requires that the "Rest aggregation" option be disabled for that specific query.

    Cause:

    1. Top N Filter: The error is triggered when a query is set to retrieve only the top N records based on a certain measure or characteristic, but the query is also trying to perform a rest aggregation (i.e., aggregating the remaining records that are not included in the Top N).
    2. Query Design: The query design may not be compatible with the aggregation settings. If the query is set to show only the top N results, the system cannot perform a rest aggregation simultaneously.

    Solution:

    To resolve this error, you need to adjust the query settings in the SAP BW Query Designer or the relevant tool you are using:

    1. Disable Rest Aggregation:

      • Open the query in the Query Designer.
      • Navigate to the properties of the query or the specific InfoProvider.
      • Look for the option related to "Rest Aggregation" or similar settings.
      • Disable the "Rest Aggregation" option.
    2. Adjust Top N Settings:

      • Ensure that the Top N settings are correctly configured. You may need to review the criteria for the Top N selection to ensure it aligns with your reporting requirements.
    3. Test the Query:

      • After making the changes, save the query and execute it again to see if the error persists.

    Related Information:

    • Documentation: Refer to SAP Help documentation for more details on query design and aggregation settings.
    • SAP Notes: Check for any relevant SAP Notes that might address this specific error or provide additional context.
    • Community Forums: Engage with SAP community forums or support channels for insights from other users who may have encountered similar issues.

    By following these steps, you should be able to resolve the error and successfully execute your query.

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

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