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: 

Assign string to various fields of internal table

0 Kudos


hello,

i have  one string : lt_str  TYPE STANDARD TABLE OF string.

And there is one structure as:

begin of ty_data

field1

field2

field 3

end of ty_data.

* table declaration:

gt_data  TYPE STANDARD TABLE OF ty_data   WITH HEADER LINE.

In old ECC we have write like gt_data = lt_str. Now we are shifting it to new version but it is not working in ECC 6.0.It is giving unicode error regarding conversion.

In our case there are many structure like ty_data  but we want unique solution to gt_data = lt_str.

so how can i do it?

1 REPLY 1

Former Member
0 Kudos

Hi Tushar,

Please refer below link for all commoun Unicode conversion error.

http://wiki.scn.sap.com/wiki/display/SI/UCCHECK+(Unicode+Complaince)+-+Common+Errors+and+Solutions

Move string to Structure:

call method cl_abap_container_utilities=>read_container_c

exporting

  im_ container = data_string

importing

  ex_ value = struc_umsetz

exceptions

illegal_parameter_type = 1

others = 2.

Regrads,

Jyoti Singh