12-26-2007 4:19 AM
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.
12-26-2007 4:26 AM
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
12-26-2007 4:22 AM
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.
12-26-2007 4:26 AM
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
12-26-2007 5:40 AM
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.