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

split in unicode conversion

Former Member
0 Likes
734

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
654

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

4 REPLIES 4
Read only

Former Member
0 Likes
655

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

Read only

Former Member
0 Likes
654

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:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c031aa90-0201-0010-b69d-88a278e1...

Regards

Adil

Edited by: Syed Abdul Adil on Jun 24, 2008 2:43 PM

Read only

0 Likes
654

thank you very much guys,the answer was surprisingly simple but working - should be that way everytime!

i awarded 10/6/6 points