‎2008 Feb 06 5:02 PM
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.
‎2008 Feb 06 5:15 PM
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.
a®