<?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: Different ways to loop at internal table.. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-ways-to-loop-at-internal-table/m-p/2325184#M510912</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jim,&lt;/P&gt;&lt;P&gt;        If the tables are related by some fileds,&lt;/P&gt;&lt;P&gt;        then you can loop at one while for other table you can put where caluse&lt;/P&gt;&lt;P&gt;        on filed to improve performance.&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;        This is demo , both tables must be sorted by vbeln..&lt;/P&gt;&lt;P&gt;        Loop at it_vbrk assigning &amp;lt;fs_vbrk&amp;gt;.&lt;/P&gt;&lt;P&gt;                loop at it_vbrp assigning &amp;lt;fs_vbrp&amp;gt; where vbeln = &amp;lt;fs_vbrk&amp;gt;-vbeln.&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;Amol C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- Award points if helpful..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jun 2007 04:56:02 GMT</pubDate>
    <dc:creator>amol_chaudhari5</dc:creator>
    <dc:date>2007-06-08T04:56:02Z</dc:date>
    <item>
      <title>Different ways to loop at internal table..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-ways-to-loop-at-internal-table/m-p/2325178#M510906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Gurus,&lt;/P&gt;&lt;P&gt;What are the different ways to loop at a internal table...I mean if I have to two internal tables then how will i loop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers:Jim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 04:44:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-ways-to-loop-at-internal-table/m-p/2325178#M510906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T04:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Different ways to loop at internal table..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-ways-to-loop-at-internal-table/m-p/2325179#M510907</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;U can use the Loop based on ur Requirement.If there is no relationship between those two Internal Tables,then u can write Seperate Loop Statements.If it is related then u can Write Nested Loops.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 04:49:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-ways-to-loop-at-internal-table/m-p/2325179#M510907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T04:49:21Z</dc:date>
    </item>
    <item>
      <title>Re: Different ways to loop at internal table..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-ways-to-loop-at-internal-table/m-p/2325180#M510908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jimmy,&lt;/P&gt;&lt;P&gt;There is only one way of looping at internal table. More the number of internal table nested it becomes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab.&lt;/P&gt;&lt;P&gt;Loop at jtab.&lt;/P&gt;&lt;P&gt;Loop at ktab.&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;EndLoop.&lt;/P&gt;&lt;P&gt;EndLoop.&lt;/P&gt;&lt;P&gt;EndLoop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Younus&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward Helpful Answers:-)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 04:49:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-ways-to-loop-at-internal-table/m-p/2325180#M510908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T04:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Different ways to loop at internal table..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-ways-to-loop-at-internal-table/m-p/2325181#M510909</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 do like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab2 with key  field = itab1-field binary search&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or read table itab2 index sy-index.&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;reward points if helpful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 04:50:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-ways-to-loop-at-internal-table/m-p/2325181#M510909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T04:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: Different ways to loop at internal table..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-ways-to-loop-at-internal-table/m-p/2325182#M510910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;If u have two tables than&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at one table into work area and then read second table.like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into wa_itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab2 into wa_itab2&lt;/P&gt;&lt;P&gt;with key &amp;lt; common field in both tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append to final table. &lt;/P&gt;&lt;P&gt;clear wa_itab1,wa_itab2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;sudha.&lt;/P&gt;&lt;P&gt;points if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 04:50:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-ways-to-loop-at-internal-table/m-p/2325182#M510910</guid>
      <dc:creator>S0025444845</dc:creator>
      <dc:date>2007-06-08T04:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Different ways to loop at internal table..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-ways-to-loop-at-internal-table/m-p/2325183#M510911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jimmy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have two internal tables, &lt;/P&gt;&lt;P&gt;you can loop one table and read another table inside the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_ekko into w_ekko.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it_ekpo into w_ekpo&lt;/P&gt;&lt;P&gt;        with key ebeln = w_ekko-ebeln&lt;/P&gt;&lt;P&gt;        binary search.&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;regards,&lt;/P&gt;&lt;P&gt;Ruchika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 04:53:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-ways-to-loop-at-internal-table/m-p/2325183#M510911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T04:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: Different ways to loop at internal table..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-ways-to-loop-at-internal-table/m-p/2325184#M510912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jim,&lt;/P&gt;&lt;P&gt;        If the tables are related by some fileds,&lt;/P&gt;&lt;P&gt;        then you can loop at one while for other table you can put where caluse&lt;/P&gt;&lt;P&gt;        on filed to improve performance.&lt;/P&gt;&lt;P&gt;       &lt;/P&gt;&lt;P&gt;        This is demo , both tables must be sorted by vbeln..&lt;/P&gt;&lt;P&gt;        Loop at it_vbrk assigning &amp;lt;fs_vbrk&amp;gt;.&lt;/P&gt;&lt;P&gt;                loop at it_vbrp assigning &amp;lt;fs_vbrp&amp;gt; where vbeln = &amp;lt;fs_vbrk&amp;gt;-vbeln.&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;Amol C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- Award points if helpful..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 04:56:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-ways-to-loop-at-internal-table/m-p/2325184#M510912</guid>
      <dc:creator>amol_chaudhari5</dc:creator>
      <dc:date>2007-06-08T04:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Different ways to loop at internal table..</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/different-ways-to-loop-at-internal-table/m-p/2325185#M510913</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;loop at itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab2 with key field = itab1-field binary search&lt;/P&gt;&lt;P&gt; or&lt;/P&gt;&lt;P&gt;read table itab2 index sy-index.&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;loop at itab1 where itab1-fld = 'fldname'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab2 with key field = itab1-field binary search&lt;/P&gt;&lt;P&gt; or&lt;/P&gt;&lt;P&gt;read table itab2 index sy-index.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Jun 2007 05:02:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/different-ways-to-loop-at-internal-table/m-p/2325185#M510913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-08T05:02:37Z</dc:date>
    </item>
  </channel>
</rss>

