Fields of the Sort Table 
The sort table is an internal table of type LVC_T_SORT.
You use the sort table to get the current sort criteria of the list or set these criteria dynamically (see method set_sort_criteria) or before the list is displayed for the first time (see set_table_for_first_display).
If you use the table in combination with method get_subtotals, you can determine the subtotals values.
Field Name |
Description |
|---|---|
SPOS |
Sort order if the list is sorted by multiple columns |
FIELDNAME |
Field name in the internal output table |
UP |
'X' = Sorted in ascending order |
DOWN |
'X' = Sorted in descending order |
SUBTOT |
'X' = Subtotals for control level changes |
GROUP |
Once a column is sorted, it is subdivided into groups. This means there is one group for each value of the column (in the default setting, the ALV Grid Control merges cells that have the same value in the sort column). If the value in the sort colulmn changes, this is called a group level change. You can use this field to determine the formatting of this value when the list is printed:
(The formatting options are fixed domain values of domain SLIS_CTRLS). See also the documentation for field GRPCHGEDIT in The Print Structure. |