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 → 

reverse - Reverse Function

Syntax

... reverse( [val =] text  ) ...

Effect

This function returns a character string that reverses the content of text.

The return code has the type string.

Example

Gets the Latin alphabet in reverse.

result = reverse( sy-abcde ).