‎2008 Jun 24 1:30 PM
hi, my task is to run an unicode conversion of source code to unicode....
i managed to fullfill several tasks but:
DATA: trenn TYPE x value '09'.
split z_satz at trenn into
satz-bkr
satz-name
satz-adress.
as x gives binary object and all the satz-xyz are strings,numbers etc it gives an error of mixing up those types.
can i just switch from x to string or are better conversions needed?
best regards,sven
‎2008 Jun 24 1:33 PM
Hi,
Check the below code for your requirement...
DATA: trenn TYPE x value '09'. <Dont use this>
split z_satz at cl_abap_char_utilities=>horizontal_tab into
satz-bkr
satz-name
satz-adress.
Rgds,
Bujji
‎2008 Jun 24 1:33 PM
Hi,
Check the below code for your requirement...
DATA: trenn TYPE x value '09'. <Dont use this>
split z_satz at cl_abap_char_utilities=>horizontal_tab into
satz-bkr
satz-name
satz-adress.
Rgds,
Bujji
‎2008 Jun 24 1:42 PM
Hi bertelmann,
pls see the link
run an unicode conversion of source code to unicode....
http://help.sap.com/saphelp_nw04/helpdata/en/16/4b3c88170e11d6999d00508b6b8b11/frameset.htm
thanks
trinadh
reward me if usefull
‎2008 Jun 24 1:43 PM
Hi,
Instead of using TYPE X value '09'
Use CL_ABAP_CHAR_UTILITIES=>HORIZONTAL_TAB.
Before the conversion to Unicode
data: begin of TAB,
X(1) type x value '09', u201CASCII horizontal tab
end of TAB,
C(10) type c.
C+5(1) = TAB. _ Unicode error
After the conversion to Unicode
class cl_abap_char_utilities definition load.
c+5(1) = cl_abap_char_utilities=>horizontal_tab.
For detail go through this link:
Regards
Adil
Edited by: Syed Abdul Adil on Jun 24, 2008 2:43 PM
‎2008 Jun 25 8:07 AM
thank you very much guys,the answer was surprisingly simple but working - should be that way everytime!
i awarded 10/6/6 points