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 Command

Former Member
0 Likes
362

Hey Folks,

I have to fulfill this requirement by using the commnad SUM and exclude the first record by getting summed up but also retain it.

How wud i do this.

charg reser avail

12000 12000

12345 400 500

23456 800 800

i shud be getting the result as

charg reser avail

12000 12000

12345 400 500

23456 800 800

-


1200 1300

How wud i achieve this.

Regards

Rock

Edited by: Alvaro Tejada Galindo on Feb 4, 2008 2:30 PM

1 REPLY 1
Read only

Former Member
0 Likes
330

I don't understand if you are asking about the SUM function in a SELECT statement or if you problem is in an ALV list. Because using the SUM function without GROUP BY will result in only one line. You should select all the data and then add it yourself.

Regards,

Pablo