08-21-2007 7:32 AM
what is the use of system variable sy-tabix.
it give no of rows in table r anyother value.
thanks in advance.
08-21-2007 7:36 AM
Sy-tabix is used to find the current line in the internal table; its a current line index.
Where as if you need the number of rows of table you can use the describe statement
data N type I.
describe table itab lines N.
N - gives thenumber of rows of an internal table.
Regards
Gopi
08-21-2007 7:35 AM
08-21-2007 7:35 AM
when u r looping an table then sy-tabix gives the row number of the current iteration.
08-21-2007 7:36 AM
Sy-tabix is used to find the current line in the internal table; its a current line index.
Where as if you need the number of rows of table you can use the describe statement
data N type I.
describe table itab lines N.
N - gives thenumber of rows of an internal table.
Regards
Gopi
08-21-2007 7:37 AM
Hi,
it a table index in the internal table.
Sy-tabix is used in case of internal table.When u want to enter or retrive data from internal table at that time it is updated.
Reward points if is useful.
08-21-2007 7:37 AM
08-21-2007 7:40 AM
Srini,
Some additional info:-SYST is the table which has all the system variables in SAP.
K.Kiran.
08-21-2007 8:17 AM
hi moorthy
try this,then you wil come to know wat is tabix........
REPORT ZTABIX.
tables : mara.
types : begin of ty_final,
matnr type matnr,
end of ty_final.
types : tt_final type standard table of ty_final.
data : wa_final type ty_final,
itab_final type tt_final.
select matnr from mara into table itab_final.
if sy-subrc = 0.
loop at itab_final into wa_final.
write: / sy-tabix,
wa_final-matnr.
endloop.
endif.
reward if useful......!!!!!!!
cheers
asha