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

ERR IN SELECT

Former Member
0 Likes
431

select SUM( KAWRT )

from konv

INTO Z_KAWRT

where knumv = Z_KNUMV

and kschl = Z_KSCHL.

I GET ERR T "AGGREGATE...THE ADDITION distinct ARE NOT SUPPORTED ...."

1 ACCEPTED SOLUTION
Read only

nishanthbhandar
Contributor
0 Likes
391

KONV is a cluster table and so u cannot use the addition SUM ( fieldname ) with this table. That is why u r getting the error message.If the purpose of your select is to sum up KAWRT then select the required records into an internal table and add them up.

2 REPLIES 2
Read only

nishanthbhandar
Contributor
0 Likes
392

KONV is a cluster table and so u cannot use the addition SUM ( fieldname ) with this table. That is why u r getting the error message.If the purpose of your select is to sum up KAWRT then select the required records into an internal table and add them up.

Read only

Former Member
0 Likes
391

hi Liat tal,

please use this query.

select SUM( KAWRT )

INTO Z_KAWRT

from konv

where knumv = Z_KNUMV

and kschl = Z_KSCHL.

hope this help you.

~John