2008 Mar 28 1:21 PM
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
2008 Mar 28 1:39 PM
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.
a®
2008 Mar 28 1:25 PM
hi you need to declare the bgr00 as ..
data: begin of bgr00 occurs 0.
include structure <structure name>.
data: end of bgr00.
regards,
venkat.
2008 Mar 28 1:26 PM
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
2008 Mar 28 1:29 PM
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 STRINGRecommended reading: [ABAP and Unicode|http://help.sap.com/saphelp_nw04/helpdata/en/62/3f2cadb35311d5993800508b6b8b11/frameset.htm]
Regards
Uwe
2008 Mar 28 1:39 PM
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.
a®
2008 Mar 28 2:25 PM
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