Question:
When using subtotals in an ALV grid you have the option in the report to 'compress' each sub group so that only the total line shows.
Is it possible to set this indicator when displaying the grid for the first time?
Answer:
Yep, it is, look at the "sort" parameters for either the FM or the method. There should be a fields.......something like "EXPA". Set this field = to 'X' when during your sort setup.
clear tmp_sort.
tmp_sort-fieldname = 'LENGTH'.
tmp_sort-tabname = 'IALV'.
tmp_sort-up = 'X'.
tmp_sort-subtot = 'X'.
tmp_sort-expa = 'X'.
append tmp_sort to sort.
Regards,
R Heilman
Answer:
Thats is R, thanks for your help