Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

Not able to display subtotal and subtotal text using SALV Factory method

$
0
0

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.


Viewing all articles
Browse latest Browse all 8332

Trending Articles