<?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 with data retrieval in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-data-retrieval/m-p/5419342#M1244017</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have learned the lesson and moving forward i would close the thread as soon as the issue is resolved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for all your advice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Apr 2009 13:09:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-03T13:09:07Z</dc:date>
    <item>
      <title>Performance issue with data retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-data-retrieval/m-p/5419337#M1244012</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Do not cross post, and DO check your email - and important message is waiting for you&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a date base view linked with tabbles EKKO,EKPO,EKBE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a selection screen with Vendor No(ekko-lifnr),Material No(ekpo-matnr), Material Group(elpo-maktl) and Posting Date(EKBE-budat) and none of them are mandatory for user to specify a value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a database view with EKKO,EKPO and EKBE but when i 'm trying to retrieve records its taking too much time and there is an performance issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest a better approach&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;Edited by: Matt on Apr 3, 2009 11:12 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Apr 2009 23:12:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-data-retrieval/m-p/5419337#M1244012</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-02T23:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with data retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-data-retrieval/m-p/5419338#M1244013</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;its not necessary to create data base view for your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;get the purchase document number (EBELN)  if they enter Vendor No(ekko-lifnr) or Material No(ekpo-matnr) or Material Group(elpo-maktl)  or  Posting Date(EKBE-budat) . based on purchase document number fetch remaining dat using select for all entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you said selection screen parameters are optional only. so no one is part of primary key of the table. in this case you have to create secondary index for three table by combination of primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create secondary  index in three table &lt;/P&gt;&lt;P&gt;ekko table which is having fieds of ebeln and lifnr&lt;/P&gt;&lt;P&gt;ekpo consist of ebeln, matnr and maktl&lt;/P&gt;&lt;P&gt;ekbe consis of ebeln and budat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after creating secondary index fetch data based on secondary index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it will resolve your problem.&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;Peranandam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 05:38:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-data-retrieval/m-p/5419338#M1244013</guid>
      <dc:creator>Peranandam</dc:creator>
      <dc:date>2009-04-03T05:38:39Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with data retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-data-retrieval/m-p/5419339#M1244014</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 using an inner join for EKKO and EKPO and compare the performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 06:48:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-data-retrieval/m-p/5419339#M1244014</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T06:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with data retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-data-retrieval/m-p/5419340#M1244015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;cross-post&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="thread" id="1294737"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 08:51:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-data-retrieval/m-p/5419340#M1244015</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2009-04-03T08:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with data retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-data-retrieval/m-p/5419341#M1244016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Do not cross post, and DO check your email - and important message is waiting for you&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 09:13:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-data-retrieval/m-p/5419341#M1244016</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-04-03T09:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with data retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-data-retrieval/m-p/5419342#M1244017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have learned the lesson and moving forward i would close the thread as soon as the issue is resolved&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again for all your advice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2009 13:09:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-data-retrieval/m-p/5419342#M1244017</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T13:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with data retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-data-retrieval/m-p/5419343#M1244018</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;This is my selection screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS:&lt;/P&gt;&lt;P&gt;  costctr    FOR ekkn-kostl MATCHCODE OBJECT kost,&lt;/P&gt;&lt;P&gt;  order       FOR ekkn-aufnr MATCHCODE OBJECT orde,&lt;/P&gt;&lt;P&gt;  vendor     FOR ekko-lifnr,&lt;/P&gt;&lt;P&gt;  mat         FOR ekpo-matnr,&lt;/P&gt;&lt;P&gt;  s_matgrp FOR ekpo-matkl,&lt;/P&gt;&lt;P&gt;  agree       FOR ekko-konnr,&lt;/P&gt;&lt;P&gt;  so_werks  FOR ekpo-werks,&lt;/P&gt;&lt;P&gt;  desc         FOR  ekpo-txz01 NO INTERVALS,&lt;/P&gt;&lt;P&gt;  p_idnlf       FOR ekpo-idnlf NO INTERVALS,&lt;/P&gt;&lt;P&gt; so_date      FOR ekbe-budat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my DB VIEW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EKPO	MANDT	=	EKKO	MANDT&lt;/P&gt;&lt;P&gt;EKPO	EBELN	=	EKKO	EBELN&lt;/P&gt;&lt;P&gt;EKPO	MANDT	=	EKBE	MANDT&lt;/P&gt;&lt;P&gt;EKPO	EBELN	=	EKBE	EBELN&lt;/P&gt;&lt;P&gt;EKPO	EBELP	=	EKBE	EBELP&lt;/P&gt;&lt;P&gt;LFA1	MANDT	=	EKKO	MANDT&lt;/P&gt;&lt;P&gt;LFA1	LIFNR	=	EKKO	LIFNR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SELECT * FROM DBVIEW INTO TABLE ITAB WHERE&lt;/P&gt;&lt;P&gt;           lifnr IN vendor   AND&lt;/P&gt;&lt;P&gt;           matnr IN mat      AND&lt;/P&gt;&lt;P&gt;           matkl IN s_matgrp AND&lt;/P&gt;&lt;P&gt;           txz01 IN desc     AND&lt;/P&gt;&lt;P&gt;           konnr IN agree    AND&lt;/P&gt;&lt;P&gt;           budat IN so_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know how can i improve this statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or some other way as the above seklect statement is taking too much time&lt;/P&gt;&lt;P&gt;&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, 03 Apr 2009 13:21:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-data-retrieval/m-p/5419343#M1244018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-03T13:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with data retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-data-retrieval/m-p/5419344#M1244019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what do you expect as an answer, there are 6 select-options, each one can be off and on, used or unused, which gets you 2**6 = 64 different combinations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are no way that all will be fast, some combinations will not be selective.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So better with a combination, which makes sense and which is slow. Check the SQL Trace.&lt;/P&gt;&lt;P&gt;What is done, which order of processing, which index etc. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that way you can check all combinations which make sense,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe there indexes missing, maybe the optimizer chooses a wrong index. Unfortunately even with all&lt;/P&gt;&lt;P&gt;information these check can take a while.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It can be necssary,you must offer different coding option depending on the used options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Apr 2009 19:27:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-data-retrieval/m-p/5419344#M1244019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-04T19:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with data retrieval</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-data-retrieval/m-p/5419345#M1244020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Issue resolved on own&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2009 15:41:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-data-retrieval/m-p/5419345#M1244020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-17T15:41:51Z</dc:date>
    </item>
  </channel>
</rss>

