Options for Line Layout: Totals and Counting
Integration
In the Basic List Line Structure screen, you determine the totals fields to be displayed using the options Totals and Counter.
Total
The Total option calculates the grand total of a specified numeric field. This means that each time the field is read in a dataset, the field’s value is added to the sum total. The grand total is displayed at the end of the basic list. With control levels, you can also display subtotals. A subtotal contains all values of a field that are assigned to a particular control level, that is, a particular sort string.
Special Features:
To avoid overflows like this when outputting totals, you can simply increase the output length of the field. You do this in the Output Options field.
Currency-specific summation also applies when you specify the output of the currency amount field without a unit. Then, several currencies (without a currency) appear in the total lines. For this reason, you should always output currency amounts with a currency.
Counting
The Counter option causes the counter number for a particular field to be increased by 1 every time that this field is found within the data set currently being read. The resulting counter total is displayed in much the same manner as a grand total at the end of the basic list. Just as with sum totals, counter subtotals can be displayed for individual control levels. These counter subtotals show how many values have been assigned to a particular control level.

If the both the Total and Counter checkboxes have been selected for a numeric field, the counter number is always equal to the number of addends for that field.
The Counter option can also be selected for non-numerical fields.