<?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: difference in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3184295#M758180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ammu,&lt;/P&gt;&lt;P&gt;SY-INDEX&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;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;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;&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;&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;&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;&lt;/P&gt;&lt;P&gt;·        SEARCH  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;Plz Reward if useful,&lt;/P&gt;&lt;P&gt;Mahi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Dec 2007 09:21:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-18T09:21:57Z</dc:date>
    <item>
      <title>difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3184294#M758179</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;i want the difference between sy-index and sy-tabix&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls tell and solve my prob as early as possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i will give the points if ans is satisfied&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;bujji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 09:20:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3184294#M758179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T09:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3184295#M758180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ammu,&lt;/P&gt;&lt;P&gt;SY-INDEX&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;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;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;&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;&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;&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;&lt;/P&gt;&lt;P&gt;·        SEARCH  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;Plz Reward if useful,&lt;/P&gt;&lt;P&gt;Mahi.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 09:21:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3184295#M758180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T09:21:57Z</dc:date>
    </item>
    <item>
      <title>Re: difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3184296#M758181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;SY-INDEX -&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----" /&gt; Loops, Current Loop Pass &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It always gives the Current Loop pass Position. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SY-TABIX -&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="-----" /&gt; Internal Table, Current Row Index &lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It gives the Current Row  Position  in the Internal Table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 09:29:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3184296#M758181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T09:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: difference</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3184297#M758182</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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sy-index tell you the in which iteration you are ( I mean in number)&lt;/P&gt;&lt;P&gt;It will work for DO... ENDDO,  WHILE... END WHILE,, LOOP ...ENDLOOP.&lt;/P&gt;&lt;P&gt;suppose. when  you write the code as below.&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;Enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When Do loop is executed first time the sy-index value becomes 1. and for second time sy-index value becomes 2  so ..on&lt;/P&gt;&lt;P&gt;Initial value for sy-index is 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Same applies for While... Endwhile, Loop ....Endloop.&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;&lt;/P&gt;&lt;P&gt;Sy-tabix: will tell you the number of recors currently processing in the loop.&lt;/P&gt;&lt;P&gt; Suppose : when you write the code as below.&lt;/P&gt;&lt;P&gt;*lets suppose that itab has 10 records.&lt;/P&gt;&lt;P&gt;Loop at Itab into wa_tab.&lt;/P&gt;&lt;P&gt;.........&lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when loop executes first time SY-TABIX will have 1 for second time 2  so.....on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it does not contain the number of iteration Instaed it will contain the number of record currently processing in the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you conditions in the loop statement then it not necessary that loop executes for each and every record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop may execute for  5 th record or 10 th record based on condition (Lets suppose).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here loop executes two times only but SY_TABIX  will contains the values 5 and 10 in the respective iterations and SY-INDEX will contain 1 and 2 . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initial value for SY-TABIX is 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nageswar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Dec 2007 13:15:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference/m-p/3184297#M758182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-18T13:15:02Z</dc:date>
    </item>
  </channel>
</rss>

