String reverse in ABAP
* This function is used to reverse the string.
Code
REPORT zab_rp_stringreverse.
DATA: lv_str1 TYPE string VALUE 'welcome to abap',
lv_str2 TYPE string.
WRITE: / 'Before string reverse:',lv_str1 COLOR 5.
lv_str2 = reverse( lv_str1 ).
WRITE: / 'After string reverse:',lv_str2 COLOR 6.
Output
*****************Thank You****************
Comments
Post a Comment