10-20-2006 11:27 AM
I'd like to sort ALV-grid based report but ONLY by subtotals values!
Is it possible?
ALV grid is displayed as collapsed - only subtotals and totals.
Thanks
10-20-2006 11:30 AM
10-20-2006 2:48 PM
Hi
Its not possible to sort by subtotals values. If realy you need it we have to populate the subtotals records also in to the internala table which will be used to display the report output.
It only possible programmatically...
Regards,
Satya.
10-20-2006 2:51 PM
10-20-2006 3:01 PM
hi,
first declare
c_SUBTOTAL_TEXT type slis_formname value 'SUBTOTAL_TEXT ',
and use this it will work
&----
*& Form sort_table
&----
FORM sort_table. .
*x_subtotal_text = .
*clear x_sort.
*x_sort-spos = '1'.
*x_sort-fieldname = 'DMBTR'.
*x_sort-tabname = 'IT_FINAL'.
*x_sort-up = c_x.
*x_sort-subtot = c_x.
*
*append x_sort to i_sort.
*
10-20-2006 3:03 PM
Hi Radoslaw,
i think its no possible.
You have to manage it in your Program.
Compute the subtotal in your Report.
Then use this Information and manupulate
the Fieldcat.
Regards, Dieter
set Fieldcat-COL_POS in order of the subtotal.
Regards, Dieter
Message was edited by: Dieter Gröhn