ABAP Keyword Documentation → ABAP − Reference → Processing Internal Data → Character String and Byte String Processing → Expressions and Functions for String Processing → String Functions → Common Parameters of Character String Functions
case - Uppercase and Lowercase
Other versions: 7.31 | 7.40 | 7.54
Syntax
... ( ... case = case ... ) ...
Effect
Searches and comparisons in string functions are case-sensitive by default, but this can be overridden
if necessary using the parameter case
. The argument case
requires a constant or a literal of the type ABAP_BOOL from the type group ABAP
with the value of the constants ABAP_TRUE or ABAP_FALSE. If case
contains
the value of ABAP_TRUE, the search is case-sensitive; if it contains the value of ABAP_FALSE, the search is not case-sensitive.
Example
The result of the following function calls is 2 and 3.
DATA(result1) = find( val = `aAbBcC` sub = `B` case = abap_false ).
DATA(result2) = find( val = `aAbBcC` sub = `B` case = abap_true ).