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

Former Member
0 Likes
563

what is wrong

select single sum( mzubb )

sum( wzubb )

into (z_mzubb , z_wzubb )

from s033

where werks = <ls_mard>-werks

and lgort = <ls_mard>-lgort

and matnr = <ls_mard>-matnr

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
503

Remove the keyword SINGLE from the select statement.

-Kiran

3 REPLIES 3
Read only

Former Member
0 Likes
504

Remove the keyword SINGLE from the select statement.

-Kiran

Read only

Former Member
0 Likes
503

Hi Rani,

Use GROUP BY statement for the fields which you will use claues.

select single sum( mzubb )

sum( wzubb )

into (z_mzubb , z_wzubb )

from s033

where werks = <ls_mard>-werks

and lgort = <ls_mard>-lgort

and matnr = <ls_mard>-matnr

<b>GROUP BY MZUBB WZUBB.</b>

Thanks,

Vinay

Read only

Former Member
0 Likes
503

Hello Rani,

Add order by mzubb or group by mzubb.

and also check the field symbols are having values and the select stmt.

It is useful for u rewardthe points

Regards,

Vasanth