Understand that we can use the following code to achieve Subtotal for a particular ALV column by setting the attributes of the field catalog:
<fs_gt_fieldcat>-DO_SUM = 'X'.
However, what I wish to achieve is to perform my own 'subtotal calculation' rather that the cumulative subtotal of a particular column.
For instance, Gross weight (BRGEW), I have this column in my ALV, and I realize that we can achieve subtotal by changing the field catalog of BRGEW, however, what I wish to do is to perform my own subtotal calculation (e.g. Gross Weight Subtotal divided by number of records listed in ALV) for this column. Can this be achieved?
Appreciate your advise.