<?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 issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290299#M1220428</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;for perofrmance u can remove the join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also try to incorporate POSTING DATE in this query .&lt;/P&gt;&lt;P&gt;SELECT mblnr mjahr bktxt &lt;/P&gt;&lt;P&gt;INTO TABLE TABLE1&lt;/P&gt;&lt;P&gt;FROM  mkpf&lt;/P&gt;&lt;P&gt;WHERE mjahr = p_mjahr&lt;/P&gt;&lt;P&gt;AND bktxt NE space&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;place loop on that or .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at TABLE1.&lt;/P&gt;&lt;P&gt;  SELECT mblnr mjahr matnr lgort charg erfmg&lt;/P&gt;&lt;P&gt;appending  TABLE i_mseg1&lt;/P&gt;&lt;P&gt;FROM    mseg &lt;/P&gt;&lt;P&gt;WHERE mjahr = TABLE1-mjahr&lt;/P&gt;&lt;P&gt;and       mblnr  = TABLE1-mblnr&lt;/P&gt;&lt;P&gt;AND vgart = 'WA'&lt;/P&gt;&lt;P&gt;AND lgort = 'SCRP'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0 .&lt;/P&gt;&lt;P&gt;i_mseg1-bktxt = TABLE1-bktxt.&lt;/P&gt;&lt;P&gt;modify i_mesg1 transporting bktxt where mblnr = TABLE1-MBLNR and MJHAR = TABLE1-MJHAR.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please currect the code i have writen it in hurry but it will solve ur perforance problem .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Mar 2009 04:49:47 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-05T04:49:47Z</dc:date>
    <item>
      <title>Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290286#M1220415</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;I have performance problem in my program.&lt;/P&gt;&lt;P&gt;Can anybody suggest me how can i change following query for better performance?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a&lt;SUB&gt;mblnr a&lt;/SUB&gt;mjahr a~bktxt&lt;/P&gt;&lt;P&gt;         b~matnr lgort charg erfmg&lt;/P&gt;&lt;P&gt;         INTO TABLE i_mseg1&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 = b&lt;/SUB&gt;mblnr )&lt;/P&gt;&lt;P&gt;         WHERE a~mjahr = p_mjahr&lt;/P&gt;&lt;P&gt;         AND vgart = 'WA'&lt;/P&gt;&lt;P&gt;         AND bktxt NE space&lt;/P&gt;&lt;P&gt;         AND lgort = 'SCRP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;soni.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 05:47:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290286#M1220415</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T05:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290287#M1220416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soniya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of using joins try to use "FOR ALL ENTRIES" &amp;amp; see if this resolves your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bhumika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 05:53:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290287#M1220416</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T05:53:32Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290288#M1220417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Soniya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope the below query will solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : lr_mblnr type range of mseg-mblnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT a&lt;SUB&gt;mblnr a&lt;/SUB&gt;mjahr a~bktxt&lt;/P&gt;&lt;P&gt;              b&lt;SUB&gt;matnr b&lt;/SUB&gt;lgort b&lt;SUB&gt;charg b&lt;/SUB&gt;erfmg&lt;/P&gt;&lt;P&gt;INTO TABLE i_mseg1&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 = b&lt;/SUB&gt;mblnr )&lt;/P&gt;&lt;P&gt;WHERE  a~mblnr in lr_mblnr&lt;/P&gt;&lt;P&gt;and a~mjahr = p_mjahr&lt;/P&gt;&lt;P&gt;AND a~vgart = 'WA'&lt;/P&gt;&lt;P&gt;AND a~bktxt NE space&lt;/P&gt;&lt;P&gt;AND b~lgort = 'SCRP'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if this query did not solve your problem, retrieve the required from MKPF and use the FOR ALL ENTRIES and retreive the data from MSEG.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Phani.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 05:56:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290288#M1220417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T05:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290289#M1220418</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;Try to use all the key fields in the select statement and aviod the join,use for all entires,before using for all entires check entires are there or not and sort the internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Surendar Reddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 05:57:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290289#M1220418</guid>
      <dc:creator>suredarreddy_pulimamidi</dc:creator>
      <dc:date>2009-03-02T05:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290290#M1220419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;     Fetch the code without bktxt NE in where condition, the Delete all the records which r bktxt = ' '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT a~mblnr 
             a~mjahr 
             a~bktxt
             b~matnr 
             b~lgort 
             b~charg 
             b~erfmg
                          INTO TABLE i_mseg1
                          FROM  mkpf AS a INNER JOIN mseg AS b ON a~mblnr = b~mblnr 
                          WHERE a~mjahr = p_mjahr
                          AND vgart = 'WA'
                          AND lgort = 'SCRP'.

DELETE i_mseg1 WHERE bktxt = ' '.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&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;Bala Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 05:58:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290290#M1220419</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2009-03-02T05:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290291#M1220420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sonia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use both the key fields,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mblnr and mjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please try and reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 05:59:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290291#M1220420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T05:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290292#M1220421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Soniya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remove this condition from WHERE clause 'a~bktxt NE space' and try deleting the entries from the internal table i_mseg1 for bktxt eq space after ur fetch.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete i_mseg1 where bktxt = space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Dhanalakshmi M S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2009 06:00:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290292#M1220421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-02T06:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290293#M1220422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Moved to correct forum&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 14:30:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290293#M1220422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T14:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290294#M1220423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Remove this condition from WHERE clause 'a~bktxt NE space' and try deleting the entries from the internal table i_mseg1 for bktxt eq space after ur fetch.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; delete i_mseg1 where bktxt = space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Since BKTXT is not used in any index, this will only &lt;U&gt;increase&lt;/U&gt; execution time.&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, 03 Mar 2009 15:49:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290294#M1220423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T15:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290295#M1220424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sometimes I am really wondering what you expect ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Assume you go to a bookshop and you want a book of autor, whos last name starts with 'D*' and&lt;/P&gt;&lt;P&gt;the first name is not 'John'.  And there is tiger on red background on the front cover.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How fast will that work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you really expect that by removing the 'first name is not 'John' it will become faster ????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you understand that then you will understand that there is no fast solution for your task. Either you can add something to your WHERE condition, something which really restricts the result or check&lt;/P&gt;&lt;P&gt;... until you find the book with the tiger.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And please don't distribute points for recommendations which can never help, test first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 16:41:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290295#M1220424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T16:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290296#M1220425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;WHERE  bktxt  GT  space&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2009 17:47:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290296#M1220425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T17:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290297#M1220426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Try &lt;/P&gt;&lt;/CODE&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;CODE&gt;WHERE  bktxt  GT  space&lt;/CODE&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;From a performance standpoint, I don't think there would be any difference.&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, 03 Mar 2009 18:12:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290297#M1220426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-03T18:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290298#M1220427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2009 11:54:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290298#M1220427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-04T11:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290299#M1220428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;for perofrmance u can remove the join&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also try to incorporate POSTING DATE in this query .&lt;/P&gt;&lt;P&gt;SELECT mblnr mjahr bktxt &lt;/P&gt;&lt;P&gt;INTO TABLE TABLE1&lt;/P&gt;&lt;P&gt;FROM  mkpf&lt;/P&gt;&lt;P&gt;WHERE mjahr = p_mjahr&lt;/P&gt;&lt;P&gt;AND bktxt NE space&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;place loop on that or .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at TABLE1.&lt;/P&gt;&lt;P&gt;  SELECT mblnr mjahr matnr lgort charg erfmg&lt;/P&gt;&lt;P&gt;appending  TABLE i_mseg1&lt;/P&gt;&lt;P&gt;FROM    mseg &lt;/P&gt;&lt;P&gt;WHERE mjahr = TABLE1-mjahr&lt;/P&gt;&lt;P&gt;and       mblnr  = TABLE1-mblnr&lt;/P&gt;&lt;P&gt;AND vgart = 'WA'&lt;/P&gt;&lt;P&gt;AND lgort = 'SCRP'.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0 .&lt;/P&gt;&lt;P&gt;i_mseg1-bktxt = TABLE1-bktxt.&lt;/P&gt;&lt;P&gt;modify i_mesg1 transporting bktxt where mblnr = TABLE1-MBLNR and MJHAR = TABLE1-MJHAR.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please currect the code i have writen it in hurry but it will solve ur perforance problem .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 04:49:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290299#M1220428</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T04:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290300#M1220429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; Please currect the code i have writen it in hurry but it will solve ur perforance problem .&lt;/P&gt;&lt;P&gt;no it will not ....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 10:15:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290300#M1220429</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T10:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290301#M1220430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;few points.1.What is the requirement for this selection?u require all the Material Documents in the storage location 'SCRP'.'?'  inclusive of inward and outward movements? Is p_mjahr mandatory field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To improve Performance &lt;/P&gt;&lt;P&gt;1.always use index fields in the WHERE condition,especially large tables like MKPF and MSEG&lt;/P&gt;&lt;P&gt;2.do u have index  on budat..if so try to provide a~budat IN s_year(fill the date range for year p_mjahr)&lt;/P&gt;&lt;P&gt;3.Join condition should include max possible entries say.. AND a&lt;SUB&gt;mjahr = b&lt;/SUB&gt;mjahr&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2009 11:59:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/5290301#M1220430</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-05T11:59:56Z</dc:date>
    </item>
  </channel>
</rss>

