‎2007 Oct 23 8:30 PM
Hi Guys,
I am trying to copy a work area to a variable, and it is giving me error
Error: "GV_RECORD" and 'GW_DATA" are not mutually convetible in Unicode program...
My declaration is a follows:
TYPES: BEGIN OF gt_data,
pernr TYPE p0001-pernr, "Associate ID
amount TYPE p0015-betrg, "Amount
END of gt_data.
DATA: GV_Record(255) type c.
DATA: GW_data type gt_data.
gv_record = gw_data.
Please help me to fix this.
Thanks,
mini
‎2007 Oct 23 8:34 PM
Hi,
Try this way
class cl_abap_container_utilities definition load.
call method cl_abap_container_utilities=>fill_container_c
exporting
im_value = GV_RECORD
importing
ex_container = GW_data
exceptions
illegal_parameter_type = 1
others = 2.
After this call GW_data contains data from GV_RECORD
a®
‎2007 Oct 23 8:34 PM
In Unicode...Both structure and field must have the same "structure" and lenght...
You can do this...
move gw_data-pernr to GV_Record.
Or better, concatenate both fields in the variable...
Greetings,
Blag.
‎2007 Oct 23 8:34 PM
Hi,
Try this way
class cl_abap_container_utilities definition load.
call method cl_abap_container_utilities=>fill_container_c
exporting
im_value = GV_RECORD
importing
ex_container = GW_data
exceptions
illegal_parameter_type = 1
others = 2.
After this call GW_data contains data from GV_RECORD
a®