<?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 statement not working inspite Internal tables having data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-not-working-inspite-internal-tables-having-data/m-p/12428472#M1997739</link>
    <description>&lt;P&gt;That is a link with the right answer, but that makes the forum a jungle for future search &lt;A href="https://blogs.sap.com/2013/11/08/posting-links-and-the-jungle-you-end-up-in/" target="test_blank"&gt;https://blogs.sap.com/2013/11/08/posting-links-and-the-jungle-you-end-up-in/&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Sep 2021 06:09:34 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2021-09-07T06:09:34Z</dc:date>
    <item>
      <title>Read statement not working inspite Internal tables having data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-not-working-inspite-internal-tables-having-data/m-p/12428469#M1997736</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt;I have two select queries on QBEW and PRPS table and both the selects have data.&lt;/P&gt;
  &lt;P&gt;QBEW - matnr,bwkey,bwtar,sobkz,pspnr&lt;/P&gt;
  &lt;P&gt;PRPS - pspnr,objnr,psphi&lt;/P&gt;
  &lt;P&gt;Now do a read statement:&lt;/P&gt;
  &lt;P&gt;READ TABLE lt_qbew INTO DATA(lw_qbew) WITH KEY pspnr = lw_prps-pspnr&lt;BR /&gt; bwkey = so_werks BINARY SEARCH.&lt;/P&gt;
  &lt;P&gt;I have sorted lt_qbew with both pspnr and bwkey.&lt;/P&gt;
  &lt;P&gt;Yet my read statement is failing. Pls Help.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 04:46:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-not-working-inspite-internal-tables-having-data/m-p/12428469#M1997736</guid>
      <dc:creator>former_member765394</dc:creator>
      <dc:date>2021-09-07T04:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Read statement not working inspite Internal tables having data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-not-working-inspite-internal-tables-having-data/m-p/12428470#M1997737</link>
      <description>&lt;P&gt;Please refer the below link : &lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/questions/11186013/how-to-use-read-statement-on-a-select-options.html" target="_blank"&gt;Read Statement with Select Options&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 05:07:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-not-working-inspite-internal-tables-having-data/m-p/12428470#M1997737</guid>
      <dc:creator>satvik_panchal</dc:creator>
      <dc:date>2021-09-07T05:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: Read statement not working inspite Internal tables having data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-not-working-inspite-internal-tables-having-data/m-p/12428471#M1997738</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;READ TABLE lt_qbew INTO DATA(lw_qbew) 
     WITH KEY pspnr = lw_prps-pspnr
              bwkey = so_werks 
     BINARY SEARCH&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Next time use the [CODE] button to put ABAP Code.&lt;/P&gt;&lt;P&gt;It is a non-sens to make a single read, with binary access, and to specify a range of plant (werks). Because you could have several value in plant, the binary reading is not possible.&lt;/P&gt;&lt;P&gt;Change the way of doing it with a LOOP and and EXIT:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT lt_qbew 
     INTO DATA(lw_qbew)
     WHERE pspnr EQ lw_prps-pspnr
     AND   bwkey IN so_werks.
  EXIT.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Sep 2021 05:41:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-not-working-inspite-internal-tables-having-data/m-p/12428471#M1997738</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-09-07T05:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Read statement not working inspite Internal tables having data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-not-working-inspite-internal-tables-having-data/m-p/12428472#M1997739</link>
      <description>&lt;P&gt;That is a link with the right answer, but that makes the forum a jungle for future search &lt;A href="https://blogs.sap.com/2013/11/08/posting-links-and-the-jungle-you-end-up-in/" target="test_blank"&gt;https://blogs.sap.com/2013/11/08/posting-links-and-the-jungle-you-end-up-in/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 06:09:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-not-working-inspite-internal-tables-having-data/m-p/12428472#M1997739</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-09-07T06:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: Read statement not working inspite Internal tables having data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-not-working-inspite-internal-tables-having-data/m-p/12428473#M1997740</link>
      <description>&lt;P&gt;1. Use a SORTED table.&lt;/P&gt;&lt;P&gt;2. Use ORDER BY in the select.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 06:12:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-statement-not-working-inspite-internal-tables-having-data/m-p/12428473#M1997740</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2021-09-07T06:12:38Z</dc:date>
    </item>
  </channel>
</rss>

