‎2008 Aug 18 8:33 AM
Hi ,
I got an unicode error in the following code , the line is shown in bold.
form enc_char using char
changing enchar.
field-symbols : <n> type x,
<c> type c .
data : a type i.
data : x type x.
assign char to <n> casting.
move <n> to a.
a = a + 22.
move a to x.
assign x to <c> casting type c.
move <c> to enchar.
endform.
And I am getting the error message as 'The length of "X" in bytes must be a multiple of the size of a Unicode
character, regardless of the size of the Unicode character.
How to rectify the error.
Regards,
Kannan
‎2008 Aug 18 8:36 AM
ASSIGN CRTLZ TO <F> TYPE 'C'.
InCorrect
ASSIGN crtlz TO <f> casting TYPE (L_type)
data: l_type(10) type c value 'CHAR02'.
Correct
Hope this helps!