ABAP Keyword Documentation → ABAP - Reference → Processing Internal Data → Character String and Byte String Processing → Expressions and Functions for String Processing → String Functions → Processing Functions for Character-Like Arguments
cmax, cmin - Character-Like Extreme Value Functions
These functions return the value of the biggest or the smallest of the character-like arguments
... passed. The content of the arguments is compared from left to right in the evaluation. The first different character from the left decides which operand is bigger or smaller on the basis of the sequence in the
code page used.
The return code has the type
The extreme functions
nmincan be used to determine numeric extreme values.
- Character-like extreme functions, like numeric extreme functions, can be traced back to the equivalent control structures using relational operators. Remember that, unlike with the usual ABAP comparison rules, shorter arguments of fixed lengths are not padded to the length of longer arguments by entering blank spaces.
As with comparisons with relational operators, the current locale is not significant when determining the extreme values.
For a demonstration of the extreme functions
refer to the character string functions