‎2009 Jul 27 11:24 AM
Hi all,
in SAP 4.6 i could write this :
"----
DATA : l_data(500).
DATA : BEGIN OF gs_part,
pernr TYPE persno,
atext TYPE anrex,
nachn TYPE nachn,
vorna TYPE vorna,
serv(33) TYPE c,
ccua(8) TYPE c,
stras(38) TYPE c,
...
END OF gs_part.
MOVE l_data TO gs_part.
"----
Now in ECC 6 i can't do that, so how can i change the MOVE code ?
Thanks a lot for your help.
‎2009 Jul 27 11:33 AM
Hi,
Check this method CL_ABAP_CONTAINER_UTILITIES=>READ_CONTAINER_C
call method CL_ABAP_CONTAINER_UTILITIES=>READ_CONTAINER_C
exporting IM_CONTAINER = <DATA>
importing EX_VALUE = <Structure>
exceptions others = 0.
‎2009 Jul 27 11:31 AM
Hi,
You will have to make use of length and offset or use concatenate statement with offset.
The reason why it is not allowed is because of unicode.
Regards,
Ankur Parab
‎2009 Jul 27 11:33 AM
Hi..,
You can do it....
What ever the value there in first variable or structure will be moved to first component of target strusture.
If you have any queries on this... Let us know exactly your sourse and target...
Thanks,
Naveen Inuganti.
‎2009 Jul 27 11:33 AM
Hi,
Check this method CL_ABAP_CONTAINER_UTILITIES=>READ_CONTAINER_C
call method CL_ABAP_CONTAINER_UTILITIES=>READ_CONTAINER_C
exporting IM_CONTAINER = <DATA>
importing EX_VALUE = <Structure>
exceptions others = 0.
‎2009 Jul 27 1:02 PM