Posts

Showing posts from March, 2018

ABAP Predefined Case functions

 Today's topic is case handling, Abap has support for handling cases of string using both keywords and built-in methods. I wanted to talk about the built-in methods that you can use to modify the case of a string and how they are better than their keyword counterparts. 1. To_upper: Converts the input string/literal to uppercase and returns the uppercased string which can be used in operand positions. Example : 2. To_lower: Converts the input string/literal to lowercase and returns the uppercased string which can be used in operand positions.  Example: 3. To_mixed: Converts the input string/literal to mixed case and returns the uppercased string which can be used in operand positions.  There is no equivalent keyword for this function and the function can be really helpful in manipulating the string cases. Example: Of course, it's just a demonstration, you can play around with a more complex scenario of mixed case function.  As always, h