2007 Dec 07 8:32 AM
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
2007 Dec 07 8:35 AM
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.
2007 Dec 07 8:35 AM
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.
2007 Dec 07 8:42 AM
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
2007 Dec 07 8:49 AM
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
2007 Dec 07 9:08 AM
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.
2007 Dec 07 12:05 PM