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

Error in ECC6.0

Former Member
0 Likes
347

Hi Guys,

This is my error x type x is converted to character type.

EOF" and "IT_DOWN2-LINE(1)" are not comparable in a Unicode program.

DATA: BEGIN OF eof, "<EOF> = Ascii-Wert 26

x TYPE x VALUE '1A',

END OF eof.

1 REPLY 1
Read only

former_member194669
Active Contributor
0 Likes
330

Check this


report zaRs
       no standard page heading
       line-size 255.
 
begin of struct1,
  x1(1) type x,
end of struct1.

begin of struct2,
c1(10) type c,
end of struct2.
 
data: xcontent  type xstring,
      content   type string,
      conv      type ref to cl_abap_conv_in_ce,
      len       type i.
 
struct1-x1 = '1A'.
 
xcontent = struct1-x1.                       
 
conv = cl_abap_conv_in_ce=>create( input = xcontent ).
conv->read( importing data = content len = len ).
 
struct2-c1 = content.