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

select sum( column1 ) + sum( column2 ) as 'sum'...

Former Member
0 Likes
661

Hi,

i'm trying to make something like

select sum( column1 ) + sum( column2 ) as 'sum'

from mytab

into mysum

where ...

in ABAP.

Any Ideas how this could work. Because the statement above does not work in ABAP

thanks

sven

Edited by: Sven Delangle on Dec 15, 2010 12:11 PM

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
580

Unfortunately it dosent work, like we do column addition as in excel between two columns(of integers ).

Process the logic in loop .

Hi,

i'm trying to make something like

select sum( column1 ) + sum( column2 ) as 'sum'

from mytab

into mysum

where ...

in ABAP.

Any Ideas how this could work. Because the statement above does not work in ABAP

thanks

sven

Edited by: Sven Delangle on Dec 15, 2010 12:11 PM

2 REPLIES 2
Read only

Former Member
0 Likes
581

Unfortunately it dosent work, like we do column addition as in excel between two columns(of integers ).

Process the logic in loop .

Read only

Former Member
0 Likes
580

sum each column into a separate variable, add the two together at the end of SELECT.