‎2007 May 21 5:36 AM
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?
‎2007 May 21 5:39 AM
‎2007 May 21 5:39 AM
‎2007 May 21 5:45 AM
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???
‎2007 May 21 5:49 AM
‎2007 May 21 5:50 AM
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
‎2007 May 21 5:50 AM
Hi,
here I means integer type.
ur internal table itab will contain one column type integer.
rgds,
bharat.
‎2007 May 21 5:58 AM
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.
‎2007 May 21 6:04 AM
Hi,
Then it will be a vector (one column) and will have only one col with type I.
Jogdand M B