This function should not be used by application developers. Instead they should use the ABAP List Viewer (ALV) functions.
You can use totaling to create subtotals and totals.