Get Example source ABAP code based on a different SAP table
Standard SAP Help for MAXIMUM
Short Reference > • MAXIMUM ABAP Statement
ABAP Syntax(Obsolete)MAXIMUM dobj.>
What does it do? 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.
Latest notes: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.