Application Development 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: 

unicode conversion issue

mohan_subramania
Explorer
0 Kudos

recently we done the unicode conversion, on that the following code makes error on

conversion from type X to C

please give the code to correct the error

DATA: l_hex(4) TYPE x VALUE '27',
        l_ft_sym(1),
        l_in_sym(1).
  FIELD-SYMBOLS: <l_fs>.
  ASSIGN l_hex TO <l_fs> TYPE 'C'.
  l_ft_sym = <l_fs>.

here - # symbol assigned unnecessarily to field-symbols.

1 ACCEPTED SOLUTION

former_member708410
Contributor
0 Kudos

hi,

DATA: l_hex(4) TYPE x VALUE '27',

l_ft_sym(1),

l_in_sym(1).

FIELD-SYMBOLS: <l_fs> type any.

ASSIGN l_hex TO <l_fs>.

l_ft_sym = <l_fs>.

write l_ft_sym.

Reward if helpful

Regards

1 REPLY 1

former_member708410
Contributor
0 Kudos

hi,

DATA: l_hex(4) TYPE x VALUE '27',

l_ft_sym(1),

l_in_sym(1).

FIELD-SYMBOLS: <l_fs> type any.

ASSIGN l_hex TO <l_fs>.

l_ft_sym = <l_fs>.

write l_ft_sym.

Reward if helpful

Regards