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

Former Member
0 Likes
1,149

I am trying to clean up our old programs to get ready for our unicode update. I ran into this error but I'm not sure how I should handle it. Does anyone have any ideas?

"Syntax check warning

After a structure enhancement, the semantics of the assignment or the comparison

may change."

Error line:

move bgr00 to wa.

More info:

wa(2500) type c.

Thanks,

David

Edited by: David Dockham II on Mar 28, 2008 2:22 PM

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
921

Hi,

Try this way


lass cl_abap_container_utilities definition load.

call method cl_abap_container_utilities=>fill_container_c
 exporting
   im_value = bgr00
 importing
   ex_container = wa
 exceptions
   illegal_parameter_type = 1
   others = 2.

5 REPLIES 5
Read only

Former Member
0 Likes
921

hi you need to declare the bgr00 as ..

data: begin of bgr00 occurs 0.

include structure <structure name>.

data: end of bgr00.

regards,

venkat.

Read only

Former Member
0 Likes
921

Hi

In a unicode system it can't use the MOVE statament to transfer the data from a structure (like BGR00) to a workarea (like WA).

U should transfer every single value: field by field.

Anyway there are some methods to do that, see class like CLABAP in trx SE24.

Max

Read only

uwe_schieferstein
Active Contributor
0 Likes
921

Hello David

To transfer data between structured and unstructured variables under Unicode you can use the static methods of class CL_ABAP_CONTAINER_UTILITIES.

FILL_CONTAINER_C	Fill Container of Type C or STRING with Content
READ_CONTAINER_C	Read Container of Type C or STRING

Recommended reading: [ABAP and Unicode|http://help.sap.com/saphelp_nw04/helpdata/en/62/3f2cadb35311d5993800508b6b8b11/frameset.htm]

Regards

Uwe

Read only

former_member194669
Active Contributor
0 Likes
922

Hi,

Try this way


lass cl_abap_container_utilities definition load.

call method cl_abap_container_utilities=>fill_container_c
 exporting
   im_value = bgr00
 importing
   ex_container = wa
 exceptions
   illegal_parameter_type = 1
   others = 2.

Read only

Former Member
0 Likes
921

it looks like you are working in ECC environment ..

there is a problem with your declaration...

do not declare it as TABLES:.. rather declare it as

data: wa_11 type <table name>

thanks

Krishnan