Created
July 26, 2013 02:48
-
-
Save zhjuncai/6085717 to your computer and use it in GitHub Desktop.
ABAP strlen test demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*&---------------------------------------------------------------------* | |
*& 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