Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Creating internal table

Former Member
0 Likes
490

Can anybody tell me , how to create an internal table same as another internal table.

Thanks in advance

KP

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
467

Hi,

Please try this.

DATA: ITAB2 TYPE ITAB1.

Regards,

Ferry Lianto

3 REPLIES 3
Read only

Former Member
0 Likes
468

Hi,

Please try this.

DATA: ITAB2 TYPE ITAB1.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
467

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

Read only

Former Member
0 Likes
467

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