<?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: Sequential read instead of array fetch in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read-instead-of-array-fetch/m-p/1581667#M262419</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May i know why i have to code LOOP&lt;SUB&gt;ENLOOP within my SELECT&lt;/SUB&gt;ENDSELECT !!!??? Please give your comment here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i stated clearly on my first post, my problem now is happening on the sequential read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Sep 2006 15:14:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-26T15:14:37Z</dc:date>
    <item>
      <title>Sequential read instead of array fetch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read-instead-of-array-fetch/m-p/1581662#M262414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im banging my head by trying to figure out why my SQL statement always turned up with sequential read(check against ST05) instead of array fetch eventhough i put INTO TABLE statement. FYI, im extracting data from table BSET(under cluster RFBLG). This is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    SELECT bukrs belnr gjahr buzei bupla mwskz hkont  
           txgrp shkzg hwbas hwste ktosl knumh kbetr 
           mlddt stbkz 
      INTO TABLE LT_TEMP 
      FROM bset 
      PACKAGE SIZE 3000
      FOR ALL ENTRIES IN lt_bkpf
      WHERE bukrs  =  lt_bkpf-bukrs            
      AND   belnr  =  lt_bkpf-belnr     
      AND   gjahr  =  lt_bkpf-gjahr.                 
    ENDSELECT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls comment whats wrong with the above code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 09:33:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read-instead-of-array-fetch/m-p/1581662#M262414</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T09:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential read instead of array fetch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read-instead-of-array-fetch/m-p/1581663#M262415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to change your statement like this :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT bukrs belnr gjahr buzei bupla mwskz hkont  &lt;/P&gt;&lt;P&gt;           txgrp shkzg hwbas hwste ktosl knumh kbetr &lt;/P&gt;&lt;P&gt;           mlddt stbkz &lt;/P&gt;&lt;P&gt;      INTO corresponding fields of TABLE LT_TEMP &lt;/P&gt;&lt;P&gt;      FROM bset &lt;/P&gt;&lt;P&gt;      PACKAGE SIZE 3000&lt;/P&gt;&lt;P&gt;      FOR ALL ENTRIES IN lt_bkpf&lt;/P&gt;&lt;P&gt;      WHERE bukrs  =  lt_bkpf-bukrs            &lt;/P&gt;&lt;P&gt;      AND   belnr  =  lt_bkpf-belnr     &lt;/P&gt;&lt;P&gt;      AND   gjahr  =  lt_bkpf-gjahr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 09:35:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read-instead-of-array-fetch/m-p/1581663#M262415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T09:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential read instead of array fetch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read-instead-of-array-fetch/m-p/1581664#M262416</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;Why do you need a ENDSELECT?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 09:35:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read-instead-of-array-fetch/m-p/1581664#M262416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T09:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential read instead of array fetch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read-instead-of-array-fetch/m-p/1581665#M262417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;FYI, your statement will not solve the prob. thank for your comment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Raj,&lt;/P&gt;&lt;P&gt;Why i used ENDSELECT? Please press F1 on SELECT. PACKAGE SIZE does the matter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ideas, guys?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 10:03:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read-instead-of-array-fetch/m-p/1581665#M262417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T10:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential read instead of array fetch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read-instead-of-array-fetch/m-p/1581666#M262418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think your code is correct. But remember that you have to process the internal table insice the SELECT/ENDSELECT:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
   SELECT bukrs belnr gjahr buzei bupla mwskz hkont  
           txgrp shkzg hwbas hwste ktosl knumh kbetr 
           mlddt stbkz 
      INTO TABLE LT_TEMP 
      FROM bset 
      PACKAGE SIZE 3000
      FOR ALL ENTRIES IN lt_bkpf
      WHERE bukrs  =  lt_bkpf-bukrs            
      AND   belnr  =  lt_bkpf-belnr     
      AND   gjahr  =  lt_bkpf-gjahr. 
*  LOOP AT lt_temp.
*  ENDLOOP.
*    or
*  APPEND LINES OF lt_temp
*    TO lt_new.
    ENDSELECT&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 13:48:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read-instead-of-array-fetch/m-p/1581666#M262418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T13:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential read instead of array fetch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read-instead-of-array-fetch/m-p/1581667#M262419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;May i know why i have to code LOOP&lt;SUB&gt;ENLOOP within my SELECT&lt;/SUB&gt;ENDSELECT !!!??? Please give your comment here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i stated clearly on my first post, my problem now is happening on the sequential read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 15:14:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read-instead-of-array-fetch/m-p/1581667#M262419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T15:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential read instead of array fetch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read-instead-of-array-fetch/m-p/1581668#M262420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Because each package will overlay the previous one. If you don't process the internal table for each package, it will be lost.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't get what you mean by the problem is now on the sequential read. The code you posted is for an array fetch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 15:30:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read-instead-of-array-fetch/m-p/1581668#M262420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-26T15:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential read instead of array fetch</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read-instead-of-array-fetch/m-p/1581669#M262421</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;BSET is 'just' a cluster table. The fields of BSET are not mapped 1:1 to the fields of the 'real' DB-table.&lt;/P&gt;&lt;P&gt;Now it seems, that only the complete primary key can be accessed directly in the cluster, not parts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your program might get much faster, when you add the line numbers (BUZEI) into lt_temp. Of course you have a bigger select statement (executed, not in source!), but this might be compensated by index access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Sep 2006 15:43:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read-instead-of-array-fetch/m-p/1581669#M262421</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2006-09-26T15:43:54Z</dc:date>
    </item>
  </channel>
</rss>

