How To Fix AQ878 - Subtotals are only allowed for sorted columns


AQ878 - Overview

  • Message type: E = Error

  • Message class: AQ - Message texts for SAP Query

  • Message number: 878

  • Message text: Subtotals are only allowed for sorted columns

  • Show details Hide details
  • What causes this issue?

    You attempted to calculate sub-totals for the numeric values in your
    table by selecting the appropriate columns, but you must sort these
    columns first.

    System Response

    The system issues an error message and will not allow you to continue with this transaction until the error is resolved.

    How to fix this error?

    If you want sub-totals for a particular field, you must first sort the
    table by this field. You then select the field or the relevant column.

    Error message extract from SAP system. Copyright SAP SE.


Smart SAP Assistant

  • What is the cause and solution for SAP error message AQ878 - Subtotals are only allowed for sorted columns ?
    The SAP error message AQ878, which states "Subtotals are only allowed for sorted columns," typically occurs in the context of reporting or data analysis within SAP systems, particularly when using tools like SAP Query or SAP Report Painter. This error indicates that you are trying to create subtotals in a report where the data is not sorted according to the column for which you want to create the subtotal.
    
    Cause: The primary cause of this error is that subtotals can only be calculated on sorted data. If the data in the report is not sorted by the column for which you are trying to create a subtotal, SAP will throw this error. This is because subtotals require a clear grouping of data, which is only possible when the data is sorted.
    Solution: To resolve the AQ878 error, follow these steps: Sort the Data: Ensure that the data in your report is sorted by the column for

    Already have an account? Login here!




Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


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