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

String separated by TAB

Former Member
0 Likes
3,202

Hello ABAP-Experts,

System: NW2004s

ABAP: 700

I like to separate two strings with a tab. Therefore I´m using the following statement:

lv_text1(50) type c value 'Test'.

lv_text2(50) type c value 'TEXT'.

lv_tabtext(200) type c.

CONCATENATE lv_text1 lv_text2 INTO lv_tabtext

SEPARATED BY cl_abap_char_utilities=>horizontal_tab.

I was expecting the string: 'Test Text'

but I got the string: 'Test#Text'.

Can anybody help me with this issue?

Thank you very much in advance

Best regards

Axel

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
890

Hi,

some times it will look like that only,

again split the same string using cl_abap_char_utilities=>horizontal_tab, if it splits the string then it is correct.

reward if needful.

Thanks,

Sreeram.

5 REPLIES 5
Read only

Former Member
0 Likes
891

Hi,

some times it will look like that only,

again split the same string using cl_abap_char_utilities=>horizontal_tab, if it splits the string then it is correct.

reward if needful.

Thanks,

Sreeram.

Read only

0 Likes
890

Hello Sreeram,

thanks for you reply.

the string will be split again, but how can I see the tab in display mode (write)?

Regards

Axel

Read only

0 Likes
890

Hi,

It is the correct format what you have seen in the Output.This separation could be seen more clearly when u conver the data in application server to txt or .dat file.

Regards

Kannaiah

Read only

0 Likes
890

data: tab1 type ABAP_CHAR1.

data: lg type i.

data: ch type string value 'first',

ch1 type string value 'second'.

CONCATENATE ch ch1 into ch seperated by tab1.

write:/ ch.

Read only

0 Likes
890

Ok, Thank you very much.

Regards

Axel