‎2007 Feb 19 4:51 PM
Can anybody tell me , how to create an internal table same as another internal table.
Thanks in advance
KP
‎2007 Feb 19 4:55 PM
Hi,
Please try this.
DATA: ITAB2 TYPE ITAB1.
Regards,
Ferry Lianto
‎2007 Feb 19 4:55 PM
Hi,
Please try this.
DATA: ITAB2 TYPE ITAB1.
Regards,
Ferry Lianto
‎2007 Feb 19 4:55 PM
Hi,
<b>IF the original internal table is declared header line..</b>
Then you can use.
DATA: ITAB_NEW LIKE ITAB_OLD OCCURS 0 WITH HEADER LINE.
<b>If the original internal table is declared without header line...</b>
Then you have to use the line type of that internal table..
Ex:
DATA: ITAB_ORIG TYPE STANDARD TABLE OF MARA.
DATA: ITAB_NEW TYPE STANDARD TABLE OF MARA.
Thanks,
Naren
‎2007 Feb 19 4:58 PM
hai kp.
data : begin of itab occurs 0,
matnr like mara-matnr,
ersda like mara-ersda,
ernam like mara-ernam,
pstat like mara-pstat,
end of itab.
data : itab1 like itab.
here is the code .
i guess that will help u.
assign points if helpful