Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Obsolete Language Elements →  Obsolete Extracts →  AT - Extract 

sum( )

Other versions: 7.31 | 7.40 | 7.54

Obsolete Syntax

... sum(field) ....

Effect

For the fields field1 field2 ... of the field groups of an extract dataset, automatically data objects named sum(field1) sum(field1) ... of the same data type as field1 field2 ... are created. These fields can be accessed only within a LOOP and are filled with values for sorted extract datasets using the statements AT END OF and AT LAST.

  • If field1 field2 ... are fields with numeric data type, then sum(field1) sum(field1) ... contain the total of the values of field1 field2 ... within the control level or the entire dataset.

If you access the fields sum(field1) sum(field1) ... without previously sorting the extract dataset, an untreatable exception can occur.


Note

A Customizing include may not be specified for field if it is empty.