Application Development and Automation 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: 
Read only

TAB characteristic

Former Member
0 Likes
834

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

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
Read only

Former Member
0 Likes
802

hi

i checked it and its working fine.

Aditya

Read only

Former Member
0 Likes
802

hi,

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

Regards,

Santosh

Read only

Former Member
0 Likes
802

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.