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

Unicode Issue

Kinsbrunner
Active Contributor
0 Likes
335

Hi All!

We're updating system from non-Unicode to Unicode system.

I'm trying to pass a string into a structure but I'm getting the following error:

" 'T_TMP_SPEC' and 'T_SDATA-SDATA' are not mutually convertible in a Unicode program."

I read that I can use

CALL METHOD CL_ABAP_CONTAINER_UTILITIES=>FILL_CONTAINER_C

EXPORTING

IM_VALUE = T_SDATA-SDATA

IMPORTING

EX_CONTAINER = T_TMP_SPEC

T_SDATA-SDATA is the string and T_TMP_SPEC is the structure. When I try to activate the code I'm receiving the following error mesasge: ""T_TMP_SPEC" is not type-compatible with formal paramete 'EX_CONTAINER' "

¿Does anybody know what to do?

Thanks in advance.

Alejandro.

1 REPLY 1
Read only

former_member194669
Active Contributor
0 Likes
277

Please check this


tables mara.
data : wa_ymara type mara.

loop at i_ymara into wa_ymara.
  call method cl_abap_container_utilities=>fill_container_c
    exporting
      im_value               = wa_ymara
    importing
      ex_container           = i_yindx-vdata
    exceptions
      illegal_parameter_type = 1
      others                 = 2.
  append i_yindx.
endloop.