Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DATA : lv_string(20) VALUE 'ฟหกMK06MSTO1711-333ฟหก',
- count TYPE i,
- char_1.
- do strlen( lv_string ) times.
- count = sy-index - 1.
- char_1 = lv_string+count(1).
- * FIND REGEX '[0-9a-zA-Z-]' IN char_1. " in
- FIND REGEX '[^0-9a-zA-Z-]' IN char_1. " not in
- IF sy-subrc = 0.
- WRITE char_1.
- ENDIF.
- ENDDO.
- FIND ALL OCCURRENCES OF
- REGEX '[^0-9a-zA-Z-]' IN 'ฟหกMK06MSTO1711-333ฟหก' " if no char in ENG catain it will be print pass
- MATCH COUNT sy-tabix.
- IF sy-subrc = 0.
- WRITE / 'pass'.
- ENDIF.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement