<?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 problem with VBRP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-vbrp/m-p/4301767#M1025762</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wc,&lt;/P&gt;&lt;P&gt;if you problem is solved than please close this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jul 2008 14:38:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-29T14:38:15Z</dc:date>
    <item>
      <title>Performance problem with VBRP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-vbrp/m-p/4301760#M1025755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi People, someone can give a light about performance issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'trying to select table VBRP with registers os BSID using VBELN like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT vbeln&lt;/P&gt;&lt;P&gt;         posnr&lt;/P&gt;&lt;P&gt;         matnr&lt;/P&gt;&lt;P&gt;         prctr&lt;/P&gt;&lt;P&gt;  FROM vbrp&lt;/P&gt;&lt;P&gt;  INTO TABLE tg_vbrp&lt;/P&gt;&lt;P&gt;  FOR ALL ENTRIES IN tg_bsid&lt;/P&gt;&lt;P&gt;  WHERE vbeln = tg_bsid-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's works, but too slow...I tried put PRCTR in where condition, but still slow...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea to increase performance in this select?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 13:09:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-vbrp/m-p/4301760#M1025755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T13:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with VBRP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-vbrp/m-p/4301761#M1025756</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; Use dummy ranges to pass the entire key of VBRP table ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.e,&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
ranges : r_posnr for vbrp-posnr.

if not tg_bsid[] is initial.
SELECT vbeln
posnr
matnr
prctr
FROM vbrp
INTO TABLE tg_vbrp
FOR ALL ENTRIES IN tg_bsid
WHERE vbeln = tg_bsid-vbeln and
             posnr in r_posnr.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 13:13:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-vbrp/m-p/4301761#M1025756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T13:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with VBRP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-vbrp/m-p/4301762#M1025757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;Check id not tg_bsid[] is initial.

SELECT vbeln
posnr
matnr
prctr
FROM vbrp
INTO TABLE tg_vbrp
FOR ALL ENTRIES IN tg_bsid
WHERE vbeln = tg_bsid-vbeln.&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 13:22:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-vbrp/m-p/4301762#M1025757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T13:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with VBRP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-vbrp/m-p/4301763#M1025758</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;You can do some to improve performance:&lt;/P&gt;&lt;P&gt;1. Sort your internal table by the field VBELN (and possibly other additional fields).&lt;/P&gt;&lt;P&gt;2. Make sure you have selected data from BSID where the field VBELN is NOT empty.&lt;/P&gt;&lt;P&gt;3. Make sure that the table VBRP is fully active (sometimes its only partial activated).&lt;/P&gt;&lt;P&gt;4. Make sure that the primary index (VBRP~0) is also fully active. &lt;/P&gt;&lt;P&gt;5. Try to reorganize the table VBRP (ask the system guys/girls).&lt;/P&gt;&lt;P&gt;6. Try modifying the code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;RANGES: r_posnr FOR vbrp-posnr.
IF NOT ( tg_bsid[] IS INITIAL ).
  SELECT vbeln
         posnr
         matnr
         prctr
    FROM vbrp
    INTO TABLE tg_vbrp FOR ALL ENTRIES IN tg_bsid
   WHERE vbeln EQ tg_bsid-vbeln
     AND posnr IN r_posnr.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mostly this table contains invoice positions and it is very normal, that a huge amount (multiple millions) is inside. When this is the case, you will need to use parallel processing techniques.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rob.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 13:23:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-vbrp/m-p/4301763#M1025758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T13:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with VBRP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-vbrp/m-p/4301764#M1025759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;Why can you go for Database Index methodology..&lt;/P&gt;&lt;P&gt;Create a index for BSID table.&lt;/P&gt;&lt;P&gt;I think thi smay helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards:&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 13:53:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-vbrp/m-p/4301764#M1025759</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T13:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with VBRP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-vbrp/m-p/4301765#M1025760</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;      *Simply take the another internal table of type tg_bsid and hit your query as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data: gt_temp like table of tg_bsid occurs 0 with header line.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;gt_temp[ ] = tg_bsid[ ].&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sort gt_temp by vbeln posnr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;// This helps when there are more records and to reduce the load on server.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;delete adjacent duplicates from gt_temp comparing vbeln posnr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SELECT vbeln&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;posnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;matnr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;prctr&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM vbrp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;INTO TABLE tg_vbrp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FOR ALL ENTRIES IN gt_temp&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHERE vbeln = gt_temp-vbeln&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;       &lt;STRONG&gt;AND posnr = gt_temp-posnr.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ravi Kumar on Jul 29, 2008 4:34 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 14:00:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-vbrp/m-p/4301765#M1025760</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T14:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with VBRP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-vbrp/m-p/4301766#M1025761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for answers! I tried all of this things, but maybe I have to do an paralel task...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 14:34:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-vbrp/m-p/4301766#M1025761</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T14:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Performance problem with VBRP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-vbrp/m-p/4301767#M1025762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wc,&lt;/P&gt;&lt;P&gt;if you problem is solved than please close this thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 14:38:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-problem-with-vbrp/m-p/4301767#M1025762</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-29T14:38:15Z</dc:date>
    </item>
  </channel>
</rss>

