<?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/2818956#M659280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While extracting data using SELECT make sure that you pass all primary keys so the runtime will use the primary index which will fasten the process. If primary keys are not available then check Secondary indexes present for the database tables. If you can make use of any of these secondary indexes in your WHERE clause, that will improve the performance. You need to explicitly mention which index to be used while extracting data in the SELECT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT bukrs hkont gjahr belnr buzei&lt;/P&gt;&lt;P&gt;monat dmbtr kostl prctr xref3 shkzg budat bldat&lt;/P&gt;&lt;P&gt;FROM bsis&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE itab&lt;/P&gt;&lt;P&gt;WHERE bukrs IN bukrs&lt;/P&gt;&lt;P&gt;AND hkont IN hkont&lt;/P&gt;&lt;P&gt;AND gjahr EQ gjahr&lt;/P&gt;&lt;P&gt;AND monat EQ monat&lt;/P&gt;&lt;P&gt;AND prctr IN prctr&lt;/P&gt;&lt;P&gt;AND kostl IN s_kostl&lt;/P&gt;&lt;P&gt;%_hints oracle 'INDEX("BSIS~XXX")'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here XXX is secondary index for fields BUKRS HKONT GJAHR MONAT PRCTR &amp;amp; KOSTL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Sep 2007 17:13:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-25T17:13:18Z</dc:date>
    <item>
      <title>Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2818946#M659270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guyz,&lt;/P&gt;&lt;P&gt;I have to create a Z-report and it requires data to be fetched from almost 14 differents sap tables, and in final output there are around 22 columns in it. But the performance will be the big challenge, because this report have a massive data. So what you guyz recommend the technical desgin...should i create some views e.g 2 views and use them in program. Will it improves the performance.&lt;/P&gt;&lt;P&gt;What you guyz recommend....??&lt;/P&gt;&lt;P&gt;If you have some other idea for improving the performance, pls share it with me..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Sal Khan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2007 21:45:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2818946#M659270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-24T21:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2818947#M659271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the SQL viewpoint, all you have to do is make sure that you make efficient use of indexes when retrieving data. You can retrieve data from many tables very quickly if you just keep this in mind.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the ABAP viewpoint, avoid nested loops.&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, 24 Sep 2007 21:49:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2818947#M659271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-24T21:49:41Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2818948#M659272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you can...Create some views...also...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Do not use SELECT-ENDSELECT.
* Use field-symbols.
* Use complete keys and index for DB reading.
* Use sorted tables when possible.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Blag.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2007 21:50:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2818948#M659272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-24T21:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2818949#M659273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pls tell me whether Views will make my report effecient?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2007 13:29:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2818949#M659273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-25T13:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2818950#M659274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If in case the data to be fetched from all the 14 tables are present in any of the Logcal database like PSJ etc.,then attaching a logical data base to your customised report would be the best choice as it includes all the data fetching statements according to the Hierarchy of the tables defined in the Structure defined in LDB.You can have a look at different LDBs in the T-code SE36 and find out if any of the LDB suffice the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also defne your own selection screen in addition to the selection screen defined in the LDB and it becomes very handy to use in case the requirements changes at a later stage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case you have any further clarifications,do let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Puneet Jhari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2007 13:37:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2818950#M659274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-25T13:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2818951#M659275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Views may give a very samll performance improvement because you may end up pulling less data. But if you follow the points I posted above, you'll do much better.&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, 25 Sep 2007 14:04:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2818951#M659275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-25T14:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2818952#M659276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;U mean i need to create secondary index for my select stmts? This is what you mean by proper indexing?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2007 16:42:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2818952#M659276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-25T16:42: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/2818953#M659277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No - I meant try to use the ones that are there.&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, 25 Sep 2007 16:44:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2818953#M659277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-25T16:44:04Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2818954#M659278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;U mean i need to create secondary index for my select stmts? This is what you mean by proper indexing?&lt;/P&gt;&lt;P&gt;Puneet,&lt;/P&gt;&lt;P&gt;No logical database exists becuase it has some customized tables also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2007 16:59:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2818954#M659278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-25T16: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/2818955#M659279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But u r talking about sec index?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2007 17:00:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2818955#M659279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-25T17:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2818956#M659280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;While extracting data using SELECT make sure that you pass all primary keys so the runtime will use the primary index which will fasten the process. If primary keys are not available then check Secondary indexes present for the database tables. If you can make use of any of these secondary indexes in your WHERE clause, that will improve the performance. You need to explicitly mention which index to be used while extracting data in the SELECT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT bukrs hkont gjahr belnr buzei&lt;/P&gt;&lt;P&gt;monat dmbtr kostl prctr xref3 shkzg budat bldat&lt;/P&gt;&lt;P&gt;FROM bsis&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF TABLE itab&lt;/P&gt;&lt;P&gt;WHERE bukrs IN bukrs&lt;/P&gt;&lt;P&gt;AND hkont IN hkont&lt;/P&gt;&lt;P&gt;AND gjahr EQ gjahr&lt;/P&gt;&lt;P&gt;AND monat EQ monat&lt;/P&gt;&lt;P&gt;AND prctr IN prctr&lt;/P&gt;&lt;P&gt;AND kostl IN s_kostl&lt;/P&gt;&lt;P&gt;%_hints oracle 'INDEX("BSIS~XXX")'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here XXX is secondary index for fields BUKRS HKONT GJAHR MONAT PRCTR &amp;amp; KOSTL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Sep 2007 17:13:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2818956#M659280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-25T17:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2818957#M659281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Primary or secondary - use whatever is available, but unless they're custom tables, I would not be creating secondary indexes for this one report.&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, 25 Sep 2007 17:14:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/2818957#M659281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-25T17:14:33Z</dc:date>
    </item>
  </channel>
</rss>

