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

Hashed and sorted table

Former Member
0 Likes
413

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.

2 REPLIES 2
Read only

Former Member
0 Likes
393

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.

Read only

Former Member
0 Likes
393

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.