<?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: read table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/5306909#M1223791</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 LOOP statement with where clause or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read Statement will work for each entry only when it is &lt;/P&gt;&lt;P&gt;inside the LOOP statement with KEY mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Mar 2009 06:31:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-18T06:31:06Z</dc:date>
    <item>
      <title>read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/5306907#M1223789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Please use more informative subject in future&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I have a internal table as follows.&lt;/P&gt;&lt;P&gt;   po no  |   item  |  state    |&lt;/P&gt;&lt;P&gt;   45          10         ap&lt;/P&gt;&lt;P&gt;   45           10         sp&lt;/P&gt;&lt;P&gt;   45            10        pp  &lt;/P&gt;&lt;P&gt;   46             10        sf&lt;/P&gt;&lt;P&gt;   46              10      as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am useing  the read table syntax for this table .&lt;/P&gt;&lt;P&gt;for pono 45 and 46 i want read the records.&lt;/P&gt;&lt;P&gt;but read table is triggring for first record only.&lt;/P&gt;&lt;P&gt;can any body explain how read the record of 46 also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;padmaja.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Mar 18, 2009 7:46 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 06:28:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/5306907#M1223789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-18T06:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/5306908#M1223790</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;Read statement will read the very first line matching the condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So try using:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at itab where po_no = '45' or po_no = '46'.
  write: / itab-po_no, itab-item, itab-state.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Tarun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 06:30:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/5306908#M1223790</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2009-03-18T06:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/5306909#M1223791</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 LOOP statement with where clause or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read Statement will work for each entry only when it is &lt;/P&gt;&lt;P&gt;inside the LOOP statement with KEY mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 06:31:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/5306909#M1223791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-18T06:31:06Z</dc:date>
    </item>
    <item>
      <title>Re: read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/5306910#M1223792</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;Do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;read table itab into wa with key po_no = wa-po_no.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="6" type="ul"&gt;&lt;P&gt;your logic, if any*************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will read every record. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Rudhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 06:35:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/5306910#M1223792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-18T06:35:05Z</dc:date>
    </item>
    <item>
      <title>Re: read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/5306911#M1223793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Either used &lt;/P&gt;&lt;P&gt;At new po.&lt;/P&gt;&lt;P&gt;read table it into wa.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;put loop it into wa.&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;Anagha Deshmukh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 06:38:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/5306911#M1223793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-18T06:38:16Z</dc:date>
    </item>
    <item>
      <title>Re: read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/5306912#M1223794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Padmaja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the Loop Statement instead of the Read statement since Read statement will give you the very first line of the matching condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Harsh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 06:39:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/5306912#M1223794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-18T06:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/5306913#M1223795</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 loop....end loop it select all th evalues in the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ritesh J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 06:42:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/5306913#M1223795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-18T06:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/5306914#M1223796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Please use more informative subject in future&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 06:47:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/5306914#M1223796</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-03-18T06:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/5306915#M1223797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Loop the internal table with where condition or llop the table and use read statement within that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sort the internal table before that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 06:48:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/5306915#M1223797</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-18T06:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/5306916#M1223798</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;Reading the intrenal table will only be done either by using the READ statement within the loop -endloop or using the WRITE statement again with in the loop-endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As both the statement will read the table at the curretn index only, to read the other entry you need to do it in loop-endloop or in lopp that run from first index to last value(sy-dbcnt).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2009 06:59:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/5306916#M1223798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-18T06:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: read table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/5306917#M1223799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;answerd&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2009 04:43:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table/m-p/5306917#M1223799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-20T04:43:55Z</dc:date>
    </item>
  </channel>
</rss>

