<?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: View Performance Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/view-performance-issue/m-p/1676386#M298282</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;  Thank you very much for your thoughtful inputs ! actually report is taking indefinite time when retrieving records from the view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the processing block which is taking a long time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select distinct vbeln fkart vtweg knumv fkdat kunrg sfakn knuma&lt;/P&gt;&lt;P&gt;    into table i_man_accr2&lt;/P&gt;&lt;P&gt;    from zvbrkvrpma&lt;/P&gt;&lt;P&gt;    for all entries in i_doc_flow&lt;/P&gt;&lt;P&gt;    where ( fkart eq 'ZCB4' or fkart eq 'S2' or fkart eq 'S1' )&lt;/P&gt;&lt;P&gt;    and vbeln eq i_doc_flow-vbeln&lt;/P&gt;&lt;P&gt;    and vtweg eq p_vtweg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does selecting fields from vbrk will help avoid taking view at all into consideration??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Nov 2006 05:22:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-07T05:22:56Z</dc:date>
    <item>
      <title>View Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/view-performance-issue/m-p/1676380#M298276</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;We have created a zview which combines vbrk &amp;amp; vrpma tables, but the performance(response time) of the view is not good as it has millions of records. what can be done to the view to increase performance ? we have a situation where we cannot go without view !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 10:07:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/view-performance-issue/m-p/1676380#M298276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T10:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: View Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/view-performance-issue/m-p/1676381#M298277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pass mandatory fields as conditions&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 11:41:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/view-performance-issue/m-p/1676381#M298277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T11:41:44Z</dc:date>
    </item>
    <item>
      <title>Re: View Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/view-performance-issue/m-p/1676382#M298278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ashok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thanks for your reply, we have already specified join conditions while creating the view. How can we improve the table performance ?? does buffering the view will help the case. the view has approximately 13 crore records !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 12:09:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/view-performance-issue/m-p/1676382#M298278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T12:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: View Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/view-performance-issue/m-p/1676383#M298279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't thin that buffering so big view is good solution. Moreover vbrk table is changed very often - so buffering the view will make no sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if your joins conditions are useing keys or indexes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&amp;lt; Jacek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Jacek Slowikowski&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 13:57:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/view-performance-issue/m-p/1676383#M298279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T13:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: View Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/view-performance-issue/m-p/1676384#M298280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srkanth,&lt;/P&gt;&lt;P&gt;The tables you are using are big and contain transaction data, so buffering is not an option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Part of your difficulty is that the document number field in VRPMA is not at the top of the key field list, so the join to create the view is inefficient. Could you create another index for VRPMA on document number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why is the view necessary at all? Can the business requirement be met via a BW or other custom solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;John Armytage&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2006 14:00:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/view-performance-issue/m-p/1676384#M298280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T14:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: View Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/view-performance-issue/m-p/1676385#M298281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Compare your view with standard SAP view VBRP_VRPMA. The tables aren't exactly the same, but should give you an idea of how to construct your view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the view is OK, what does you select look like?&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, 06 Nov 2006 15:43:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/view-performance-issue/m-p/1676385#M298281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-06T15:43:53Z</dc:date>
    </item>
    <item>
      <title>Re: View Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/view-performance-issue/m-p/1676386#M298282</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;  Thank you very much for your thoughtful inputs ! actually report is taking indefinite time when retrieving records from the view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the processing block which is taking a long time&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select distinct vbeln fkart vtweg knumv fkdat kunrg sfakn knuma&lt;/P&gt;&lt;P&gt;    into table i_man_accr2&lt;/P&gt;&lt;P&gt;    from zvbrkvrpma&lt;/P&gt;&lt;P&gt;    for all entries in i_doc_flow&lt;/P&gt;&lt;P&gt;    where ( fkart eq 'ZCB4' or fkart eq 'S2' or fkart eq 'S1' )&lt;/P&gt;&lt;P&gt;    and vbeln eq i_doc_flow-vbeln&lt;/P&gt;&lt;P&gt;    and vtweg eq p_vtweg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does selecting fields from vbrk will help avoid taking view at all into consideration??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 05:22:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/view-performance-issue/m-p/1676386#M298282</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T05:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: View Performance Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/view-performance-issue/m-p/1676387#M298283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Srikanth,&lt;/P&gt;&lt;P&gt;Based on the sample code, you do not need a view at all since all the fields come from VBRK, so processing should be:&lt;/P&gt;&lt;P&gt;Select vbeln fkart vtweg knumv fkdat kunrg sfakn knuma&lt;/P&gt;&lt;P&gt;into table i_man_accr2&lt;/P&gt;&lt;P&gt;from vbrk&lt;/P&gt;&lt;P&gt;for all entries in i_doc_flow&lt;/P&gt;&lt;P&gt;where ( fkart eq 'ZCB4' or fkart eq 'S2' or fkart eq 'S1' )&lt;/P&gt;&lt;P&gt;and vbeln eq i_doc_flow-vbeln&lt;/P&gt;&lt;P&gt;and vtweg eq p_vtweg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You do not need DISTINCT as the data comes from one table. This is a reason why the code was taking such a long time as it was retrieving the same VBRK data over and over again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 07:33:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/view-performance-issue/m-p/1676387#M298283</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T07:33:25Z</dc:date>
    </item>
  </channel>
</rss>

