Skip to content

Instantly share code, notes, and snippets.

@zhjuncai
Created July 26, 2013 02:48
Show Gist options
  • Save zhjuncai/6085717 to your computer and use it in GitHub Desktop.
Save zhjuncai/6085717 to your computer and use it in GitHub Desktop.
ABAP strlen test demo
*&---------------------------------------------------------------------*
*& Report Z_DEMO_STRING
*&---------------------------------------------------------------------*
REPORT Z_DEMO_STRING.
data:
lv_length type i,
lv_string type char20.
lv_string = '$Hello World'.
lv_length = strlen( lv_string ).
write: / lv_string+0(lv_length). " get all of the character
write: / lv_string+2(5). " get the charactor from index second to five
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment