<?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: system variables` in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variables/m-p/2584775#M591345</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; 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;Simply,&lt;/P&gt;&lt;P&gt;SY-TABIX-Current index of table&lt;/P&gt;&lt;P&gt;SY-INDEX-Current index of loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2007 06:56:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-25T06:56:51Z</dc:date>
    <item>
      <title>system variables`</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variables/m-p/2584774#M591344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what does the variables sy-tabix,sy-index exactly mean&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 06:55:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-variables/m-p/2584774#M591344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T06:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: system variables`</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variables/m-p/2584775#M591345</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; 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;Simply,&lt;/P&gt;&lt;P&gt;SY-TABIX-Current index of table&lt;/P&gt;&lt;P&gt;SY-INDEX-Current index of loop. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 06:56:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-variables/m-p/2584775#M591345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T06:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: system variables`</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variables/m-p/2584776#M591346</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;check this &lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="363862"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;grtz,&lt;/P&gt;&lt;P&gt;Koen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry double post&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Koen Labie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 06:57:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-variables/m-p/2584776#M591346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T06:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: system variables`</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variables/m-p/2584777#M591347</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 - Number of loop passes&lt;/P&gt;&lt;P&gt;SY-TABIX -  Runtime: Current line of an internal table. table index&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-TABIX means 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 means the number of Iterations for a loop. bascially DO - ENDDO .&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;sy-tabix inside loop-endloop, and sy-index inside do-enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the belwo program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report tabix_index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 100 times.&lt;/P&gt;&lt;P&gt;wa_tab-index = sy-index.&lt;/P&gt;&lt;P&gt;append wa_tab to itab.&lt;/P&gt;&lt;P&gt;clear wa_tab.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa_tab.&lt;/P&gt;&lt;P&gt;write:/1 sy-tabix.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 06:58:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-variables/m-p/2584777#M591347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T06:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: system variables`</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variables/m-p/2584778#M591348</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 --- It gives the iteration number..In which loop you are there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-tabix --- Gives the row no of the table  , which data record is gettiong read from the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Simha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 07:00:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-variables/m-p/2584778#M591348</guid>
      <dc:creator>Simha_</dc:creator>
      <dc:date>2007-07-25T07:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: system variables`</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variables/m-p/2584779#M591349</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 means 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 means the number of Iterations for a loop. bascially DO - ENDO .&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;Check the belwo program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report tabix_index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO 100 times.&lt;/P&gt;&lt;P&gt;wa_tab-index = sy-index.&lt;/P&gt;&lt;P&gt;append wa_tab to itab.&lt;/P&gt;&lt;P&gt;clear wa_tab.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa_tab.&lt;/P&gt;&lt;P&gt;write:/1 sy-tabix.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this answers your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if it helps..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Omkar.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 07:01:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-variables/m-p/2584779#M591349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T07:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: system variables`</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variables/m-p/2584780#M591350</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 contains the current index number of internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-index contains the loop index no when we use any loops or index of database table also. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if helpful reward some points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;with regards,&lt;/P&gt;&lt;P&gt;Suresh Aluri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 07:04:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-variables/m-p/2584780#M591350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T07:04:21Z</dc:date>
    </item>
    <item>
      <title>Re: system variables`</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variables/m-p/2584781#M591351</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. Whereas sy-index in used to find the number of current pass in the loop statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please close the threads which you got the answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 07:05:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-variables/m-p/2584781#M591351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T07:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: system variables`</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-variables/m-p/2584782#M591352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The following helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loops&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;In a DO or WHILE loop, SY-INDEX contains the number of loop passes including the current pass.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal Tables&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;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;&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;COLLECT sets SY-TABIX to the index of the existing or inserted line in the table. If the table has the type HASHED TABLE, SY-TABIX is set to 0.&lt;/P&gt;&lt;P&gt;LOOP AT sets SY-TABIX to the index of the current line at the beginning of each loop lass. At the end of the loop, SY-TABIX is reset to the value that it had before entering the loop. It is set to 0 if the table has the type HASHED TABLE. &lt;/P&gt;&lt;P&gt;READ TABLE sets SY-TABIX to the index of the table line read. If you use a binary search, and the system does not find a line, SY-TABIX contains the total number of lines, or one more than the total number of lines. SY-INDEX is undefined if a linear search fails to return an entry. &lt;/P&gt;&lt;P&gt;SEARCH &amp;lt;itab&amp;gt; FOR sets SY-TABIX to the index of the table line in which the search string is found.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if  helpful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karthick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 07:06:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-variables/m-p/2584782#M591352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T07:06:29Z</dc:date>
    </item>
  </channel>
</rss>

