<?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 loop,read in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-read/m-p/3290487#M787328</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I am doing something like this&lt;/P&gt;&lt;P&gt; LOOP AT IT_RESB INTO WA_RESB.&lt;/P&gt;&lt;P&gt;     READ TABLE IT_EBAN INTO WA_EBAN WITH KEY MATNR = WA_RESB-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no resb has multiple entries of the same material.&lt;/P&gt;&lt;P&gt;so the read statment will pick up the first entry that it gets even though the same material if repeated thrice it has 3 different quantities.so my first quantity is repeated everywhere.&lt;/P&gt;&lt;P&gt;What other key can i use betewwn these two tables?&lt;/P&gt;&lt;P&gt;BANFN does not get updated in RESB,else problem would have been solved.plz tell me how to loop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jan 2008 06:10:11 GMT</pubDate>
    <dc:creator>rahul2000</dc:creator>
    <dc:date>2008-01-10T06:10:11Z</dc:date>
    <item>
      <title>loop,read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-read/m-p/3290487#M787328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I am doing something like this&lt;/P&gt;&lt;P&gt; LOOP AT IT_RESB INTO WA_RESB.&lt;/P&gt;&lt;P&gt;     READ TABLE IT_EBAN INTO WA_EBAN WITH KEY MATNR = WA_RESB-MATNR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no resb has multiple entries of the same material.&lt;/P&gt;&lt;P&gt;so the read statment will pick up the first entry that it gets even though the same material if repeated thrice it has 3 different quantities.so my first quantity is repeated everywhere.&lt;/P&gt;&lt;P&gt;What other key can i use betewwn these two tables?&lt;/P&gt;&lt;P&gt;BANFN does not get updated in RESB,else problem would have been solved.plz tell me how to loop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 06:10:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-read/m-p/3290487#M787328</guid>
      <dc:creator>rahul2000</dc:creator>
      <dc:date>2008-01-10T06:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: loop,read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-read/m-p/3290488#M787329</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;   Use one more loop statement instead of READ.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_RESB INTO WA_RESB.&lt;/P&gt;&lt;P&gt; LOOP AT IT_EBAN INTO WA_EBAN WHERE MATNR = WA_RESB-MATNR.&lt;/P&gt;&lt;P&gt;   (If u want to sum the quantity, do it.  All the 3 qty records will be considered.)&lt;/P&gt;&lt;P&gt;  sum = sum + wa_eban-qty.&lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; (do the required process with the summed qty)&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ramesh Hirial on Jan 10, 2008 3:17 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 06:16:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-read/m-p/3290488#M787329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T06:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: loop,read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/loop-read/m-p/3290489#M787330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rahul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After using this quantity before the Endloop statement Delete that record from the Internal table. Now each time u can get different quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;awrd points if helpful&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bhupal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jan 2008 06:21:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/loop-read/m-p/3290489#M787330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-10T06:21:35Z</dc:date>
    </item>
  </channel>
</rss>

