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 structure..

Former Member
0 Kudos

hi,

I have created a structure1 for itab1.

now i want to create structure2 ( with structure1 fields + some extra fields).

so, how to include structure1 to structure2...

sample code plz..

Thank u.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

types: begin of ty_itab,

matnr type mara-matnr,

mtart type mara-mtart,

end of ty_itab.

types: begin of ty_itab1.

include type ty_itab.

types: werks type marc-werks,

end of ty_itab1.

data: it_itab type table of ty_itab,

it_itab1 type table of ty_itab.

regards,

Santosh Thorat

3 REPLIES 3

Former Member
0 Kudos

Hi,

DATA:Begin of structure2,

include of structure1, // check it here syntax.

whateever the extra fields addit in this,

End of structure2.

Please reward points,if it is useful.

regards,

satish.

Former Member
0 Kudos

Hi,

types: begin of ty_itab,

matnr type mara-matnr,

mtart type mara-mtart,

end of ty_itab.

types: begin of ty_itab1.

include type ty_itab.

types: werks type marc-werks,

end of ty_itab1.

data: it_itab type table of ty_itab,

it_itab1 type table of ty_itab.

regards,

Santosh Thorat

Former Member
0 Kudos

data:begin of struct1,

a type i,

b type i,

end of struct1.

DATA:Begin of struct2,

include struct1,

<<<add extra fields here>>>,

End of struct2.