<?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 error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-error/m-p/2588933#M592606</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;1st check the tables weather that tables getting correct data or not by going into debugging &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if don't get proper data correct there it self &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other wise &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will be problem with reading the table &lt;/P&gt;&lt;P&gt;give proper conditions then it will display the data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whenever u got problem like this go through the debugging so u can solve prob very easyly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if usefull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Aug 2007 14:32:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-06T14:32:14Z</dc:date>
    <item>
      <title>Read table error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-error/m-p/2588931#M592604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;Hello every body ,&lt;/P&gt;&lt;P&gt;In my report ,Before populating the fieldcatalog i am first fetching the details of g/l account into my internal table .There are two line items with same posting date .Now wen i use read table to populate my final table looping through the internal table i am getting only one LIne item record .But wen i give my specific line item number in the sel-screen i am getting all the details.if i don't give it tat is to fetch all the data ,then i am able to get only one line item details that is coming first in the order but the second one is not getting displayed.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;Wat could be the reason .&lt;/P&gt;&lt;P&gt;is it bcoz of only using the read statement?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 14:26:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-error/m-p/2588931#M592604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T14:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Read table error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-error/m-p/2588932#M592605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveen,&lt;/P&gt;&lt;P&gt;If you use the Read statment then it will fetch a single record, so you need to use the LOOP statment ot do the FOR ALL ENTRIES&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; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 14:29:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-error/m-p/2588932#M592605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T14:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Read table error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-error/m-p/2588933#M592606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;1st check the tables weather that tables getting correct data or not by going into debugging &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if don't get proper data correct there it self &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;other wise &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will be problem with reading the table &lt;/P&gt;&lt;P&gt;give proper conditions then it will display the data &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whenever u got problem like this go through the debugging so u can solve prob very easyly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if usefull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 14:32:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-error/m-p/2588933#M592606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T14:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Read table error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-error/m-p/2588934#M592607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naveen,&lt;/P&gt;&lt;P&gt;Yes. As READ can only read one line from the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 14:33:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-error/m-p/2588934#M592607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T14:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Read table error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-error/m-p/2588935#M592608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My  friend  : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before  looping   for read table   concept   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to  sort the both tables  and the internal table  fields  should  in the same  order what ever fields are common in the bot internal table ,.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then  the  line  item table should be the   loop and the header table should be the read table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;" example .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sort  bseg by burks belnr  .
sort  bkpf by  burks belnr   .

loop at bseg .
read table bkpf with key  bukrs = bseg-bukrs   belnr  =  bseg-belnr .

you  query   for modify /inserting into  new internal table  .....etc
endloop .&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but what you are doing is   BKPF is   looped and BSEG is  used in the read concept    so  it will take  only one line item  ..and the remainining line item will be  skiped .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and remember to  sort also ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward  points if it is usefulll.....&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2007 14:35:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-table-error/m-p/2588935#M592608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-06T14:35:20Z</dc:date>
    </item>
  </channel>
</rss>

