<?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: Performance problem? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3470490#M834216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on how many results you are going to get from MKPF.  Assuming that you can filter MKPF to narrow the initial selection using some of the fields (mjahr, budat), it should speed it up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Mar 2008 16:24:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-07T16:24:48Z</dc:date>
    <item>
      <title>Performance problem?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3470486#M834212</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;             When i am executing the below Select statement &lt;STRONG&gt;its taking nearly 8 to 9 minutes to get&lt;/STRONG&gt; executed.Can anybody tell me how to increase the Performce of this Below Select statement.?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Select&lt;/P&gt;&lt;P&gt;           MSEG~EBELN&lt;/P&gt;&lt;P&gt;           MSEG~EBELP&lt;/P&gt;&lt;P&gt;           MKPF~BUDAT&lt;/P&gt;&lt;P&gt;           into table itab_MKPF&lt;/P&gt;&lt;P&gt;           From MKPF as MKPF&lt;/P&gt;&lt;P&gt;           Inner join MSEG as MSEG&lt;/P&gt;&lt;P&gt;           ON&lt;/P&gt;&lt;P&gt;           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 MSEG&lt;SUB&gt;BWART = '101' or MSEG&lt;/SUB&gt;BWART = '102' .&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gopi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 15:33:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3470486#M834212</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T15:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3470487#M834213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make this change&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: ra_bwart type range of bwart with header line.
ra_bwart-sign = 'I'.
ra_bwart-option = 'EQ'.
ra_bwart-low = '101'.
append ra_bwart.
ra_bwart-low = '102'.
append ra_bwart.

MSEG~EBELN
MSEG~EBELP
MKPF~BUDAT
into table itab_MKPF
From MKPF as MKPF
Inner join MSEG as MSEG
ON
MKPF~MBLNR = MSEG~MBLNR AND
MKPF~MJAHR = MSEG~MJAHR
where MSEG~BWART in ra_bwart.
" This will improve the performance
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 15:43:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3470487#M834213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T15:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3470488#M834214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This query depends heavily on how much data is in MKPF and MSEG (which is usually alot) since you are basically joining the entire table for the movements you specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would rethink the query complete and try to break up it up into two separate queries.  Select first from MKPF the records you want into an itab, then do a 'for all entries' to select from MSEG using MBLNR and MJAHR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 15:46:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3470488#M834214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T15:46:18Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3470489#M834215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;              Thanks for ur response,But i have to get BUDAt also from MKPF table.If i have to do like what u told.&lt;/P&gt;&lt;P&gt;Get MKPF details,Then apply For all entries with MSEG table and get EBELN and EBELP details.then again i have to combine BUDAt adn ebeln and ebelp into single internal table.Do u think it is going to increase performance ?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gopi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 15:56:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3470489#M834215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T15:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3470490#M834216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gopi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It depends on how many results you are going to get from MKPF.  Assuming that you can filter MKPF to narrow the initial selection using some of the fields (mjahr, budat), it should speed it up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 16:24:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3470490#M834216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T16:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3470491#M834217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;              i treid like what u told but its taking to much of time. like 7 to 8 minutes while executing for All Entries with MKPF and MSEHG tables.is there any other alternative?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gopi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 16:25:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3470491#M834217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T16:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3470492#M834218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think there's much you can do with this other than run it in the background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 16:52:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem/m-p/3470492#M834218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T16:52:18Z</dc:date>
    </item>
  </channel>
</rss>

