Skip to Content
0
Former Member
Mar 07, 2006 at 05:41 AM

populate data in internal table from another int table

14 Views

data : begin of itab_mat occurs 0,

werks like marc-werks,

matnr like marc-matnr,

end of itab_mat.

data : begin of itab_mat_desc occurs 0,

werks like marc-werks,

matnr like marc-matnr,

maktx like makt-maktx,

end of itab_mat_desc.

select-options : matnr for mbew-matnr.

select-options : werks for mbew-bwkey.

select * into corresponding fields of table itab_mat from marc where

matnr in matnr and werks in werks and lvorm = ' '.

SELECT * FROM makt INTO corresponding fields of ITAB_mat_desc FOR ALL

ENTRIES IN ITAB_mat WHERE MATNR = ITAB_mat-MATNR .

read table itab_mat comparing matnr .

move-corresponding itab_mat to itab_mat_desc.

break-point.

APPEND ITAB_mat_desc.

ENDSELECT.

i want to populate data in itab_mat_desc from itab_mat but its not working plz help...

regards..