10-24-2006 10:35 AM
I am using an OO ALV for display.
I am showing the orders as per the day.
now i need to sum up the orders for each day.
the text ' SUM : XYXXX' should be shown in a row after the last maximum order of a day. so it changes dynamically.
How can i make it.
10-24-2006 10:38 AM
You can use the subtotal button on standard ALV toolbar to achieve this.
regards,
Sandeep Josyula
*Mark helpful answers
10-24-2006 10:41 AM
I am not sure of your requirement completely but the below logic should help.
define a text field in your internal table(use to display data). Sort it datewise + orderno.
At end of orderno.
sum.
ltotal = itab-qty.
lflag = 'X'.
endat.
if lflag = 'X'.
write ltotal to lctot using edit mask 'RR_________.___'.
concatenate 'SUM : ' lctot into itab-totsum.
modify itab.