<?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 fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/3228570#M770117</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG&gt;Swapna&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&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;Internal Tables&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;Plzz Reward if it is 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>Sun, 30 Dec 2007 14:58:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-30T14:58:09Z</dc:date>
    <item>
      <title>system fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/3228569#M770116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;can u please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what is the difference between sy-index and sy-tabix&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;swapna rani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Dec 2007 14:55:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/3228569#M770116</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-30T14:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: system fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/3228570#M770117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG&gt;Swapna&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&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;Internal Tables&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;Plzz Reward if it is 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>Sun, 30 Dec 2007 14:58:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/3228570#M770117</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-30T14:58:09Z</dc:date>
    </item>
    <item>
      <title>Re: system fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/3228571#M770118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your fast rly and i have one more doubt what is SY-TFILL plz rly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is this also belonging to any internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;swapna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Dec 2007 15:00:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/3228571#M770118</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-30T15:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: system fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/3228572#M770119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;SY-TFILL&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;With the statements DESCRIBE TABLE, LOOP AT, and READ TABLE, SY-TFILL is filled with the row number of the addressed internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See this link for system fields:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/7b/fb96c8882811d295a90000e8353423/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/7b/fb96c8882811d295a90000e8353423/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plzz Reward if it is useful,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Mahi&lt;/STRONG&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Dec 2007 15:01:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/3228572#M770119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-30T15:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: system fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/3228573#M770120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for your link it is very muchu help to me i have so many doubts in system fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: swapna rani on Dec 30, 2007 4:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Dec 2007 15:04:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/3228573#M770120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-30T15:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: system fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/3228574#M770121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swapna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SY-TABIX&lt;/STRONG&gt; 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;&lt;STRONG&gt;SY-INDEX&lt;/STRONG&gt; means 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;Check the below 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 = &lt;STRONG&gt;sy-index&lt;/STRONG&gt;.&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 &lt;STRONG&gt;sy-tabix&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also go through below thread...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3263300"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will solve your problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Reward points if useful..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 30 Dec 2007 15:10:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/system-fields/m-p/3228574#M770121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-30T15:10:00Z</dc:date>
    </item>
  </channel>
</rss>

