Hi,
I am creating a report using cl_salv_table, factory method. The main two fields (among others) are product and amount. I want to show subtotal of the amounts for each product and before each subtotal I want a text to be shown (on the same row).
Something like:
Product Amount
1 10
1 20
Subtotal text 30
2 5
2 10
Sutotal text 15 and so on ...
Searched various discussions but not able to get the right answer. The get_aggregations or get_sorts does not seem to be working or I am not using them properly. I have tried with creating a hidden column in the internal table with fixed value like "Subtotal" but again not showing the desired result. Please help (urgent).
Thanks.