<?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 table vbrp in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-table-vbrp/m-p/7845116#M1591307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Chandan,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I see that the ON CLAUSE and the WHERE CLAUSE are the same, since you are using FOR ALL ENTRIES against IT_ALV_OUTPUT, i presume that your SELECT WHERE CLAUSE must be more like VBRK~VBELN EQ IT_ALV_OUTPUT-VBELN?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Also, it is better to have  a check if IT_ALV_OUTPUT is not initial before the WHERE CLAUSE.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Chen&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chen is absolutely right. I would just fix his last sentence: &lt;/P&gt;&lt;P&gt;"it is necessary to have  a check if IT_ALV_OUTPUT is not initial before the SELECT statement".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 May 2011 07:29:53 GMT</pubDate>
    <dc:creator>yuri_ziryukin</dc:creator>
    <dc:date>2011-05-06T07:29:53Z</dc:date>
    <item>
      <title>performance issue table vbrp</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-table-vbrp/m-p/7845114#M1591305</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 writen a select query in z program  but i am getting the prformance issue. The program is taking more than 40 min when execute the below select query. could anyone please give me the idea how to resolve this performance issue. can i replace with view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;select  vbrp~vbeln
            vbrp~posnr
           vbrk~fkdat
           vbrk~fksto
           vbrk~vbtyp
           vbrk~rfbsk
            vbrp~matnr
           vbrp~fkimg
           vbrp~werks
            vbrp~shkzg
     into table it_billcom
     from vbrk inner join vbrp "wb2_v_vbrk_vbrp2
      on vbrk~vbeln eq vbrp~vbeln
      for all entries in it_alv_output
        where vbrp~vbeln eq vbrk~vbeln&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;with regards&lt;/P&gt;&lt;P&gt;chandan_vigi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 05:02:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-table-vbrp/m-p/7845114#M1591305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-06T05:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue table vbrp</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-table-vbrp/m-p/7845115#M1591306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see that the ON CLAUSE and the WHERE CLAUSE are the same, since you are using FOR ALL ENTRIES against IT_ALV_OUTPUT, i presume that your SELECT WHERE CLAUSE must be more like VBRK~VBELN EQ IT_ALV_OUTPUT-VBELN?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, it is better to have  a check if IT_ALV_OUTPUT is not initial before the WHERE CLAUSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 05:45:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-table-vbrp/m-p/7845115#M1591306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-06T05:45:06Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue table vbrp</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-table-vbrp/m-p/7845116#M1591307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Chandan,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I see that the ON CLAUSE and the WHERE CLAUSE are the same, since you are using FOR ALL ENTRIES against IT_ALV_OUTPUT, i presume that your SELECT WHERE CLAUSE must be more like VBRK~VBELN EQ IT_ALV_OUTPUT-VBELN?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Also, it is better to have  a check if IT_ALV_OUTPUT is not initial before the WHERE CLAUSE.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Chen&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chen is absolutely right. I would just fix his last sentence: &lt;/P&gt;&lt;P&gt;"it is necessary to have  a check if IT_ALV_OUTPUT is not initial before the SELECT statement".&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 07:29:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-table-vbrp/m-p/7845116#M1591307</guid>
      <dc:creator>yuri_ziryukin</dc:creator>
      <dc:date>2011-05-06T07:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue table vbrp</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-table-vbrp/m-p/7845117#M1591308</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;1. In you SQL Where clause has not  written correctly or incomplete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Why are you using the join and for all entries togather ?&lt;/P&gt;&lt;P&gt;   first used the for all entries on table vbrk using internal table it_alv_output&lt;/P&gt;&lt;P&gt;   2nd  used the for all entries on table vbrp using data read in table step 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't forget to check driver table internal table is not initial while apply the &lt;STRONG&gt;for all entries&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Rgds&lt;/P&gt;&lt;P&gt;Ravi Lanjewar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 11:00:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-table-vbrp/m-p/7845117#M1591308</guid>
      <dc:creator>ravi_lanjewar</dc:creator>
      <dc:date>2011-05-06T11:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: performance issue table vbrp</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-table-vbrp/m-p/7845118#M1591309</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;1. correct your code as Chen KV suggested.&lt;/P&gt;&lt;P&gt;2. Dont use join or use item table(VBRP) in left side. ref below statment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select  vbrp~vbeln&lt;/P&gt;&lt;P&gt;            vbrp~posnr&lt;/P&gt;&lt;P&gt;           vbrk~fkdat&lt;/P&gt;&lt;P&gt;           vbrk~fksto&lt;/P&gt;&lt;P&gt;           vbrk~vbtyp&lt;/P&gt;&lt;P&gt;           vbrk~rfbsk&lt;/P&gt;&lt;P&gt;            vbrp~matnr&lt;/P&gt;&lt;P&gt;           vbrp~fkimg&lt;/P&gt;&lt;P&gt;           vbrp~werks&lt;/P&gt;&lt;P&gt;            vbrp~shkzg&lt;/P&gt;&lt;P&gt;     into table it_billcom&lt;/P&gt;&lt;P&gt;     &lt;STRONG&gt;from vbrp inner join vbrk&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;      on vbrk&lt;SUB&gt;vbeln eq vbrp&lt;/SUB&gt;vbeln&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 May 2011 12:18:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-table-vbrp/m-p/7845118#M1591309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-06T12:18:37Z</dc:date>
    </item>
  </channel>
</rss>

