Show TOC

Summing a Program Symbol: SUMMINGLocate this document in the navigation structure

Use

The SUMMING command is used for accumulating a total value for a program symbol. The command should be specified just once. Then, each time the specified program symbol is formatted, its current value is added into the total symbol. Several program symbols may all be added into a single total symbol.

        
            /: SUMMING programmsymbol INTO summensymbol
         

SAPscript cannot create the field for the total dynamically. The summing symbol used for totaling and the accompanying program symbols must be declared with TABLES in the ABAP program. Otherwise, only zero is added. Declaring the symbol with the DATA statement is not sufficient (global data).

Note

For more information about summing and carrying forward, see Summing and Carrying Forward Is Incorrect.