<?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 - Select statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-statement/m-p/2118366#M443640</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; As said above ... Include all the primary key fields in your select statement in where condition and try to divide the data in to multiple internal tables ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Apr 2007 14:14:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-04-16T14:14:34Z</dc:date>
    <item>
      <title>Performance issue - Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-statement/m-p/2118362#M443636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi  I am having the 10 lack records in the KONP table . If i am trying to see all the records in SE11 , it is giving the short dump TSV_TNEW_PAGE_ALLOC_FAILED . I know this is because of less memory in the Server . Is there any other way to get the data ? How to optimise the below SELECT statement if i have large data in the table .&lt;/P&gt;&lt;P&gt;i_condn_data - is having 8 lack records .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT knumh kznep valtg valdt zterm&lt;/P&gt;&lt;P&gt;        FROM konp&lt;/P&gt;&lt;P&gt;        INTO TABLE i_condn_data_b&lt;/P&gt;&lt;P&gt;        FOR ALL ENTRIES IN i_condn_data&lt;/P&gt;&lt;P&gt;        WHERE knumh = i_condn_data-knumh&lt;/P&gt;&lt;P&gt;        AND kschl = p_kschl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 13:57:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-statement/m-p/2118362#M443636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T13:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue - Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-statement/m-p/2118363#M443637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try to use all Primary keys from KONP in the WHERE condition of the Select statment. that will be only solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 14:02:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-statement/m-p/2118363#M443637</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T14:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue - Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-statement/m-p/2118364#M443638</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;You can make use of the PACKAGE SIZE addition for the SELECT statements.&lt;/P&gt;&lt;P&gt;This will read data from table in sets rather than the whole table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sumant.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 14:03:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-statement/m-p/2118364#M443638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T14:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue - Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-statement/m-p/2118365#M443639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt; if u want all the data..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;divide the table &amp;lt;b&amp;gt;i_condn_data into 4 internal tables with 2 lakh records&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write select query four times with these 4 itabs..which will avoid short dump..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 14:11:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-statement/m-p/2118365#M443639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T14:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue - Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-statement/m-p/2118366#M443640</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; As said above ... Include all the primary key fields in your select statement in where condition and try to divide the data in to multiple internal tables ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 14:14:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-statement/m-p/2118366#M443640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T14:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue - Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-statement/m-p/2118367#M443641</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 "UP TO n ROWS" to control the quantity of selected data in each Loop step.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sort itab by itab-knumh.&lt;/P&gt;&lt;P&gt;flag = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while flag = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT knumh kznep valtg valdt zterm&lt;/P&gt;&lt;P&gt;FROM konp&lt;/P&gt;&lt;P&gt;INTO TABLE i_condn_data_b UP TO one_million ROWS&lt;/P&gt;&lt;P&gt;WHERE knumh &amp;gt; new_value_for_selection&lt;/P&gt;&lt;P&gt;AND kschl = p_kschl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;describe table i_condn_data_b lines i.&lt;/P&gt;&lt;P&gt;read table i_condn_data_b index i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;new_value_for_selection = i_condn_data_b-knumh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*....your logic for table i_condn_data_b&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if  one_million  &amp;gt; i.&lt;/P&gt;&lt;P&gt;clear flag.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endwhile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 14:19:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-statement/m-p/2118367#M443641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T14:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue - Select statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-statement/m-p/2118368#M443642</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;chk for duplicate entries in i_condn_data comparing knumh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try to split your select or use package size option in ur select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Apr 2007 14:21:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-select-statement/m-p/2118368#M443642</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-04-16T14:21:32Z</dc:date>
    </item>
  </channel>
</rss>

