Application Development and Automation 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: 
Read only

Data Declaration Issue

Former Member
0 Likes
403

Hello,

I know this is a trivial issue, but I greatly appreciate your help.

I am declaring an internal table like this:

data: begin of t_data1.
       include structure /z_dvmaster.
data:  celltab type lvc_t_styl.
data: end of t_data1.

data: t_data like standard table of t_data1.

 select *
   into table t_data
   from z_dvmaster.

However, I am getting error "The work area (or internal table) "T_DATA" is not flat, or contains

reference or internal tables as components."

Can you please let me know how to correct this?

Thanks.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
367

Hi,

try this


 select *
   into corresponding fields of table t_data
   from z_dvmaster.

regards Marcel

2 REPLIES 2
Read only

Former Member
0 Likes
368

Hi,

try this


 select *
   into corresponding fields of table t_data
   from z_dvmaster.

regards Marcel

Read only

0 Likes
367

Thanks a lot. It worked.