Skip to Content
0
Former Member
May 29, 2007 at 01:33 PM

hi doubt regarding internal tables

15 Views

hi,

I have one doubt regarding internal tables.

DATA:BEGIN OF LINE,

COL1,

COL2,

END OF LINE.

DATA:ETAB LIKE TABLE OF LINE WITH HEADER LINE,

FTAB LIKE TABLE OF LINE.

LINE-COL1 = 'A'. LINE-COL2 = 'B'.

APPEND LINE TO ETAB.

MOVE ETAB[] TO FTAB.

LOOP AT FTAB INTO LINE.

WRITE: / LINE-COL1, LINE-COL2.

ENDLOOP.

This is the example given in sap help.

1)My doubt is in the above code,when we are using APPEND LINE TO ETAB,

contents of LINE goes to ETAB header line or body of ETAB?

If it goes in to header line then why MOVE ETAB[] to FTAB is wrote?

Please clarify this doubt..

Thank u very much.