Skip to Content
0
Feb 01, 2008 at 04:10 AM

Declaration of itab

793 Views

Hi

I had declared an internal table as follows

data: begin of itab_grid occurs 0,

reswk like ekko-reswk,

gdc_waers like ekko-waers,

gdc_bsart like ekKO-bsart,

gdc_bwtar like ekpo-bwtar,

gdc_matkl like mara-matkl,

gdc_wgbez like t023t-wgbez,

gdc_sobsl like marc-sobsl,

end of itab_grid.

Can I declare one more internal table as the above one like

data:itab1 like itab_gdc occurs 0 with header line.

or

is this the best way.

types: begin of itab_grid,

reswk type ekko-reswk,

gdc_waers type ekko-waers,

gdc_bsart type ekKO-bsart,

gdc_bwtar type ekpo-bwtar,

gdc_matkl type mara-matkl,

gdc_wgbez type t023t-wgbez,

gdc_sobsl type marc-sobsl,

end of itab_grid.

data:itab1 type itab_gdc occurs 0 with header line

data:itab2 type itab_gdc occurs 0 with header line

Thanks,

K.Kiran.