2009 Sep 16 10:45 PM
ABAP guru,
I tried to split a string at the tab character.
The following ABAP statements work fine when Unicode checks are deactivated.
data: W_TAB_FIELD(1) TYPE X VALUE '09'.
SPLIT W_LTEXT AT W_TAB_FIELD INTO w_ltext1 w_ltext2 w_ltext3.
But if I checked the box "Unicode checks are active", the statements above will have syntax error
"W_TAB_FIELD" must be a character-like data object (data type C, N, D, T, or STRING).
How can I split a string at tab character in the Unicode checks active environment?
Thanks in advance!
Fisher
2009 Sep 16 11:23 PM
Change your decleration to :
data: W_TAB_FIELD TYPE c VALUE cl_abap_char_utilities=>CR_LF.
Change your decleration to :
data: W_TAB_FIELD TYPE c VALUE cl_abap_char_utilities=>CR_LF.
2009 Sep 16 11:23 PM
Change your decleration to :
data: W_TAB_FIELD TYPE c VALUE cl_abap_char_utilities=>CR_LF.
2009 Sep 16 11:37 PM
J@y,
Thank you very much for pointing to the right direction!
I used "W_TAB_FIELD(1) TYPE c VALUE cl_abap_char_utilities=>HORIZONTAL_TAB" and it worked!
Thank you again!
Fisher
2016 Jan 01 2:29 PM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |