‎2008 Apr 21 11:18 PM
DATA: FTAB TYPE SORTED TABLE OF F
WITH NON-UNIQUE KEY TABLE LINE,
ITAB TYPE HASHED TABLE OF I
WITH UNIQUE KEY TABLE LINE,
FL TYPE F.
DO 3 TIMES.
INSERT SY-INDEX INTO TABLE ITAB.
ENDDO.
FTAB = ITAB.
LOOP AT FTAB INTO FL.
WRITE: / FL.
ENDLOOP.
The output is:
1.000000000000000E+00
2.000000000000000E+00
3.000000000000000E+00
What does it mean by table of i?
and how itab of type i is assigned to ftab of type f?
Plz clarify me doubt.
‎2008 Apr 22 3:43 AM
Hi,
Table of I means it creates an internal table body which allows the values of type I.
We can assign Interger type values to Float type.
So, The contents of the Itab are are copied into ftab.It comes into type-casting.
We can also assign the values of character to numeric.
I think it is useful for you.
‎2008 Apr 22 4:47 AM
Hi,
1. Internal table with body will be Created if you Declare table of I.
2. So, The contents of the Itab will be copied to ftab.
Reward iF Helpfull,
Naresh.