<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read/m-p/4769166#M1117905</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;INTO CORRESPONDING has nothing to do with sequential read. The problem with the first select is that no primary or secondary key is used to access MSEG. This causes a full table scan, which can be very slow.&lt;/P&gt;&lt;P&gt;The second select is not so critical, although not perfect either (SELECT SINGLE without specifying full primary key).&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Oct 2008 09:17:45 GMT</pubDate>
    <dc:creator>ThomasZloch</dc:creator>
    <dc:date>2008-10-30T09:17:45Z</dc:date>
    <item>
      <title>Sequential read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read/m-p/4769162#M1117901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I have got a request from the basis team to check why a particular program is doing a sequential read. How should i go ahead for the request. I am unable to find where the program is doing sequential reads. Can anyone tell me how to look for the select statements doing sequential read?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks:&lt;/P&gt;&lt;P&gt;SIddharth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 08:38:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read/m-p/4769162#M1117901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T08:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read/m-p/4769163#M1117902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sequential reads means particular report is poor, or its performance is not good. Hope your basis team might have given you the program name which is running sequential reads check the performance and do the relevant changes.&lt;/P&gt;&lt;P&gt;High check the below link how we have to consider the sequential reads in calculating total database time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04s/helpdata/en/dc/6badf472b14caeba19741a160d4868/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04s/helpdata/en/dc/6badf472b14caeba19741a160d4868/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers!!&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Venkat Reddy on Oct 30, 2008 2:20 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 08:49:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read/m-p/4769163#M1117902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T08:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read/m-p/4769164#M1117903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A sequential read means that the programs reads the database table or internal table very slow. It checks every record on the given conditions. &lt;/P&gt;&lt;P&gt;If you can make use of indexes the program will be significantly faster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to ask the basis team for the program name and the db table or intenal tables with the sequential read.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Hans&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 08:52:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read/m-p/4769164#M1117903</guid>
      <dc:creator>h_senden2</dc:creator>
      <dc:date>2008-10-30T08:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read/m-p/4769165#M1117904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ya i have got the program name and the table as well.&lt;/P&gt;&lt;P&gt;The table name is MSEG. when i look for all the queries done on MSEG table i find only 2.&lt;/P&gt;&lt;P&gt;they are listed below.&lt;/P&gt;&lt;P&gt;    SELECT  MBLNR MENGE EBELN EBELP BWART&lt;/P&gt;&lt;P&gt;      FROM  MSEG&lt;/P&gt;&lt;P&gt;      INTO  CORRESPONDING FIELDS OF TABLE T_MSEG&lt;/P&gt;&lt;P&gt;     WHERE  EBELN  = V_EBELN&lt;/P&gt;&lt;P&gt;       AND  EBELP  = V_EBELP&lt;/P&gt;&lt;P&gt;       AND  MBLNR  &amp;lt; V_MBLNR&lt;/P&gt;&lt;P&gt;       AND  PARENT_ID = '000000'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT SINGLE MBLNR DMBTR BNBTR&lt;/P&gt;&lt;P&gt;      INTO (T_SLIP-MBLNR, T_SLIP-DMBTR, T_SLIP-BNBTR)&lt;/P&gt;&lt;P&gt;      FROM MSEG&lt;/P&gt;&lt;P&gt;     WHERE  MBLNR  = T_EKBE-BELNR&lt;/P&gt;&lt;P&gt;       AND  WERKS  = P_WERKS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i believe is that the 1st query uses the option corresponding fiels and so this is causing a sequential read. Is there any transaction or a way from which i can confirm this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 09:11:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read/m-p/4769165#M1117904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T09:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read/m-p/4769166#M1117905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;INTO CORRESPONDING has nothing to do with sequential read. The problem with the first select is that no primary or secondary key is used to access MSEG. This causes a full table scan, which can be very slow.&lt;/P&gt;&lt;P&gt;The second select is not so critical, although not perfect either (SELECT SINGLE without specifying full primary key).&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 09:17:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read/m-p/4769166#M1117905</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-10-30T09:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read/m-p/4769167#M1117906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THanks.&lt;/P&gt;&lt;P&gt;OK, now i got it right.corresponding would only reduce the performance but it has nothing to do with sequential read.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 09:30:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read/m-p/4769167#M1117906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T09:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read/m-p/4769168#M1117907</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;Check transaction ST05 , to identify the performance of selects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Navneeth K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 09:32:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read/m-p/4769168#M1117907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T09:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read/m-p/4769169#M1117908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; corresponding would only reduce the performance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But only so much that you can usually ignore this effect (maybe 0,1% difference based on my own measurements). "corresponding" in Select- or Move-statements allows for some elegant programming techniques that I would not want to live without.&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 09:49:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read/m-p/4769169#M1117908</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2008-10-30T09:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Sequential read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read/m-p/4769170#M1117909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The reason why it is sequential read because the query is not using any index and thus has to read each and every record sequentially and compare the fields of the where clause.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are reading the MSEG table without using any index. If you know the PO number and the PO item, you also know the material number, plant and storage location of the PO item thus also check for the Material number, plant and storage location in the where clause. The query will then use the index MSEG~M and would improve the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT MBLNR MENGE EBELN EBELP BWART
FROM MSEG
INTO CORRESPONDING FIELDS OF TABLE T_MSEG
client specified
WHERE  mandt = sy-mandt
matnr = v_matnr   "MATNR from the Purchase order
werks = v_werks  " Plant from the purchase order
LGORT = v_lgort " Storage location from the Purchase order
EBELN = V_EBELN
AND EBELP = V_EBELP
AND MBLNR &amp;lt; V_MBLNR
AND PARENT_ID = '000000'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible, do the same for the second query as well.&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;Advait.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 10:02:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sequential-read/m-p/4769170#M1117909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-30T10:02:25Z</dc:date>
    </item>
  </channel>
</rss>

