<?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/3308491#M792382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well i didnt had a real close look on it, but a FOR ALL ENTRIES statement forces a full table scan. this is pobably a part of your performance problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jan 2008 13:08:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-28T13:08:09Z</dc:date>
    <item>
      <title>Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3308490#M792381</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;I am making hitting database using following Select query.&lt;/P&gt;&lt;P&gt;It is taking lots of time . It is making selection on View.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  OPEN CURSOR  l_mvmnt  FOR       "2D202626&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SELECT mblnr&lt;/P&gt;&lt;P&gt;          mjahr&lt;/P&gt;&lt;P&gt;          budat&lt;/P&gt;&lt;P&gt;          zeile&lt;/P&gt;&lt;P&gt;          bwart&lt;/P&gt;&lt;P&gt;          matnr&lt;/P&gt;&lt;P&gt;          werks&lt;/P&gt;&lt;P&gt;     FROM v_bam_mkpf&lt;/P&gt;&lt;P&gt;      FOR ALL ENTRIES IN t_matnr_werks&lt;/P&gt;&lt;P&gt;    WHERE budat IN r_sydatum AND&lt;/P&gt;&lt;P&gt;          ( bwart IN r_bwart OR&lt;/P&gt;&lt;P&gt;            bwart IN r_bwart_rev ) and&lt;/P&gt;&lt;P&gt;          MATNR = T_MATNR_WERKS-MATNR AND&lt;/P&gt;&lt;P&gt;          werks = t_matnr_werks-werks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;      REFRESH :lt_mvmnt.&lt;/P&gt;&lt;P&gt;*--  Fetch data from the  cursor to the internal table&lt;/P&gt;&lt;P&gt;*--  based on the package size&lt;/P&gt;&lt;P&gt;      FETCH NEXT CURSOR l_mvmnt INTO CORRESPONDING FIELDS OF&lt;/P&gt;&lt;P&gt;      TABLE lt_mvmnt PACKAGE SIZE l_pkgsiz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF NOT sy-subrc IS INITIAL.&lt;/P&gt;&lt;P&gt;        CLOSE CURSOR l_mvmnt.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ELSE.&lt;/P&gt;&lt;P&gt;        APPEND LINES OF lt_mvmnt TO t_mvmnt.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with various different values of package size also&lt;/P&gt;&lt;P&gt;But query is taking lots of time.&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>Mon, 28 Jan 2008 13:05:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3308490#M792381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-28T13:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3308491#M792382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well i didnt had a real close look on it, but a FOR ALL ENTRIES statement forces a full table scan. this is pobably a part of your performance problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2008 13:08:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3308491#M792382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-28T13:08:09Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3308492#M792383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This view doesn't exist in any of our systems. Is it a view on MKPF and MSEG? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I would start by getting rid of the CURSOR.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2008 15:05:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3308492#M792383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-28T15:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3308493#M792384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shivani, try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to use the MOVE CORREPOSDING FIELDS OF statement with the select query and see the difference,try to use the key field in the select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;performance of the select statement might be low bcoz of the selection strategy you followed while coding the select statement. i think this link might help u to solve ur problem upto some extent&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/69/c250684ba111d189750000e8322d00/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kindly reward if found helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers,&lt;/P&gt;&lt;P&gt;Hema.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jan 2008 15:09:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/3308493#M792384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-28T15:09:50Z</dc:date>
    </item>
  </channel>
</rss>

