Application Development and Automation 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: 
Read only

Sum

Former Member
0 Likes
543

In OO alv display i am showing the 'quantity to be produced ' as per the day.

Now i need to sum up the quantity for each day.

how can i do it,

4 REPLIES 4
Read only

Former Member
0 Likes
518

Hi John,

You have to include one more column for the date.

Fill the sort table for that field.

Make sure that the column for the date is the first field in the list.

Then apply the sort function on that field. Then you can get the quantity per day.

Regards,

ravi

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
518

You can set a sort on the day column. Use the "SORT" parameter in the SET_TABLE_FOR_FIRST_DISPLAY method. Five the field name for the "Day" column and set SUBTOTAL = 'X'. Make sure to set the qty field column as DO_SUM = 'X' in the field catalog.

Regards,

Rich Heilman

Read only

0 Likes
518

Hai Rich,

Thank u very much....

Its easier to understand, if u have sample code for this.

please send me.......

Read only

0 Likes
518

Hai Rich, i suppose this will not help in this case.

My display is like this

Monday ( Text)

planned (Text )

matnr

quantity

matnr

quantity

......

.....

....

......

sum :

______

I need to sum only the quantitiy here.....

How can i do it.