Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

unicode error in MODIFY dtab

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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

mnicolai_77
Active Participant
0 Kudos

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.

former_member194669
Active Contributor
0 Kudos

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.