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

Summation

Former Member
0 Likes
615

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.

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
Read only

Former Member
0 Likes
574

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

regards,

Sandeep Josyula

*Mark helpful answers

Read only

Former Member
0 Likes
574

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.