<?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: LOOP AT AN INTERNAL TABLE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-an-internal-table/m-p/6271513#M1386687</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;I understand ur requirement in this way:-&lt;/P&gt;&lt;P&gt;U have records in one internal table,u want to loop through the table and process some changes to the fields of the record and then compare the same record in another place within the loop .&lt;/P&gt;&lt;P&gt;see once u modify the fields of the table then append the data or modify table command would help you to change the data in the record of internal table.&lt;/P&gt;&lt;P&gt;Now once you have the new record you can use read table command and read the same record with some key values present in the internal table which  u r looping , example:it may be even the index also in some cases or it may be some key field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then u have the read table workarea with modified record and loop table's work area with previous data.&lt;/P&gt;&lt;P&gt;thus u can now perform ur comparision easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;M.Naveen Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Oct 2009 09:57:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-10-20T09:57:37Z</dc:date>
    <item>
      <title>LOOP AT AN INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-an-internal-table/m-p/6271510#M1386684</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 have created an abap program that has an internal table. In that table I want to compare the values of one field with the values of the same field but from other records except the current one. What do I have to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advanced.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 09:51:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-an-internal-table/m-p/6271510#M1386684</guid>
      <dc:creator>xt_inergo</dc:creator>
      <dc:date>2009-10-20T09:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT AN INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-an-internal-table/m-p/6271511#M1386685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) Use meaningful subject line&lt;/P&gt;&lt;P&gt;2) Dont use ALL CAPS in subject line&lt;/P&gt;&lt;P&gt;3) Please read the forum rules before posting&lt;/P&gt;&lt;P&gt;4) Your question is not clear. Elaborate more&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 09:54:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-an-internal-table/m-p/6271511#M1386685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-20T09:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT AN INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-an-internal-table/m-p/6271512#M1386686</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;You can use the &lt;STRONG&gt;CONTROL BREAK&lt;/STRONG&gt; statements and check whats happening in Debug.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ON CHANGE OF&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AT NEW&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first time you hold this value in a temp variable and then you can compare&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ON CHANGE OF&lt;/STRONG&gt; you can clear the Temp Variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AT NEW&lt;/STRONG&gt; just store this new value in Temp variable .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for other loop passes you can compare the Value in Work Area with Temp Variable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 09:54:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-an-internal-table/m-p/6271512#M1386686</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-20T09:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT AN INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-an-internal-table/m-p/6271513#M1386687</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;I understand ur requirement in this way:-&lt;/P&gt;&lt;P&gt;U have records in one internal table,u want to loop through the table and process some changes to the fields of the record and then compare the same record in another place within the loop .&lt;/P&gt;&lt;P&gt;see once u modify the fields of the table then append the data or modify table command would help you to change the data in the record of internal table.&lt;/P&gt;&lt;P&gt;Now once you have the new record you can use read table command and read the same record with some key values present in the internal table which  u r looping , example:it may be even the index also in some cases or it may be some key field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then u have the read table workarea with modified record and loop table's work area with previous data.&lt;/P&gt;&lt;P&gt;thus u can now perform ur comparision easily.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;M.Naveen Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 09:57:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-an-internal-table/m-p/6271513#M1386687</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-20T09:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT AN INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-an-internal-table/m-p/6271514#M1386688</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data: index type sy-tabix,&lt;/P&gt;&lt;P&gt;         flag(1) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab1 = itab&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;index = sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 where field = itab-field&lt;/P&gt;&lt;P&gt;if sy-tabix ne index.&lt;/P&gt;&lt;P&gt;flag = 'X'.&lt;/P&gt;&lt;P&gt;exit.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if flag = 'X'.&lt;/P&gt;&lt;P&gt;*....Do your coding here.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Oct 2009 09:58:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-an-internal-table/m-p/6271514#M1386688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-20T09:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: LOOP AT AN INTERNAL TABLE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-an-internal-table/m-p/6271515#M1386689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look of this code example: &lt;A href="http://mysapsource.com/abap-tables/how-to-retreive-data-from-to-sap-tables-into-an-internal-table" target="test_blank"&gt;http://mysapsource.com/abap-tables/how-to-retreive-data-from-to-sap-tables-into-an-internal-table&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Oct 2009 15:25:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-at-an-internal-table/m-p/6271515#M1386689</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-10-24T15:25:33Z</dc:date>
    </item>
  </channel>
</rss>

