To Add a SubTotal to a particular column in an ALV report ( using the REUSE_ALV – FM )
- Set the SUBTOT field of the structure SLIS_SORTINFO_ALV to ‘X’ and
- Also in the field catalogue for the field which you want to sub-total set the field DO_SUM of the structure SLIS_FIELDCAT_ALV to ‘X’.
If you want only subtotals but not the Grand Total for the report then set the field NO_TOTALLINE of the structure SLIS_LAYOUT_ALV to ‘X’
This Blog has a Very good Example for the same