cancel
Showing results for 
Search instead for 
Did you mean: 

AlV total Description

former_member205842
Participant
0 Kudos

HI Experts,

                  I have a requirement that i have to display description for grandtotal of a particular column in ALV. I mean displaying total in yellow line in the same way i have give description for that like this... .

Total Weighted     13,020 }----> like this i have to show


If possible please let me know ....



Regards

Syed

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184578
Active Contributor
0 Kudos

Hi,

If you are using the standard aggregation rule to calculate total, It will display 2 dots(..) for total; unfortunately there is no option to set custom Description for total.

So, Remove the standard aggregation, calculate the total manually and append the Total with your custom description( you can also set the color to that row ).

for ex: say you have 2 columns in ALV - Name, Amount

Loop at lt_tab into ls_tab.

lv_total = lv_total + ls_tab-amount.

Endloop.

ls_tab-Name = 'Grand Total'.

ls_tab-amount = lv_total.

append ls_tab to lt_tab.

Now, bind the lt_tab to ALV context node.

Hope this helps u,

Regards,

Kiran