<?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: Need a Best SELECT Statement. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203383#M1203789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've sent you an email with an explanation - and your points have been partially restored. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Feb 17, 2009 6:20 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Feb 2009 05:06:13 GMT</pubDate>
    <dc:creator>matt</dc:creator>
    <dc:date>2009-02-17T05:06:13Z</dc:date>
    <item>
      <title>Need a Best SELECT Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203371#M1203777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a situation like this,&lt;/P&gt;&lt;P&gt;My client got database since from 1998. So his records crossed 20 Million in each table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now my situation is like this,&lt;/P&gt;&lt;P&gt;I have Budat(posting date) &amp;amp; matnr(Material) as my Selection screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to show the FG (Movement type 601) with billing documnet(VBRP).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The link is MKPF-XBLNR = VBRP-VGBEL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when I try to select the records from MKPF for a perticular month, because of overload(20 Million records) its taking more time(say 25-40 Sec).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when I try get data from VBRP with help of XBLNR, Its "Time Exceeded" Runtime error,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I Even tried to concatinate some date, like let say my input is march, then I ristrict VBRP by FEB to APRIL for that particular year. Still not working. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to do this Job in SAP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Client's PRD is Almost 30Million Records in Each Table.&lt;/P&gt;&lt;P&gt;Version 4.7 EE..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Help me out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 02:04:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203371#M1203777</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-17T02:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Best SELECT Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203372#M1203778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would create Indexes on both MKPF &amp;amp; VBRP with the linked fields that my program is trying to SELECT with. Make sure they are Non-unique index with "index on all database systems" when you create them via SE11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sougata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I think, your new index on MKPF should be created with fields BUDAT &amp;amp; XBLNR and new index on VBRP should be created with fields VGBEL &amp;amp; VGPOS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sougata Chatterjee on Feb 17, 2009 1:21 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 02:18:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203372#M1203778</guid>
      <dc:creator>Sougata</dc:creator>
      <dc:date>2009-02-17T02:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Best SELECT Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203373#M1203779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sougata,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please can you explain a bit more clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to make indexes for both VBRP &amp;amp; MKPF. I have no idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards, &lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 02:23:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203373#M1203779</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-17T02:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Best SELECT Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203374#M1203780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dileep,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its easy and its all [here|http://help.sap.com/saphelp_47x200/helpdata/en/cf/21eb20446011d189700000e8322d00/frameset.htm]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You'll find "Creating Secondary Indexes" under "Creating Tables" on the same page as per the link above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sougata.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 02:31:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203374#M1203780</guid>
      <dc:creator>Sougata</dc:creator>
      <dc:date>2009-02-17T02:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Best SELECT Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203375#M1203781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No need to create a secondary index. Use the material/billing document secondary index table.&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, 17 Feb 2009 03:15:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203375#M1203781</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-17T03:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Best SELECT Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203376#M1203782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sougata,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate your effort in Contibution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Problem is not yet solved,&lt;/P&gt;&lt;P&gt;I dont have Authorization to create Indexes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And i am trying on that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Sougata.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 03:15:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203376#M1203782</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-17T03:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Best SELECT Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203377#M1203783</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;need to ask you some thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Points in forums vanished yesterday,&lt;/P&gt;&lt;P&gt;and i posted a new thread asking about thta,&lt;/P&gt;&lt;P&gt;when i see in th emorning my question is also vanished.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sorry to ask this here,.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnks &lt;/P&gt;&lt;P&gt;Dileep. C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 03:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203377#M1203783</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-17T03:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Best SELECT Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203378#M1203784</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 get all data from MKPF  in internal table and use parallel cursor to reduce the data from other internal table(also get data from VBRP into one internal table on some condition), it will be more faster. always try to reduce data base hit. check your code in SE30 and compare your older code you will get the differenece.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: abhishek prakash on Feb 17, 2009 4:24 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: abhishek prakash on Feb 17, 2009 4:27 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 03:19:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203378#M1203784</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-17T03:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Best SELECT Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203379#M1203785</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 some friends told, Creating secondary index is advisible. Also try to restrict the data fetch from database using SQL stmts., &lt;/P&gt;&lt;P&gt;Refer PACKAGE SIZE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;GP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 03:22:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203379#M1203785</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-17T03:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Best SELECT Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203380#M1203786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you get an e-mail explaining what happenned?&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, 17 Feb 2009 03:23:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203380#M1203786</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-17T03:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Best SELECT Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203381#M1203787</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;&lt;/P&gt;&lt;P&gt;Sorry to say this again, Unfortunately I clicked on watches on ABAP General by without knowing it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I opened see the mail, I have seen around 1000 mails in my inbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I was unable to catch the right mail, because of the similar subjects in my inbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I dont know what happened. I am not bothered about points, It can be taken or given easily. &lt;/P&gt;&lt;P&gt;Actually My concern is if i could know the reason clarly why it was terminated, I can be more cautious to not repeat the mistakes if I had made. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it was very embarasimg to me, After a long gap I started to contribute and started solutions to queries as far as I can, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the next hour all my points dissapered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reading all this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dileep ,C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 03:30:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203381#M1203787</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-17T03:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Best SELECT Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203382#M1203788</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;&lt;/P&gt;&lt;P&gt;Also when I was reading your Blogs regarding the present Thread, I feel very happy in one case coz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I recently update a code in the code gallery stating that "JOINS are BETTER than FOR ALL ENTRIES" in some cases..&lt;/P&gt;&lt;P&gt;But unfortunately i was unable to explain as detail as you in your "Performance - what will kill you and what will leave you with only a flesh wound".. &lt;/P&gt;&lt;P&gt;But I feel very happy to see some my expectations went true in some angles.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 03:37:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203382#M1203788</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-17T03:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Best SELECT Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203383#M1203789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've sent you an email with an explanation - and your points have been partially restored. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Matt on Feb 17, 2009 6:20 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 05:06:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203383#M1203789</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-02-17T05:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Best SELECT Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203384#M1203790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have checked my mails keenly,, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realized the mistakes where I did, &lt;/P&gt;&lt;P&gt;I agree with what you did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I really want to contribute to the SCN. but some (Most of them) really dont do a better search and will not reply after we give a solution to them and they even dont know properly to close the thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;simply regestering and asking some queries and leaving like that. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We cant even know did their problem solved or left away, and how we have contributed to them, Is that was helpful to them are not, we are unable to know. This made me little frustated and just did like that. &lt;/P&gt;&lt;P&gt;And I am sorry to do like that.Here after I will take care of my Posts myself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I already read some blogs yesterday, I already came to know the real meaning of contribution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really not intrested in points. But some how wanted to know the reason.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for restoring my points MATT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 06:23:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203384#M1203790</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-17T06:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Best SELECT Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203385#M1203791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like your response and attitude - it's very refreshing.  If you encounter posts that are easily searchable, or you find that there are people who aren't closing their questions and awarding points, then use the abuse button.  That will be a great help to us.  &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;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 10:30:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203385#M1203791</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2009-02-17T10:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Best SELECT Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203386#M1203792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Back to your original question. The most common bit of advice you'll see in this particular forum, when you have a performance problem with a SELECT statement is to create a new secondary index. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is generally the wrong approach to take. You have a programming problem and it's best to look for a programming solution. Creating a new index for a single SELECT statement is inadvisable because: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) the new index will have to be maintained every time the table is updated. This will add a small amount of overhead to these updates. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) the new index will take up some of the tablespace assigned to the table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) there is no guarantee that the index will always be used by the SELECT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) eventually, the program you develop that uses this index may become obsolete, but no one will remember to get rid of the index. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5) it's lazy. &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, 17 Feb 2009 14:12:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203386#M1203792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-17T14:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Best SELECT Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203387#M1203793</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;&lt;/P&gt;&lt;P&gt;Then what can be a solution to my Query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In detail, I explain my scenario again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have DATE &amp;amp; Material as my selctions.&lt;/P&gt;&lt;P&gt;I need my report as FG materials and its BOM rw materials used &amp;amp; its ratios and Quantities, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then the material movements in th epalants, 101-102..... and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PGI FG materials &amp;amp; its quantities,... 601-602... and &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;need billing document No. for 601 &amp;amp; 602(PGI) Document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know all the relations to tables and its fields to retreive all the data... but I Failed..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because of Huge database(20 Million records in each table) in system from 1998. &lt;/P&gt;&lt;P&gt;I have no right to say my company to change database nor I cannot Quit because, I need to leave a mark my self that I missed this Object with out fulfilling my Role.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tables Used &lt;/P&gt;&lt;P&gt;MKPF, MSEG (for movement &amp;amp; PGi details)&lt;/P&gt;&lt;P&gt;MAST, STKO, STPO,(BOM Details)&lt;/P&gt;&lt;P&gt;VBRK, VBFA, LIKP (Delivery &amp;amp; Billing details)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did many reports on these tables. Invoice Lists &amp;amp; Proof of Deliveries.......many....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I failed here... I am Helpless here at this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please Let me know I could do in anyother way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards.&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 06:43:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203387#M1203793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T06:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Best SELECT Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203388#M1203794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;since you are SELECTing by material, see if secondary index table VRPMA (SD Index: Billing Items per Material) helps. (It may have been suggested earlier.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Feb 2009 14:00:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203388#M1203794</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-18T14:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Best SELECT Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203389#M1203795</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;&lt;/P&gt;&lt;P&gt;Sorry for a late responce, And thanks for your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To clearly say that was a clear CLUE fro me to close my Issue for the time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT that was not complete solution, Since by VRPMA I am getting Billing document no in date range by material, thats true. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lets say I got 20 Billing Doc's in VRPMA. &lt;/P&gt;&lt;P&gt;And I have 20 movement types in MKPF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I relate them for each Billing document has a seperate MBLNR... I strucked up here again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But as a temporary patch, which I am expecting it can be a permanent patch, &lt;/P&gt;&lt;P&gt;I compared diractly with the Material Quantity, as it should show the Invoice amount properly,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even if it is not right MBLNR &amp;amp; VBELN, but the Quantity &amp;amp; Value are same... Where I seen no trouble with that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your Knowledge sharing Once again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I have many several issues like this, which I will post back again with a Proper TITLE...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2009 05:58:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203389#M1203795</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T05:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Need a Best SELECT Statement.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203390#M1203796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure I understand the problem now, but you may be able to use the Sales document flow table (VBFA) to determine the relationships.&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, 27 Feb 2009 14:17:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/need-a-best-select-statement/m-p/5203390#M1203796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-27T14:17:49Z</dc:date>
    </item>
  </channel>
</rss>

