Skip to Content
0
Former Member
Jan 12, 2007 at 05:26 PM

Internal Table Problem

53 Views

Hi All,

I am having 9 internal tables as posted below with different fields, and one final internal table which contains all the fields containd by the 9 internal tables,

I want to append the data of the 9 internal tables to the final internal table ,

suggest what is the way or I have to change the fields in the internal table.

DATA:BEGIN OF it_stpo OCCURS 0,

menge LIKE stpo-menge,

postp LIKE stpo-postp,

meins LIKE stpo-meins,

aennr LIKE stpo-aennr,

pswrk LIKE stpo-pswrk,

stlnr LIKE stpo-stlnr,

stlkn LIKE stpo-stlkn,

END OF it_stpo.

DATA:BEGIN OF it_makt OCCURS 0,

maktx LIKE makt-maktx,

matnr LIKE makt-matnr,

END OF it_makt.

DATA:BEGIN OF it_mast OCCURS 0,

matnr LIKE mast-matnr,

werks LIKE mast-werks,

stlal LIKE mast-stlal,

stlnr LIKE mast-stlnr,

andat LIKE mast-andat,

annam LIKE mast-annam,

totprc TYPE i,

END OF it_mast.

DATA:BEGIN OF it_marc OCCURS 0,

lgpro LIKE marc-lgpro,

matnr LIKE marc-matnr,

beskz LIKE marc-beskz,

END OF it_marc.

DATA:BEGIN OF it_mkol OCCURS 0,

slabs LIKE mkol-slabs,

matnr LIKE mkol-matnr,

sinsm LIKE mkol-sinsm,

END OF it_mkol.

DATA: BEGIN OF it_mbew OCCURS 0,

stprs LIKE mbew-stprs,

matnr LIKE mbew-matnr,

verpr LIKE mbew-verpr,

peinh LIKE mbew-peinh,

vmvpr LIKE mbew-vmvpr,

bwkey LIKE mbew-bwkey,

END OF it_mbew.

DATA:BEGIN OF it_mard OCCURS 0,

labst LIKE mard-labst,

matnr LIKE mard-matnr,

lgort LIKE mard-lgort,

insme LIKE mard-insme,

END OF it_mard.

DATA:BEGIN OF it_eord OCCURS 0,

lifnr LIKE eord-lifnr,

END OF it_eord.

DATA:BEGIN OF it_plpo OCCURS 0,

vgw03 LIKE plpo-vgw03,

END OF it_plpo.

DATA:BEGIN OF it_final OCCURS 0 ,

menge LIKE stpo-menge,

matnr LIKE mast-matnr,

werks LIKE mast-werks,

postp LIKE stpo-postp,

meins LIKE stpo-meins,

aennr LIKE stpo-aennr,

pswrk LIKE stpo-pswrk,

vgw03 LIKE plpo-vgw03,

lifnr LIKE eord-lifnr,

labst LIKE mard-labst,

lgort LIKE mard-lgort,

insme LIKE mard-insme,

stprs LIKE mbew-stprs,

verpr LIKE mbew-verpr,

peinh LIKE mbew-peinh,

stlal LIKE mast-stlal,

vmvpr LIKE mbew-vmvpr,

bwkey LIKE mbew-bwkey,

slabs LIKE mkol-slabs,

sinsm LIKE mkol-sinsm,

lgpro LIKE marc-lgpro,

beskz LIKE marc-beskz,

stlnr LIKE stpo-stlnr,

totprc TYPE i,

stlkn LIKE stpo-stlkn,

END OF it_final.