SAP MAXIMUM ABAP Statements



Get Example source ABAP code based on a different SAP table
  


ID MAXIMUM
• MAXIMUM ABAP Statement

MAXIMUM
Short Reference

ABAP_SYNTAX_OBS
MAXIMUM dobj.

What does it do?
For each WRITE statement that writes the content of the data object dobj to a list at any list level after the statement MAXIMUM, which is forbidden in classes, is executed, the maximum value of all values of dobj produced as output since the statement MAXIMUM was executed with WRITE is determined implicitly 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 can only be specified once in a program.



Latest notes:

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



Example ABAP Coding

See SUMMING
ABAP_EXAMPLE_END

Return to menu