<?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: indexes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/indexes/m-p/2128404#M447117</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 actualized within a DO ... ENDDO cycle.&lt;/P&gt;&lt;P&gt;SY-TABIX is actualized within LOOP ... ENDLOOP, and it points to the actual record in the internal table.&lt;/P&gt;&lt;P&gt;SY-DBCNT contains the number, how many records have you selected into an internal table, after a SELECT command. If it is 0, the no records were found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamás&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Tamás Nyisztor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Apr 2007 10:40:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-04T10:40:18Z</dc:date>
    <item>
      <title>indexes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/indexes/m-p/2128403#M447116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi!&lt;/P&gt;&lt;P&gt;diffrence between sy-index, sy-tabix, sy-dbcnt.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 10:38:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/indexes/m-p/2128403#M447116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T10:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: indexes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/indexes/m-p/2128404#M447117</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 actualized within a DO ... ENDDO cycle.&lt;/P&gt;&lt;P&gt;SY-TABIX is actualized within LOOP ... ENDLOOP, and it points to the actual record in the internal table.&lt;/P&gt;&lt;P&gt;SY-DBCNT contains the number, how many records have you selected into an internal table, after a SELECT command. If it is 0, the no records were found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Tamás&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Tamás Nyisztor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 10:40:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/indexes/m-p/2128404#M447117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T10:40:18Z</dc:date>
    </item>
    <item>
      <title>Re: indexes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/indexes/m-p/2128405#M447118</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;&amp;lt;b&amp;gt;SY-IND&amp;lt;/b&amp;gt;EX :: it is the SYSTEM FIELD THAT gives the  of current loop pass in DO or while loops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SY-TABIX&amp;lt;/b&amp;gt;:: It is the loop counter  in &lt;/P&gt;&lt;P&gt;         LOOP AT..ITAB&lt;/P&gt;&lt;P&gt;         ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  APPEND sets SY-TABIX to the index of the last table row, that is the total number of entries in the target table.&lt;/P&gt;&lt;P&gt;COLLECT sets SY-TABIX to the index of the existing or appended table row. With hashed tables, SY-TABIX is set to 0.&lt;/P&gt;&lt;P&gt;LOOP AT sets SY-TABIX to the index of the current table row at the beginning of every loop pass. After leaving a loop, SY-TABIX is set to the value it had before entering the loop. With hashed tables, SY-TABIX is set to 0.&lt;/P&gt;&lt;P&gt;READ TABLE sets SY-TABIX to the index of the table row read. If no row is found with binary search while reading, SY-TABIX contains the index of the next-highest row or the total number of rows +1. If no row is found with linear search while reading, SY-TABIX is undefined. &lt;/P&gt;&lt;P&gt;SEARCH &amp;lt;itab&amp;gt; FOR sets SY-TABIX to the index of the table row, in which the search string was found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;SY-DBCNT&amp;lt;/b&amp;gt;:: no. of records processed in database table after a query.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;SY-DBCNT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL statements set the content of SY-DBCNT to the number of database lines processed. With SELECT loops in Open SQL, SY-DBCNT is set after the ENDSELECT statement. In Native SQL, SY-DBCNT is set after the ENDEXEC statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE sets SY-DBCNT to the number of lines deleted.&lt;/P&gt;&lt;P&gt;FETCH sets SY-DBCNT to the number of lines already read by the current cursor.&lt;/P&gt;&lt;P&gt;INSERT sets SY-DBCNT to the number of lines inserted.&lt;/P&gt;&lt;P&gt;MODIFY sets SY-DBCNT to the number of lines processed.&lt;/P&gt;&lt;P&gt;UPDATE sets SY-DBCNT to the number of lines changed.&lt;/P&gt;&lt;P&gt;Return Value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rammohan Nagam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Rammohan Nagam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 10:41:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/indexes/m-p/2128405#M447118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T10:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: indexes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/indexes/m-p/2128406#M447119</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: Loops, Current Loop Pass&lt;/P&gt;&lt;P&gt;sy-tabix: Internal Table, Current Row Index&lt;/P&gt;&lt;P&gt;sy-dbcnt: DB operations, number of table lines processed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award if helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 10:41:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/indexes/m-p/2128406#M447119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T10:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: indexes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/indexes/m-p/2128407#M447120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SY-INDEX --- When using loops like DO... ENDO .. WHILE , other than internal tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO  5 times.&lt;/P&gt;&lt;P&gt;  write : / sy-index.&lt;/P&gt;&lt;P&gt;ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-TABIX.. When processing internal tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;  write : / sy-tabix.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-DBCNT..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  number of records in database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * from ZTABLE...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here SY-DBCNT will store the number of records&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Apr 2007 10:42:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/indexes/m-p/2128407#M447120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-04T10:42:38Z</dc:date>
    </item>
  </channel>
</rss>

