Sorting in SAP ABAP ALV Report
Sorting in SAP ABAP ALV Report Using the Sort Table, the user can sort the output and he can expect subtotals in the output result. here, we discuss the importance of the sort table importance and its use in ALV Reports. Sort Criteria, The Table IT_SORT is populated with the sort criteria for the different fields. The caller specifies the essential list's sorting and/or subtotaling in the internal table IT_SORT. This internal table has the following fields: - spos : Sort sequence - fieldname : Internal output table field name - tabname : Only relevant for hierarchical-sequential lists. Name of the internal output table. - up : 'X' = sort in ascending order - down : 'X' = sort in descending order - subtot : 'X' = subtotal at group value change - ...