<?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: Taking too much time in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/taking-too-much-time/m-p/4182277#M999759</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way to modify code to increase performance of statement instead of create index.&lt;/P&gt;&lt;P&gt;Please let me know the process how to create indexes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 Jul 2008 14:21:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-18T14:21:19Z</dc:date>
    <item>
      <title>Taking too much time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/taking-too-much-time/m-p/4182271#M999753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using this select statement in my report, this is taking too much time to pick the data. BSAK table contains huge data.&lt;/P&gt;&lt;P&gt;please modify this statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SELECT BUKRS LIFNR ZUONR BELNR BUDAT BLDAT  &lt;/P&gt;&lt;P&gt;           XBLNR SHKZG DMBTR HKONT &lt;/P&gt;&lt;P&gt;           INTO TABLE I_BSAK  FROM BSAK&lt;/P&gt;&lt;P&gt;           WHERE BUKRS = CO_CODE-LOW&lt;/P&gt;&lt;P&gt;           AND UMSKS = 'A'   AND UMSKZ IN SPEC_GL   AND  &lt;/P&gt;&lt;P&gt;           AUGDT &amp;gt; ASOFDATE  AND BUDAT &amp;lt;= ASOFDATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 13:37:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/taking-too-much-time/m-p/4182271#M999753</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T13:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Taking too much time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/taking-too-much-time/m-p/4182272#M999754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ss,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i can see in &lt;STRONG&gt;BSAK&lt;/STRONG&gt; &lt;EM&gt;Accounting: Secondary Index for Vendors (Cleared Items)&lt;/EM&gt; which have 10 primary keys and in your select query you are using only 3.please use as much as you can.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 13:40:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/taking-too-much-time/m-p/4182272#M999754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T13:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Taking too much time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/taking-too-much-time/m-p/4182273#M999755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create a secondary index which matches your select statement; first find out which of the selection criteria narrows down the selection the most, put this field as the first in the secondary index, then the second.... and so on. Finally use the same order of fields in the select statement.&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;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 13:43:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/taking-too-much-time/m-p/4182273#M999755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T13:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Taking too much time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/taking-too-much-time/m-p/4182274#M999756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John - it's a bad idea to create a secondary index on an SAP table to speed up a single SELECT statement - particulary when there's an easy programming solution.&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, 18 Jul 2008 13:47:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/taking-too-much-time/m-p/4182274#M999756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T13:47:15Z</dc:date>
    </item>
    <item>
      <title>Re: Taking too much time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/taking-too-much-time/m-p/4182275#M999757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob - I'm very interested in the easy programming solution?&lt;/P&gt;&lt;P&gt;I agree that you shouldn't create a secondary index just for one report; but if the performance of the report is a big issue than I don't have a problem with that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 13:51:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/taking-too-much-time/m-p/4182275#M999757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T13:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: Taking too much time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/taking-too-much-time/m-p/4182276#M999758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've posted the answer a number of times and even written a blog that includes it. If the original poster had searched the forum, he would have found it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But even if there were no solution, it would still be a bad idea. There is overhead when creating indexes on heavily used SAP tables. This program could probably be run 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, 18 Jul 2008 14:00:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/taking-too-much-time/m-p/4182276#M999758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T14:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: Taking too much time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/taking-too-much-time/m-p/4182277#M999759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way to modify code to increase performance of statement instead of create index.&lt;/P&gt;&lt;P&gt;Please let me know the process how to create indexes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 14:21:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/taking-too-much-time/m-p/4182277#M999759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T14:21:19Z</dc:date>
    </item>
    <item>
      <title>Re: Taking too much time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/taking-too-much-time/m-p/4182278#M999760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;To Create Index -Open the table in SE11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in Application Toolbar there is a tab Called INDEXES.&lt;/P&gt;&lt;P&gt;Click that And give the name of Secondary index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mention the Fields in the input box on which you want to create the index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now save and Activate that.&lt;/P&gt;&lt;P&gt;Check this link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb47446011d189700000e8322d00/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/cf/21eb47446011d189700000e8322d00/content.htm&lt;/A&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;Sujit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jul 2008 14:38:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/taking-too-much-time/m-p/4182278#M999760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-18T14:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Taking too much time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/taking-too-much-time/m-p/4182279#M999761</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;&lt;/P&gt;&lt;P&gt;LIFNR&lt;/P&gt;&lt;P&gt;BUKRS&lt;/P&gt;&lt;P&gt;AUGDT&lt;/P&gt;&lt;P&gt;AUGBL&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;GJAHR&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;BELNR&lt;/P&gt;&lt;P&gt;BUZEI    fields are Secondary index for logical database so use maximum number of thses frelds in where condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can use  range of GJAHR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GJAHR (Fiscal Year) = year from these fields v_GJAHR &lt;/P&gt;&lt;P&gt;(&lt;/P&gt;&lt;P&gt;AUGDT &amp;gt; ASOFDATE AND BUDAT &amp;lt;= ASOFDATE.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;use this help &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt; range for date (year) &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;if not s_date[] is initial.&lt;/P&gt;&lt;P&gt;    wa_r_year-sign   =  c_i.&lt;/P&gt;&lt;P&gt;    wa_r_year-option = c_option.&lt;/P&gt;&lt;P&gt;    wa_r_year-low    = s_date-low+0(4).&lt;/P&gt;&lt;P&gt;    wa_r_year-high   = s_date-high+0(4).&lt;/P&gt;&lt;P&gt;    if wa_r_year-high is initial.&lt;/P&gt;&lt;P&gt;      wa_r_year-high = s_date-low+0(4).&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;    append wa_r_year to r_year.&lt;/P&gt;&lt;P&gt;    clear: wa_r_year.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that 'll sure help u &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Amit Kumar on Jul 21, 2008 6:54 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Amit Kumar on Jul 21, 2008 6:54 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 04:54:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/taking-too-much-time/m-p/4182279#M999761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T04:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: Taking too much time</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/taking-too-much-time/m-p/4182280#M999762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry to inform you ,this is not clear for me.&lt;/P&gt;&lt;P&gt;You mean, do i need to declare ranges ?&lt;/P&gt;&lt;P&gt;wa_r_year-sign = c_i.&lt;/P&gt;&lt;P&gt;wa_r_year-option = c_option.&lt;/P&gt;&lt;P&gt;wa_r_year-low = s_date-low+0(4).&lt;/P&gt;&lt;P&gt;wa_r_year-high = s_date-high+0(4).&lt;/P&gt;&lt;P&gt;if wa_r_year-high is initial.&lt;/P&gt;&lt;P&gt;wa_r_year-high = s_date-low+0(4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to creat and i dont want to use "GJAHR" in my select statement. If you dont mind please give the solution clearly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Subbu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2008 11:42:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/taking-too-much-time/m-p/4182280#M999762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-21T11:42:17Z</dc:date>
    </item>
  </channel>
</rss>

