Ansicht
Dokumentation
STRING_REVERSE - Returns a string in reverse order
ABAP Short Reference BAL_S_LOG - Application Log: Log header dataThis documentation is copyright by SAP AG.
The function module returns the character string entered in reverse sequence. Leading blanks are taken into account, trailing blanks are not.
All exceptions are generated with RAISE and must be handled in the calling program.
Examples
' abc ' becomes 'cba ' . (If the actual parameter assigned to the formal parameter RSTRING is longer than 4 characters as shown in this example, the remaining places are padded with blanks.)
Sample call:
DATA: REVERSESTRING(10).
CALL FUNCTION 'STRING_REVERSE'
EXPORTING STRING = ' abcdef '
IMPORTING RSTRING = REVERSESTRING
EXCEPTIONS TOO_SMALL = 1.
IF SY-SUBRC = 0.
* The reverse string is in RSTRING
ELSE.
* RSTRING zu kurz
ENDIF.
Parameters
LANGRSTRING
STRING
Exceptions
TOO_SMALLFunction Group
CSTRVendor Master (General Section) PERFORM Short Reference
This documentation is copyright by SAP AG.
Length: 1393 Date: 20240523 Time: 105756 sap01-206 ( 22 ms )