SAP Message AQ878 - Sub-totals are only allowed for sorted columns

Diagnosis
You attempted to calculate sub-totals for the numeric values in yourtable by selecting the appropriate columns, but you must sort thesecolumns first.

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