SAP NetWeaver AS ABAP Release 740, ©Copyright 2014 SAP AG. All rights reserved.
ABAP Keyword Documentation → ABAP − Reference → Obsolete Language Elements → Obsolete User Dialogs → Obsolete Statements in List Processing → Obsolete calculations →Obsolete Syntax
MAXIMUM dobj.
Effect
For each WRITE statement that writes the content of data object dobj to a list at any list level once the MAXIMUM statement has been executed (not permitted in classes), the maximum value of all values output with WRITE since the MAXIMUM statement was executed is determined implicitly by dobj and assigned to data object max_dobj.
The MAXIMUM statement declares global data object max_dobj with the same type as dobj. For dobj, you can specify all data objects that can be written to a list using WRITE. The MAXIMUM statement must not be listed within a procedure and may be listed only once in each program.
Note
This statement is not permitted in classes because it works with global variables created implicitly.
In its place, you can use predefined function nmax, for example.
Example
See SUMMING