Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Obsolete Language Elements →  Obsolete User Dialogs →  Obsolete Statements in List Processing →  Obsolete calculations 

MAXIMUM

Quick Reference

Other versions: 7.31 | 7.40 | 7.54

Obsolete Syntax

MAXIMUM dobj.

Effect

For each WRITE statement that writes the content of the data object dobj to a list at any list level after the statement MAXIMUM (forbidden in classes) is executed, the minimum value of all values of dobj produced since the statement MAXIMUM was executed with WRITE is determined and assigned to a data object max_dobj.

The statement MAXIMUM declares the global data object max_dobj with the same type as dobj. All data objects can be specified for dobj that can be written to a list using the statement WRITE. The statement MAXIMUM must not be specified within a procedure and may be specified only once in every program.


Note

This statement is not permitted in classes because it works with implicitly created global variables. The built-in function nmax can, for example, be used instead.


Example

See SUMMING