What is the function module in ALV'S to get subtotals
[B]Question asked by visitor Charath[/b]
Printable View
What is the function module in ALV'S to get subtotals
[B]Question asked by visitor Charath[/b]
In order to get the suotal of the particular filed we need to handle the sorting for the report. Declare a structure like SLIS_T_SORTINFO_ALV.
and here
do the coding as follows
it_SORT-SPOS = '1'.
it_SORT-FIELDNAME = 'fld1'.
it_SORT-UP = 'X'.
it_SORT-SUBTOT = 'X'.
APPEND I_SORT.
Pass this in the display function module and
IT_SORT = I_SORT
and you would get the subtotals