<?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: help on System fields. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-system-fields/m-p/1029497#M83325</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 specifies about the current loop pass which is same as ur example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sy-tabix stores the current line index of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_mara.&lt;/P&gt;&lt;P&gt;  &amp;lt; ur logic &amp;gt;&lt;/P&gt;&lt;P&gt;  modify table it_mara index sy_tabix.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sy-tfill tells abt the current number of lines in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table it_mara lines sy-tfill.&lt;/P&gt;&lt;P&gt;if sy-tfill = 0.&lt;/P&gt;&lt;P&gt;  &amp;lt;ur code if table is initial&amp;gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neelima.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2005 14:41:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-13T14:41:38Z</dc:date>
    <item>
      <title>help on System fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-system-fields/m-p/1029492#M83320</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;&lt;/P&gt;&lt;P&gt;I have always confusion when to use which system fields(tabix, index, tfill).&lt;/P&gt;&lt;P&gt;í created one program first i used sy-tabix instead of sy-index.Then it doesnt work.&lt;/P&gt;&lt;P&gt;Please clarify me with examples.&lt;/P&gt;&lt;P&gt;that code is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
FORM delimiting.

  DO.
* assigns the next field in the current header to &amp;lt;f&amp;gt;.
    ASSIGN COMPONENT sy-index OF STRUCTURE i_itab TO &amp;lt;f&amp;gt;.
    IF sy-subrc &amp;lt;&amp;gt; 0.
      EXIT.
    ENDIF.

    IF sy-index = 1.
      excel_string = &amp;lt;f&amp;gt;.
    ELSE.
      CONCATENATE excel_string &amp;lt;delim&amp;gt; &amp;lt;f&amp;gt; INTO excel_string.
    ENDIF.
  ENDDO.

ENDFORM.                    " delimiting
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;Chandu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2005 14:24:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-system-fields/m-p/1029492#M83320</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-13T14:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: help on System fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-system-fields/m-p/1029493#M83321</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 in loop and endloop for internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-index is used for do and enddo and other loops like while&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2005 14:27:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-system-fields/m-p/1029493#M83321</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-13T14:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: help on System fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-system-fields/m-p/1029494#M83322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in case of Do loops we usually go for sy-index, &lt;/P&gt;&lt;P&gt;in loop and endloops or read statements we use sy-tabix..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2005 14:31:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-system-fields/m-p/1029494#M83322</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-13T14:31:26Z</dc:date>
    </item>
    <item>
      <title>Re: help on System fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-system-fields/m-p/1029495#M83323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use SY-index when working with DO loops.   Use SY-TABIX when working with LOOP or READ statements.  Just remember that sy-&amp;lt;b&amp;gt;TAB&amp;lt;/b&amp;gt;ix is used for internal tables tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2005 14:31:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-system-fields/m-p/1029495#M83323</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-12-13T14:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: help on System fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-system-fields/m-p/1029496#M83324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;where tfill gives current number of entries in internal table&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2005 14:32:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-system-fields/m-p/1029496#M83324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-13T14:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: help on System fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-system-fields/m-p/1029497#M83325</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 specifies about the current loop pass which is same as ur example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sy-tabix stores the current line index of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_mara.&lt;/P&gt;&lt;P&gt;  &amp;lt; ur logic &amp;gt;&lt;/P&gt;&lt;P&gt;  modify table it_mara index sy_tabix.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sy-tfill tells abt the current number of lines in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table it_mara lines sy-tfill.&lt;/P&gt;&lt;P&gt;if sy-tfill = 0.&lt;/P&gt;&lt;P&gt;  &amp;lt;ur code if table is initial&amp;gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Neelima.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2005 14:41:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/help-on-system-fields/m-p/1029497#M83325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-13T14:41:38Z</dc:date>
    </item>
  </channel>
</rss>

