Skip to Content

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

Sum of one column of an internal table

Hi All,

I have an internal table with two columns.

First column is having standard taxt "ZSSS" (for all rows).

The second column is having Amount value.

Internal table might have multiple lines with this structure.

Now i would like to sum the second column which is having Amount value.

How to code to get the sum in such scenario?

Your help will be appreciated.....

Regards

Pavan

Tags:
Former Member
Former Member replied

loop itab

at last

sum

total_amount = itab-fld2.

endat

endloop.

the sum value is available in work area or headerline of itab

write: total_amount

0 View this answer in context

Helpful Answer

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