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: 

Internal table declaration

Former Member
0 Kudos

Hi,

I have a declaration like this :

data : begin of itab occurs 0,

a type i,

b type i,

end of itab.

data : itab2 type itab.

My doubt is whether itab2 would be a internal table or just a structure.

Regards,

Vishu.

3 REPLIES 3

Former Member
0 Kudos

sorry typo.........

it refer to a structure not to an internal table

Former Member
0 Kudos

Itab2 will not be internal table, it is just a structure.

Regards,

Satish

ferry_lianto
Active Contributor
0 Kudos

Hi,

ITAB2 is neither structure or internal table.

Please try this.


data: begin of itab occurs 0,
        a type i,
        b type i,
      end of itab.

data: itab2 like itab.      "ITAB2 is structure

or 

types: begin of itab,
         a type i,
         b type i,
       end of itab.
 
data: itab2 type table of itab.     "ITAB2 is an internal table
data: wa_itab2 like line of itab2.  "WA_ITAB2 is a structure   

Regards,

Ferry Lianto