01-07-2008 4:16 PM
Hi all,
I am trying to correct a unicode error.
this is the error, when i try to activate the code.
"The work area (or internal table) "w_inttab" is not flat, or
contains reference or internal tables as components . components.
components. components. components."
and the error is due to this code line:
" MODIFY zdtab FROM TABLE w_inttab."
the structure of W_ZCONSMPKG is"
DATA: BEGIN OF w_inttab OCCURS 0.
INCLUDE STRUCTURE zdtab.
DATA: msgs LIKE message_body OCCURS 0,
END OF w_inttab.
can anyone please tell me how to rectify this?
Thanks in advance.
goldie.
01-07-2008 4:21 PM
Try to move the final details into a internal table that has same structure as zdtab and then use Modify.
Currently your internal table is not a flat structure as it has another message component. This is causing the error.
-Cheers
01-07-2008 4:28 PM
hi,
it happens evry time you use a nasted structure and a field is also a table or data reference
try this way.
>data: ls_zdtab type zdtab.
>loop at w_inttab.
>move-corresponding w_inttab to ls_zdtab.
>modify zdtab from ls_zdtab.
>endloop.
01-07-2008 4:29 PM
Hi,
Declare a work area for w_inttab
types : begin of t_zdtab.
include structure zdtab.
types : end of t_zdtab.
data : w_inttab type t_zdtab.
a®