07-15-2008 11:37 AM
Hi,
I spliting a string at tab delimiter.
For tab delimiter I have declared variables as follows:
DATA:
c1. " Holds Tab Character.
FIELD-SYMBOLS: <f>.
FIELD-SYMBOLS:<delimiter> TYPE c1.
DATA: del(4) TYPE x VALUE '09'
Assign del to <delimiter> casting.
WRITE <delimiter> TO c1.
but in c1 i am getting 2 charaters as 'squarebox#'
I need only #.
Y is it so.
Can help me on this
07-15-2008 11:41 AM
07-15-2008 11:42 AM
hi,
When i executed the code it works fine for me i am getting a single '#' itself...
Regards,
Santosh
07-15-2008 11:52 AM
If ur working in 6.1o or above then try this:
DATA:
c1. " Holds Tab Character.
FIELD-SYMBOLS: <f>.
FIELD-SYMBOLS:<delimiter> TYPE c1.
DATA: del type char1 value CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
Assign del to <delimiter> casting.
WRITE <delimiter> TO c1.
Regards,
Joy.