‎2009 Apr 30 4:04 PM
Dear Experts,
how can I sum a complete internal table column.
Regards
ertas
‎2009 Apr 30 4:14 PM
Hi,
have a look at COLLECT sentence in SAP HELP.
e.g.
http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb36d5358411d1829f0000e829fbfe/content.htm
Best regards.
Edited by: Pablo Casamayor on Apr 30, 2009 5:16 PM
‎2009 Apr 30 4:14 PM
Hi,
have a look at COLLECT sentence in SAP HELP.
e.g.
http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb36d5358411d1829f0000e829fbfe/content.htm
Best regards.
Edited by: Pablo Casamayor on Apr 30, 2009 5:16 PM
‎2009 Apr 30 4:24 PM
Hi,
Use SUM in AT END of event in the loop of an internal table.
Example
Loop at ITAB into wa_itab.
at end of wa_itab-field.
sum. " Here all numric fields will be summed and stored in that filed(wa_itab-field)
endat.
Endloop.
Regards
Krishna
‎2009 Apr 30 4:31 PM
how is the correct syntax if you have workarea.
COLLECT wa-cost doesnt work.
LOOP at itab into wa
COLLECT wa-cost.
ENDLOOPthx
ertas
‎2009 Apr 30 4:34 PM
Hi,
Please check my above reply for sample code
Regards
Krishna
‎2009 Apr 30 4:41 PM
‎2009 Apr 30 4:46 PM
Total Posts: 813
Total Questions: 350 (121 unresolved)
You might want to consider cleaning up your old posts.
Rob