‎2008 Jul 08 2:56 PM
Hi All,
I'm getting an above error while appending a record from field-symbol work area to field-symbol internal table.
Please let me know how to resolve this.
Thanks & Regards
Santhosh
‎2008 Jul 08 3:00 PM
Hi
Probably they're pointing to 2 structures with different definitions.
Max
‎2008 Jul 08 3:05 PM
Hi,
try casting.
check this link:
http://help.sap.com/saphelp_nw2004s/helpdata/en/79/c55491b3dc11d5993800508b6b8b11/content.htm
Regards
Adil
‎2008 Jul 08 10:25 PM
Hello Santosh
Apparently the structures of your work area and that of your itab are not (exactly) the same. This kind of sloppy coding is no longer possible on a Unicode system.
You may try the following approach:
...
" <ls_workarea> : work area having structure A
" <ls_record>: line structure B of your itab
" <lt_itab>: itab having line structure B
CALL METHOD cl_abap_container_utilities=>read_container_c
EXPORTING
container = <ls_workarea>
IMPORTING
ex_... = <ls_record>.
APPEND <ls_record> TO <lt_itab>.
...
If this approach fails you may try to use a string variable as intermediate, i.e.
1. Move <ls_workarea> to LD_STRING (using static method FILL_CONTAINER_C)
2. Move LD_STRING to <ls_record> (using static method READ_CONTAINER_C)Regards
Uwe
‎2008 Jul 09 8:12 AM
Hi Uwe,
If u could explain with some good example, that would be more helpful to me.
Thanks & Regards
Santhosh
‎2008 Jul 09 8:19 AM
Hi,
Go to program attributes uncheck the Unicode cheks active there.
Once i was getting unicode error i did the same & it worked.
Hope this will also work for you.
Regards,
SUDHIR MANJAREKAR
‎2008 Jul 09 9:23 AM
Sorry Sir,
It wont work. Any suggestions.
Thanks & Regards
Santhosh