Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Need to SUM on a field with FOR ALL ENTRIES

Hi All,

I need to use something like this appearing below ....but SUM is not allowed with FOR ALL ENTRIES ......Whats the efficient ALTERNATIVE ???

SELECT sum( menge ) INTO TABLE imseg

FROM mseg

FOR ALL ENTRIES IN iresb

WHERE matnr = iresb-matnr

AND bwart = '281'

AND aufpl = iresb-aufpl

AND aplzl = iresb-aplzl.

Any help will be rewarded & appreciated ...

Regards

Jaman

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question