<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: sy-index sy-tabix in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-index-sy-tabix/m-p/3402622#M817044</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;SY-TABIX &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current line of an 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 hashed tables.&lt;/P&gt;&lt;P&gt;SY-INDEX&lt;/P&gt;&lt;P&gt;the loop is at which index will be given by sy-index.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Feb 2008 08:18:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-21T08:18:00Z</dc:date>
    <item>
      <title>sy-index sy-tabix</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-index-sy-tabix/m-p/3402618#M817040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can any body tell me diff bw sy-tabex and sy-index. pls&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 07:51:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-index-sy-tabix/m-p/3402618#M817040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T07:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: sy-index sy-tabix</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-index-sy-tabix/m-p/3402619#M817041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SY-INDEX is used to describe the number of iteration with in the DO..ENDDO, WHILE ...ENDWHILE....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SY-TABIX is used to define the iteration with in the internal table like between LOOP AT &amp;amp; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Bujji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 07:54:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-index-sy-tabix/m-p/3402619#M817041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T07:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: sy-index sy-tabix</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-index-sy-tabix/m-p/3402620#M817042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;SY-TABIX&lt;/STRONG&gt;  :   gives    the  Current line of an internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;example&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SEARCH T FOR 're'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE T INDEX SY-TABIX.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SY-INDEX&lt;/STRONG&gt; :    gives the  Number of loop passes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;example&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 5 TIMES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: SY-INDEX.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Feb 21, 2008 5:44 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 08:07:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-index-sy-tabix/m-p/3402620#M817042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T08:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: sy-index sy-tabix</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-index-sy-tabix/m-p/3402621#M817043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudheer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-tabix : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sy-tabix is used to find the current line in the internal table; it&amp;#146;s a current line index, Table Index. This signifies the number of table index. Each row of a table has certain index or counter. The value of sy-tabix for the last entry would be equivalent to number of table entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-index :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-INDEX is the number of Iterations for a loop.&lt;/P&gt;&lt;P&gt;SY-INDEX contains the number of loop passes in DO and WHILE loops, including the current loop pass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 08:12:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-index-sy-tabix/m-p/3402621#M817043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T08:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: sy-index sy-tabix</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-index-sy-tabix/m-p/3402622#M817044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;SY-TABIX &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Current line of an 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 hashed tables.&lt;/P&gt;&lt;P&gt;SY-INDEX&lt;/P&gt;&lt;P&gt;the loop is at which index will be given by sy-index.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 08:18:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-index-sy-tabix/m-p/3402622#M817044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T08:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: sy-index sy-tabix</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-index-sy-tabix/m-p/3402623#M817045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sy-tabix is used to find the current line in the internal table; it&amp;#146;s a current line index, Table Index. This signifies the number of table index. Each row of a table has certain index or counter. The value of sy-tabix for the last entry would be equivalent to number of table entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-INDEX is the number of Iterations for a loop. bascially DO - ENDO .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-INDEX is not equal to SY-TABIX. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;some more info.............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-TABIX:&lt;/P&gt;&lt;P&gt;Current line in an internal table. With the following statements SY-TABIX is set for index tables. With hashed tables, SY-TABIX is not filled or it is set to 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 08:39:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-index-sy-tabix/m-p/3402623#M817045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T08:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: sy-index sy-tabix</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-index-sy-tabix/m-p/3402624#M817046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-TABIX is used as the index of an internal table, which means that each time thru the LOOP it is incremented by 1. Simularly, &lt;/P&gt;&lt;P&gt;SY-INDEX is incremented each time thru the loop of a DO loop. If you want to count the number of internal table records, you can use the DESCRIBE TABLE statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 09:00:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-index-sy-tabix/m-p/3402624#M817046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T09:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: sy-index sy-tabix</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-index-sy-tabix/m-p/3402625#M817047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SY-INDEX&lt;/P&gt;&lt;P&gt;In a loop, a statement block is executed several times in succession. There are four kinds of loops in ABAP: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unconditional loops using the DO statement. &lt;/P&gt;&lt;P&gt;Conditional loops using the WHILE statement. &lt;/P&gt;&lt;P&gt;Loops through internal tables and extract datasets using the LOOP statement. &lt;/P&gt;&lt;P&gt;Loops through datasets from database tables using the SELECT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This section deals with DO and WHILE loops. SELECT is an Open SQL statement, and is described in the Open SQL section. The LOOP statement is described in the sections on internal tables and extract datasets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unconditional Loops&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To process a statement block several times unconditionally, use the following control structure: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO [&amp;lt;n&amp;gt; TIMES] [VARYING &amp;lt;f&amp;gt; FROM &amp;lt;f1&amp;gt; NEXT &amp;lt;f 2&amp;gt;]. &lt;/P&gt;&lt;P&gt;  &amp;lt;Statement block&amp;gt;&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not specify any additions, the statement block is repeated until it reaches a termination statement such as EXIT or STOP (see below). The system field SY-INDEX contains the number of loop passes, including the current loop pass. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-TABIX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the LOOP statement to process special loops for any internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT &amp;lt;itab&amp;gt; &amp;lt;result&amp;gt; &amp;lt;condition&amp;gt;.&lt;/P&gt;&lt;P&gt;  &amp;lt;statement block&amp;gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This reads the lines of the table one by one as specified in the &amp;lt;result&amp;gt; part of the LOOP statement. You can then process them in the statements within the LOOP... ENDLOOP control structure. You can either run the loop for all entries in the internal table, or restrict the number of lines read by specifying a &amp;lt;condition&amp;gt;. Control level processing is allowed within the loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sequence in which the lines are processed depends on the table type: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Standard tables and sorted tables&lt;/P&gt;&lt;P&gt;The lines are processed according to the linear index. Within the processing block, the system field SY-TABIX contains the index of the current line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hashed tables&lt;/P&gt;&lt;P&gt;As long as the table has not been sorted, the lines are processed in the order in which you added them to the table. Within the processing block, the system field SY-TABIX is always 0.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 09:06:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-index-sy-tabix/m-p/3402625#M817047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T09:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: sy-index sy-tabix</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-index-sy-tabix/m-p/3402626#M817048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sy-tabix: NO of record in the internal table&lt;/P&gt;&lt;P&gt;Sy-index: index number of record which is currently executed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: itab contains values 1 to 10.&lt;/P&gt;&lt;P&gt;loop at itab into wa_itab.&lt;/P&gt;&lt;P&gt;write: wa_itab-field1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;suppose if the loop is getting executed for the 3rd time, then the sy-index will store the value as 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab into wa_itab where field1 = 3.&lt;/P&gt;&lt;P&gt;after execution of this statement, the value of sy-index will be 3.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Feb 2008 05:56:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-index-sy-tabix/m-p/3402626#M817048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-22T05:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: sy-index sy-tabix</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-index-sy-tabix/m-p/3402627#M817049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 06:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-index-sy-tabix/m-p/3402627#M817049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-07T06:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: sy-index sy-tabix</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sy-index-sy-tabix/m-p/3402628#M817050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Jan 2015 06:59:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sy-index-sy-tabix/m-p/3402628#M817050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-07T06:59:44Z</dc:date>
    </item>
  </channel>
</rss>

