‎2008 Feb 18 8:29 PM
I am having a syntax check problem in my program.
Code for the same,
constants: c_tab type x value '09'. "tab character!!!
field-symbols: <f_separator>.
assign c_tab to <f_separator> type 'C'.The Error is ,
The length of "C_TAB" in bytes must be a multiple of the size of a Unicode character (regardless of the size of the Unicode character).
‎2008 Feb 18 9:57 PM
‎2008 Feb 18 9:57 PM
‎2008 Feb 18 10:12 PM
can you please elaborate about the correction.
Are you suggesting to change the declaration.
Raju.
‎2008 Feb 19 12:53 AM
Will try to explain what Tomasz what advicing you:
Current Declaration:
>constants: c_tab type x value '09'. "tab character!!!
In Unicode enabled systems or Unicode Check active programs, we have few stricter syntax checks which result if errors compared to earlier mechanisms.
So for above declaration, you can define the same as a character field as below:
Change to:
>constants: c_tab type C value cl_abap_char_utilities=>horizontal_tab.
Now you can use the same. Value of both definitions is same.
Regards
Eswar