Register Login

Difference between Sy-tabix and Sy-index

Updated May 18, 2018

Sy-tabix vs Sy-index

Sy-tabix is used to find the current line in the internal table; it’s a current line index. Whereas sy-index in used to find the number of current pass in the loop statement.


  • 29 Sep 2015 11:48 am sunanda Best Answer


    sy-tabix = Index of Internal Tables

    set by commands processing internal tables (e.g. READ, LOOP)

    It contains the nr/index of the last line accessed for standard or sorted tables. In case of hashed tables it is set to 0

    since hashed tables are no index tables, they use a hash administration.

    sy-index = Loop Index.

    set by DO and WHILE loops. contains the number of the loop passes including the current pass.

  • 12 Nov 2010 6:13 pm Guest Helpful Answer
    Sy-tabix -> Current line of the internal table. SY-TABIX is set by the statements below, but only for index tables.The field is either not set or is set to 0 for hash tables.

    APPEND sets SY-TABIX to the index of the last line of the table, that is, it contains the overall number of entries in the table.

    COLLECT sets SY-TABIX to the index of the existing or inserted line in the table.

    LOOP AT sets the SY-TABIX to the index of the current line at the beginning of each loop lass.At the end of loop, SY-TABIX is reset to the value that it had before entering the loop.

    READ TABLE sets SY-TABIX to the index of the table line read.If you use a binary search and system doesn't a line SY-TABIX contains the total no. of lines.
  • 01 Mar 2016 6:23 pm Jayati Saha Helpful Answer

    sy-tabix is nothing but the index or row number of an internal table.

    Suppose, you loop through an internal table , so the sy-tabix will be set as the row number of the table.

    when control goes to the twentieth record of the table, then sy-tabix will hold value 20. 

    On otherhand, sy-index denotes the number of processing for any loop statements like do, while etc. 


  • 30 Aug 2008 5:39 pm Guest
    sy-index : gives the count of number of iterations performed on itab
  • 16 Jul 2009 5:24 am Guest
    SY-TABIX : used for record count of internal tables.
    SY-INDEX : used for loop counter.