sapdev logo background
sapdev logo sapdev logo
Comments

ABAP SUM EXTRACT Statement syntax, information and example SAP source code



Return to Statement index



sum( )

ABAP Syntax(Obsolete) ... sum(field) ....

What does it do? 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 the fields sum(field1) sum(field1) ... are accessed without the extract dataset first being sorted, a non-handleable exception can be raised.
Latest notes: No substring access sum(len)
can be made on a data object called sum without an offset being specified explicitly. The compiler always interprets an offset specified like this as a field for an extract dataset.
A Customizing include may not be specified for field if it is empty.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




SUMMING
SUPPLY




comments powered by Disqus