<?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: DISK Read in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/disk-read/m-p/939341#M62835</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx pat &lt;/P&gt;&lt;P&gt;i am able to solve my first problem that is getting data from aufk tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abhishek suppal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 30 Jul 2005 05:11:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-07-30T05:11:03Z</dc:date>
    <item>
      <title>DISK Read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disk-read/m-p/939334#M62828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we are getting very high disk read in some of our Queries but after seeing those queries there is nothing to optimise in these, but our BASIS people says that these queries are tking high disk reads, can any one sugges the possible way how to resuce the disk reading in those queries&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abhishek suppal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2005 04:35:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disk-read/m-p/939334#M62828</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-29T04:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: DISK Read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disk-read/m-p/939335#M62829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you tell us more about these queries? It's a bit difficult to diagnose this issue without any examples. From the top of my head, maybe you could create some indexes for your tables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you could tell us more about your queries then maybe we can give you some more specific ideas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2005 04:44:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disk-read/m-p/939335#M62829</guid>
      <dc:creator>former_member221770</dc:creator>
      <dc:date>2005-07-29T04:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: DISK Read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disk-read/m-p/939336#M62830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dare Pat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as reqd. by u, pl. see this these are the few queries...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SUM( gmnga ) INTO v_gmnga&lt;/P&gt;&lt;P&gt;  FROM afru&lt;/P&gt;&lt;P&gt;  WHERE budat = p_date      AND&lt;/P&gt;&lt;P&gt;        ile02 = 'KWH'       AND&lt;/P&gt;&lt;P&gt;        aufnr = i_ord-aufnr AND      &lt;/P&gt;&lt;P&gt;        stokz &amp;lt;&amp;gt; 'X'        AND &lt;/P&gt;&lt;P&gt;        stzhl = init_stzhl.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;********************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT prueflos merknr vorglfnr masseinhsw verwmerkm&lt;/P&gt;&lt;P&gt;   INTO CORRESPONDING FIELDS OF TABLE i_qamv&lt;/P&gt;&lt;P&gt;     FROM qamv&lt;/P&gt;&lt;P&gt;       FOR ALL ENTRIES IN i_prueflos&lt;/P&gt;&lt;P&gt;         WHERE prueflos = i_prueflos-prueflos AND&lt;/P&gt;&lt;P&gt;               verwmerkm IN s_verw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;********************************************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  a&lt;SUB&gt;bktxt b&lt;/SUB&gt;mblnr b&lt;SUB&gt;mjahr b&lt;/SUB&gt;zeile b&lt;SUB&gt;matnr b&lt;/SUB&gt;bwart&lt;/P&gt;&lt;P&gt;        d&lt;SUB&gt;maktx b&lt;/SUB&gt;lifnr e&lt;SUB&gt;name1 b&lt;/SUB&gt;erfmg b&lt;SUB&gt;dmbtr b&lt;/SUB&gt;lfbnr &lt;/P&gt;&lt;P&gt;        b&lt;SUB&gt;lfbja b&lt;/SUB&gt;lfpos b&lt;SUB&gt;sgtxt b&lt;/SUB&gt;smbln b&lt;SUB&gt;sjahr b&lt;/SUB&gt;smblp &lt;/P&gt;&lt;P&gt;        a&lt;SUB&gt;budat b&lt;/SUB&gt;werks&lt;/P&gt;&lt;P&gt;   FROM mkpf as a &lt;/P&gt;&lt;P&gt;     INNER JOIN mseg as b ON &lt;/P&gt;&lt;P&gt;       a&lt;SUB&gt;mblnr = a&lt;/SUB&gt;mblnr AND&lt;/P&gt;&lt;P&gt;       b&lt;SUB&gt;mjahr = b&lt;/SUB&gt;mjahr&lt;/P&gt;&lt;P&gt;     INNER JOIN mara as c ON &lt;/P&gt;&lt;P&gt;       b&lt;SUB&gt;matnr = c&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;     INNER JOIN makt as d ON &lt;/P&gt;&lt;P&gt;       c&lt;SUB&gt;matnr = d&lt;/SUB&gt;matnr&lt;/P&gt;&lt;P&gt;     INNER JOIN lfa1 as e ON &lt;/P&gt;&lt;P&gt;       b&lt;SUB&gt;lifnr = e&lt;/SUB&gt;lifnr&lt;/P&gt;&lt;P&gt;   INTO CORRESPONDING FIELDS OF TABLE I_DATA&lt;/P&gt;&lt;P&gt;   WHERE a~budat IN s_budat AND&lt;/P&gt;&lt;P&gt;         a~mblnr IN s_mblnr AND&lt;/P&gt;&lt;P&gt;         a~mjahr IN s_mjahr AND&lt;/P&gt;&lt;P&gt;         b~werks IN s_werks AND&lt;/P&gt;&lt;P&gt;         b~lifnr IN s_lifnr AND&lt;/P&gt;&lt;P&gt;         b~bukrs IN s_bukrs AND&lt;/P&gt;&lt;P&gt;         b~matnr IN s_matnr AND&lt;/P&gt;&lt;P&gt;         b~bwart IN r_bwart AND&lt;/P&gt;&lt;P&gt;         b~matnr IN s_matkl AND&lt;/P&gt;&lt;P&gt;         d~spras = sy-langu AND&lt;/P&gt;&lt;P&gt;         e~spras = sy-langu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abhishek suppal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2005 05:25:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disk-read/m-p/939336#M62830</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-29T05:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: DISK Read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disk-read/m-p/939337#M62831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Abhi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wow...you have some interesting queries there...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ok, one at a time...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first one:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select sum( afru~gmnga ) into v_gmnga&lt;/P&gt;&lt;P&gt;from afko&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inner join afvc&lt;/P&gt;&lt;P&gt;on afko&lt;SUB&gt;aufpl = afvc&lt;/SUB&gt;aufpl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inner join afru&lt;/P&gt;&lt;P&gt;on afvc&lt;SUB&gt;rueck = afru&lt;/SUB&gt;rueck and&lt;/P&gt;&lt;P&gt;   afvc&lt;SUB&gt;rmzhl = afru&lt;/SUB&gt;rmzhl&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;afko~aufnr = i_ord-aufnr   and&lt;/P&gt;&lt;P&gt;afru~budat = p_date        and&lt;/P&gt;&lt;P&gt;afru~ile02 = 'KWH'         and&lt;/P&gt;&lt;P&gt;afru~stokz &amp;lt;&amp;gt; 'X'          and&lt;/P&gt;&lt;P&gt;afru~stzhl = init_stzhl. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Give this a try. Since you know the Prod Order number, I thought it would be better to hit AFKO first as AUFNR is the Primary Key top this table. Now AFVC is the Prod Order Operation and AUFPL is the first field in it's Primary Key. Now AFVC has the Primary Key to AFRU. Now whether this actually 100% works or not is dependent on how your config is set up, but as I have tried to hit the primary keys whenever possible hopefully the performance should improve. You may want to open up a few sessions with SE16 and verify my joins as well... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know how this goes...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2005 06:01:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disk-read/m-p/939337#M62831</guid>
      <dc:creator>former_member221770</dc:creator>
      <dc:date>2005-07-29T06:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: DISK Read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disk-read/m-p/939338#M62832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Abhi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The I would try and split the second statement upa bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT prueflos merknr vorglfnr masseinhsw verwmerkm&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE i_qamv&lt;/P&gt;&lt;P&gt;FROM qamv&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN i_prueflos&lt;/P&gt;&lt;P&gt;WHERE prueflos = i_prueflos-prueflos.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete i_prueflos not verwmerkm IN s_verw.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suggest this because PRUEFLOS is the first part of the key, and if you only provide this it will force the DB optimiser to use the primaty key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2005 06:41:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disk-read/m-p/939338#M62832</guid>
      <dc:creator>former_member221770</dc:creator>
      <dc:date>2005-07-29T06:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: DISK Read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disk-read/m-p/939339#M62833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Abhi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OK, now this third statement is too big. I would recommend splitting it up a bit. Mainly because MKPF and MSEG are so big it scares me when we have to join them! There is no right or wrong way to hit these tables so you may have to play around a bit, but here are some thoughts:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, let's assume that because you have a select option for MBLNR:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select mkpf~......&lt;/P&gt;&lt;P&gt;into table...&lt;/P&gt;&lt;P&gt;from mkpf&lt;/P&gt;&lt;P&gt;inner join mseg&lt;/P&gt;&lt;P&gt;on mkpf&lt;SUB&gt;mblnr = mseg&lt;/SUB&gt;mblnr and&lt;/P&gt;&lt;P&gt;mkpf&lt;SUB&gt;mjahr = mseg&lt;/SUB&gt;mjahr&lt;/P&gt;&lt;P&gt;where mkpf~mblnr in s_mblnr and&lt;/P&gt;&lt;P&gt;mpkp~mjahr in s_mjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="4" type="ul"&gt;&lt;P&gt;note, i did not use "into corresponding fields of table..." because "into table..." is more efficiient as "corresponding fields" checks each and every field name to make sure that they match, while "into table" simply assumes that the fields are in the same order in the table.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I would clear out I_DATA with a series of delete statements: ie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete i_data where not werks in s_werks.&lt;/P&gt;&lt;P&gt;etc...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once again, let me know how you go.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2005 06:54:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disk-read/m-p/939339#M62833</guid>
      <dc:creator>former_member221770</dc:creator>
      <dc:date>2005-07-29T06:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: DISK Read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disk-read/m-p/939340#M62834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;very thanx Pat,&lt;/P&gt;&lt;P&gt; i am trying these queries as told by u, then revert back to u as u know they can only give the results in the production sever only may be it takes times, but the information u gave is very helpful to me i think this will solve my problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abhishek suppal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jul 2005 07:11:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disk-read/m-p/939340#M62834</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-29T07:11:14Z</dc:date>
    </item>
    <item>
      <title>Re: DISK Read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disk-read/m-p/939341#M62835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx pat &lt;/P&gt;&lt;P&gt;i am able to solve my first problem that is getting data from aufk tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abhishek suppal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 30 Jul 2005 05:11:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disk-read/m-p/939341#M62835</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-07-30T05:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: DISK Read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disk-read/m-p/939342#M62836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhishek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How did you solve your problem with the AUFK table? I'm always interested in finding new ways of doing things. Any progress on the other queries? Also if you have found any suggestions posted helpful, kindly reward points accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jul 2005 22:39:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disk-read/m-p/939342#M62836</guid>
      <dc:creator>former_member221770</dc:creator>
      <dc:date>2005-07-31T22:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: DISK Read</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/disk-read/m-p/939343#M62837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear pat,&lt;/P&gt;&lt;P&gt;i  m working on the other queries too. i will reward u all the points i don't have any problem in that...rest may be takes time but i can reward u til then....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;abhishek suppal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2005 04:15:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/disk-read/m-p/939343#M62837</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-08-01T04:15:53Z</dc:date>
    </item>
  </channel>
</rss>

