Skip to content

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

Other versions: 7.31 | 7.40 | 7.54

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.

DATA(result) = reverse( sy-abcde ).