What is the difference between SY-TABIX and SY-INDEX

Showing Answers 1 - 30 of 30 Answers

swapna

  • Sep 26th, 2007
 

The differance between SY-tabix and SY-INDEX is

SY-TABIX : used for record count of internal tables.
SY-INDEX : used for loop counter.

vamsi Krishna

  • Nov 27th, 2007
 

Sy-tabix: NO of record in the internal table
Sy-index: index number of record which is currently executed.
eg: itab contains values 1 to 10.
loop at itab into wa_itab.
write: wa_itab-field1.
endloop.
suppose if the loop is getting executed for the 3rd time, then the sy-index will store the value as 3.

read table itab into wa_itab where field1 = 3.
after execution of this statement, the value of sy-index will be 3.

  Was this answer useful?  Yes

Sy-tabix : Is used to get no of recors exiting in the Internal table. This can be used with Loop---EndLoop or with Describe table <tableName>.

Sy-Index : Is used with General Loops; it gives noof records executed, It acts like Loop Iteration Cunter.

  Was this answer useful?  Yes

mahe_tumati

  • Oct 19th, 2008
 

sy-tabix : it is used in internal table loops.it gets the no.of records in the internal table.
sy-index : it is used in simple loops like(do......enddo).it gets the particular record number.

   regards.
MAHESH.T

  Was this answer useful?  Yes

abc

  • Jun 25th, 2012
 

Both are same. the difference is sy-tabix will use in loop....endloop but sy-index will use in do....end do.both used for getting the no of currently executing loop.

  Was this answer useful?  Yes

dipankar

  • Apr 29th, 2014
 

SY-TABIX USED WHEN USING INTERNAL TABLE WITH IN THE LOOP. SYINDEX USED DO..ENDDO WITH IN LOOP.

  Was this answer useful?  Yes

Rahul

  • Sep 4th, 2014
 

SY-TABIX : Stores current line of an internal table
SY-INDEX : loop iteration counter in do and while loops

  Was this answer useful?  Yes

kanika

  • May 6th, 2016
 

SY-TABIX : Denotes the current line of internal table.
SY-INDEX : Denotes number of loop passes.

  Was this answer useful?  Yes

pranay

  • Sep 4th, 2017
 

Then whats the value of sy-tabix?

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions