Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Summation

Former Member
0 Kudos

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.

2 REPLIES 2

Former Member
0 Kudos

You can use the subtotal button on standard ALV toolbar to achieve this.

regards,

Sandeep Josyula

*Mark helpful answers

Former Member
0 Kudos

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.