on 03-12-2014 9:08 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.