Displaying Sorted Lists
Depending on the application case it can be useful to display a table that has already been initially sorted.
| Interface
|
Method
|
| IF_SALV_GUI_LAYOUT_IDA
|
set_sort_order
|
Report example: SALV_IDA_INITIAL_SORTING
Displaying Grouped Lists
The user can use the
Grouping option to display large amounts of data in a simpler way. The rows with the same field values are aggregated into groups. Depending on the use case it can make sense to display a list that is already pregrouped. The grouped display is an aggregated display of a sorted list. Therefore the grouping is specified when setting the sort sequence.
| Interface
|
Method
|
| IF_SALV_GUI_LAYOUT_IDA
|
set_sort_order
|
Example report for an in-container display: SALV_IDA_INITIAL_GROUPING
Display List with Aggregations
If the list contains columns that can be aggregated, when these columns are first called, the totals or maximum, minimum, or average value are displayed too. If the list is also grouped, the subtotals are assigned in the group rows.
| Interface
|
Method
|
| IF_SALV_GUI_LAYOUT_IDA
|
set_aggregation
|
Report example: SALV_IDA_INITIAL_AGGREGATION
Note The sorted, grouped, or totalled view of the list can be overridden by the user's personalization settings. See also:
Saving Personalization Settings.