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

syntax for internal tables with same structure

Former Member
0 Likes
485

Hi,

I would like to knwo what is the syntax to declare a table that has the same structure as the exisiting one?

Say for example:

Begin of it_tab,

Data (1000) type c,

End of it_tab.

Now I would like to declare IT_Tab2 with the structure of it_tab, how should I do that? Thanks!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
461

hi,

data: it_tab2 type standard table of it_tab.

reward if helpful.

regards,

keerthi.

3 REPLIES 3
Read only

Former Member
0 Likes
462

hi,

data: it_tab2 type standard table of it_tab.

reward if helpful.

regards,

keerthi.

Read only

Former Member
0 Likes
461

HI Anyi,

DATA <itab> TYPE|LIKE <tabkind> OF <linetype> WITH <key>

[INITIAL SIZE <n>]

[WITH HEADER LINE].

Regards,

Laxmi.

Read only

Former Member
0 Likes
461

Another way:

data: itab2 like itab1 occurs 0.

Regards,

ravi