Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

TAB characteristic

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

hi

i checked it and its working fine.

Aditya

Former Member
0 Kudos

hi,

When i executed the code it works fine for me i am getting a single '#' itself...

Regards,

Santosh

Former Member
0 Kudos

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.