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

Regarding Select Query

Former Member
0 Likes
789

Hi Experts,

data: itab1 type table of i with header line.

if i specify type table of i as above, what will be the itab's type?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
771

It is of type i :).

Regards,

Atish

7 REPLIES 7
Read only

Former Member
0 Likes
772

It is of type i :).

Regards,

Atish

Read only

0 Likes
771

usually we define like 'type table of dbtable'.

dbtable in this case will be a data base table.

here we are specifying type i....this means what???

Read only

0 Likes
771

Hi,

it may be a structure also .

Regards

Deepak.

Read only

0 Likes
771

in this case i can be a DB table, structure or a table type defined earlier in the code.

Revert back if you have further query.

Reward points if useful.

Regards,

Atish

Read only

0 Likes
771

Hi,

here I means integer type.

ur internal table itab will contain one column type integer.

rgds,

bharat.

Read only

0 Likes
771

Hi,

Here 'i' means integer type.

the statement :

data : itab1 type table of i with header line.

means that internal table itab1 has one column of type integer. The following example will make you things more clear.

REPORT ZTEST.

data : itab1 type table of i with header line.

itab1 = 6.

append itab1.

itab1 = 7.

append itab1.

loop at itab1.

write 😕 itab1.

endloop.

The output of this report will be : 6

7

I hope this would make things clear to you.

Read only

Former Member
0 Likes
771

Hi,

Then it will be a vector (one column) and will have only one col with type I.

Jogdand M B