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 reverselv_str1 ).

WRITE: 'After string reverse:',lv_str2 COLOR 6.

Output


*****************Thank You****************

Comments

Popular posts from this blog

Pf status and user command in factory method - OOPS ALV in ABAP

fetch the data from table and send an email in ABAP

Enhancements in abap