<?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: Improve Select performance in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811127#M1881878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, I meant VBAK. See if this works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE vbak~kunnr vbpa~kunnr&lt;/P&gt;&lt;P&gt;&amp;nbsp; INTO (customer_number, partner_number)&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM vbak&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; JOIN vbpa ON&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vbpa~vbeln = vbak~vbeln&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE vbpa~parvw IN ('AG', 'ZE').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jan 2015 15:41:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-01-22T15:41:04Z</dc:date>
    <item>
      <title>Improve Select performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811121#M1881872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to improve a function module that gets called anywhere between 5 to 45000 times per processing run.&amp;nbsp;&amp;nbsp; In this function module, I found the following select statements:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original code&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;SELECT &lt;SPAN class="L1S52"&gt;SINGLE&lt;/SPAN&gt; kunnr &lt;SPAN class="L1S52"&gt;FROM&lt;/SPAN&gt; vbpa &lt;SPAN class="L1S52"&gt;INTO&lt;/SPAN&gt; customer_number&lt;BR /&gt;&lt;SPAN class="L1S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE&lt;/SPAN&gt; vbeln = &lt;SPAN class="L1S33"&gt;wk_document_number&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L1S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; parvw = &lt;SPAN class="L1S33"&gt;'AG'&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;SINGLE&lt;/SPAN&gt; kunnr &lt;SPAN class="L1S52"&gt;FROM&lt;/SPAN&gt; vbpa &lt;SPAN class="L1S52"&gt;INTO&lt;/SPAN&gt; distributor_number&lt;BR /&gt;&lt;SPAN class="L1S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE&lt;/SPAN&gt; vbeln = &lt;SPAN class="L1S33"&gt;wk_document_number&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L1S52"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; parvw = &lt;SPAN class="L1S33"&gt;'ZE'&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;I tried the following 2 variations to get the customer_number and distributor_number&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Variant 1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L1S52"&gt;SELECT VBELN PARVW KUNNR&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;FROM&lt;/SPAN&gt; VBPA &lt;SPAN class="L1S52"&gt;into&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;TABLE&lt;/SPAN&gt; IT_VBPA&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;WHERE&lt;/SPAN&gt; VBELN = &lt;SPAN class="L1S33"&gt;wk_document_number&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;and&lt;/SPAN&gt; PARVW &lt;SPAN class="L1S52"&gt;in&lt;/SPAN&gt; (&lt;SPAN class="L1S33"&gt;'AG'&lt;/SPAN&gt;, &lt;SPAN class="L1S33"&gt;'ZE'&lt;/SPAN&gt;).&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L1S52"&gt;LOOP&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;at&lt;/SPAN&gt; IT_VBPA &lt;SPAN class="L1S52"&gt;into&lt;/SPAN&gt; WA_VBPA.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;CASE&lt;/SPAN&gt; WA_VBPA-PARVW.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;WHEN&lt;/SPAN&gt; &lt;SPAN class="L1S33"&gt;'AG'&lt;/SPAN&gt;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer_number = wa_vbpa-kunnr.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;WHEN&lt;/SPAN&gt; &lt;SPAN class="L1S33"&gt;'ZE'&lt;/SPAN&gt;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; distributor_number = wa_vbpa-kunnr.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;ENDCASE&lt;/SPAN&gt;.&lt;BR /&gt;&amp;nbsp; &lt;SPAN class="L1S52"&gt;ENDLOOP&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="L1S52"&gt;Variant 2&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L1S52"&gt;SELECT PARVW KUNNR &lt;SPAN class="L1S52"&gt;into&lt;/SPAN&gt; (WA_VBPA-PARVW, WA_VBPA-KUNNR)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;FROM&lt;/SPAN&gt; VBPA&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;WHERE&lt;/SPAN&gt; VBELN = &lt;SPAN class="L1S33"&gt;wk_document_number&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;and&lt;/SPAN&gt; PARVW &lt;SPAN class="L1S52"&gt;in&lt;/SPAN&gt; (&lt;SPAN class="L1S33"&gt;'AG'&lt;/SPAN&gt;, &lt;SPAN class="L1S33"&gt;'ZE'&lt;/SPAN&gt;).&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;IF&lt;/SPAN&gt; WA_VBPA-PARVW = &lt;SPAN class="L1S33"&gt;'AG'&lt;/SPAN&gt;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; customer_number = wa_vbpa-kunnr.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;ENDIF&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;IF&lt;/SPAN&gt; WA_VBPA-PARVW = &lt;SPAN class="L1S33"&gt;'ZE'&lt;/SPAN&gt;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; distributor_number = wa_vbpa-kunnr.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;ENDIF&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt; &lt;SPAN class="L1S52"&gt;ENDSELECT&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;I ran this test 10 times.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;The Original code using 2 Select Single statements had the best performance.&amp;nbsp; averaged about&amp;nbsp; 278 ms&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;The Variant 1 code had the worst performance&amp;nbsp; averaged about&amp;nbsp; 308 ms&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;The Variant 2 code performance was nearly identical to the Original code&amp;nbsp;&amp;nbsp; averaged about 285 ms&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Any thoughts on how to improve this.&amp;nbsp; The average run times look low, but when there are 45000 records to process, they add up.&amp;nbsp; For example, in the case of the original code, this would be about 208 minutes of processing time and if it was doing the code in Variant 2, it would take 231 minutes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 19:51:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811121#M1881872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-21T19:51:50Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Select performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811122#M1881873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might try changing the first select to one based on VBAP, so long as KUNNR is always the actual customer number you want. This way the SELECT SINGLE will be able to use the complete index.&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, 21 Jan 2015 20:43:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811122#M1881873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-21T20:43:02Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Select performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811123#M1881874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Bob,&lt;/P&gt;&lt;P&gt;I think there are some other process logic you must need call this FM, right?&lt;/P&gt;&lt;P&gt;So maybe you could create a global itab2 use to store VBPA data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In FM:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT gt_itab2 BY vbeln.&lt;/P&gt;&lt;P&gt;READ gt_itab2 into wa_itab2 WITH KEY vbeln = wk_document_number BINARY SEARCHER.&lt;/P&gt;&lt;P&gt;IF SY-SUBRC NE 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clear_wa_itab2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_itab2-vbeln = wk_document_number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #333333; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;SPAN class="L1S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;SELECT &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;SINGLE&lt;/SPAN&gt; kunnr &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;FROM&lt;/SPAN&gt; vbpa &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;INTO&lt;/SPAN&gt; customer_number&lt;BR /&gt;&lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE&lt;/SPAN&gt; vbeln = &lt;SPAN class="L1S33" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;wk_document_number&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; parvw = &lt;SPAN class="L1S33" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;'AG'&lt;/SPAN&gt;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_itab2-customer = customer_number.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;SINGLE&lt;/SPAN&gt; kunnr &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;FROM&lt;/SPAN&gt; vbpa &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;INTO&lt;/SPAN&gt; distributor_number&lt;BR /&gt;&lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE&lt;/SPAN&gt; vbeln = &lt;SPAN class="L1S33" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;wk_document_number&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; parvw = &lt;SPAN class="L1S33" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;'ZE'&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; wa_itab2-distributor = distributor_number. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; APPEND wa_itab2 TO gt_itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; customer_number =&amp;nbsp; wa_itab2-customer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; distributor_number&amp;nbsp; = wa_itab2-distributor.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Archer&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 02:15:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811123#M1881874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-22T02:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Select performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811124#M1881875</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 should use batch processing as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Get all related SO (r_vbeln)&amp;nbsp; into interal table IT_VBPA that can read table only one time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT VBELN PARVW KUNNR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; FROM VBPA into TABLE IT_VBPA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE VBELN in r_vblen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and PARVW in ('AG', 'ZE').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In looping:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it_vbpa into wa_vbpa with key vbeln = l_vbeln PARVW = 'AG'.&lt;/P&gt;&lt;P&gt;customer_number = wa_vbpa-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it_vbpa into wa_vbpa with key vbeln = l_vbeln PARVW = 'AE'.&lt;/P&gt;&lt;P&gt;distributor_number = wa_vbpa-kunnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Jimmy Chan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 02:19:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811124#M1881875</guid>
      <dc:creator>jimmy_chan2</dc:creator>
      <dc:date>2015-01-22T02:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Select performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811125#M1881876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added POSNR in the selects and the results are the same in all 3 variations of the Select statements&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 15:04:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811125#M1881876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-22T15:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Select performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811126#M1881877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added 'POSNR' in the selects and the results are the same in all 3 variations of the Select statements&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 15:05:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811126#M1881877</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-22T15:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Select performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811127#M1881878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually, I meant VBAK. See if this works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT SINGLE vbak~kunnr vbpa~kunnr&lt;/P&gt;&lt;P&gt;&amp;nbsp; INTO (customer_number, partner_number)&lt;/P&gt;&lt;P&gt;&amp;nbsp; FROM vbak&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; JOIN vbpa ON&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; vbpa~vbeln = vbak~vbeln&lt;/P&gt;&lt;P&gt;&amp;nbsp; WHERE vbpa~parvw IN ('AG', 'ZE').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 15:41:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811127#M1881878</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-22T15:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Select performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811128#M1881879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The big issue is that this code is in a pricing condition exit RV64xxxx, so it gets called several times for each line item.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 16:51:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811128#M1881879</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-22T16:51:19Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Select performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811129#M1881880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The main program (that is calling the &lt;SPAN style="color: #333333; font-size: 12px;"&gt;RV64xxxx ) should be saving all partner data in an internal table. IF it is not then you can build an internal table with all partner data and then read that internal table inside &lt;SPAN style="color: #333333; font-size: 12px;"&gt;RV64xxxx. If required you can pass the internal table using export statement and then import it inside &lt;SPAN style="color: #333333; font-size: 12px;"&gt;RV64xxxx. This way you can avoid using select statement inside &lt;SPAN style="color: #333333; font-size: 12px;"&gt;RV64xxxx and improve performance.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2015 20:57:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811129#M1881880</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-22T20:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Select performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811130#M1881881</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;U shall try the below code by avoiding LOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt;SELECT VBELN PARVW KUNNR&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L1S52" style="font-size: 12px; color: #333333; background: #f8f8f8;"&gt;FROM&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt; VBPA &lt;/SPAN&gt;&lt;SPAN class="L1S52" style="font-size: 12px; color: #333333; background: #f8f8f8;"&gt;into&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt; &lt;/SPAN&gt;&lt;SPAN class="L1S52" style="font-size: 12px; color: #333333; background: #f8f8f8;"&gt;TABLE&lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt;&amp;nbsp; IT_CUST&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L1S52" style="font-size: 12px; color: #333333; background: #f8f8f8;"&gt;WHERE&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt; VBELN = &lt;/SPAN&gt;&lt;SPAN class="L1S33" style="font-size: 12px; color: #333333; background: #f8f8f8;"&gt;wk_document_number&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L1S52" style="font-size: 12px; color: #333333; background: #f8f8f8;"&gt;and&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt; PARVW &lt;/SPAN&gt;&lt;SPAN class="L1S52" style="font-size: 12px; color: #333333; background: #f8f8f8;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt; (&lt;/SPAN&gt;&lt;SPAN class="L1S33" style="font-size: 12px; color: #333333; background: #f8f8f8;"&gt;'AG'&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt;, &lt;/SPAN&gt;&lt;SPAN class="L1S33" style="font-size: 12px; color: #333333; background: #f8f8f8;"&gt;'ZE'&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt;IT_DIST[] = IT_CUST[].&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt;sort &lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt;IT_DIST by ZE.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt;sort IT_CUST by AG.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt;Delete &lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt;IT_DIST where PARVW ne 'ZE'.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt;Delete &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt;IT_CUST where PARVW ne 'AG'.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px; background-color: #f8f8f8;"&gt;Vinodkumar.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 04:40:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811130#M1881881</guid>
      <dc:creator>vinodkumar_thangavel</dc:creator>
      <dc:date>2015-01-23T04:40:02Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Select performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811131#M1881882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Checked it out, but the code is being called from SAPLV61A forms XKOMV_KWERT_ERMITTELN and XKOMV_BEWERTEN.&amp;nbsp;&amp;nbsp; So, I cannot add code there.&amp;nbsp; I think I will try to find an earlier user exit and Export to Memory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 13:58:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811131#M1881882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-23T13:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Select performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811132#M1881883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bob !&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Have you tried using&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;up to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;x&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;rows&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;with&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;endselect&lt;/SPAN&gt;?&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;Another&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;way for you to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;improve your&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;performance&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;is to create&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;cursors&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and put&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;limits&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;packages.&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;The two ways&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;reduced&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;the query time&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;x&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;runtime.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="ita-kd-inputtools-div"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Adding&lt;/SPAN&gt;, &lt;SPAN class="hps"&gt;you can put your&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;declarations of&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;internal table&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;as&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;hashed&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;tables&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;and use the&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;primary&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;keys&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;to search.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;BR,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Raphael&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jan 2015 22:11:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811132#M1881883</guid>
      <dc:creator>raphael_almeida</dc:creator>
      <dc:date>2015-01-23T22:11:16Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Select performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811133#M1881884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to answer as per my understanding and assumption. I am assuming that your code is getting called many times for same document number. &lt;/P&gt;&lt;P&gt;If my assumption is right then may be you can build the logic to fetch data from VBPA and store in some variables or internal table when your code gets executed first time and then you can check this variables and if entries are exist in these variables then do not execute select statements and use the variable values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if customer_number is initial.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L1S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;SELECT &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;SINGLE&lt;/SPAN&gt; kunnr &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;FROM&lt;/SPAN&gt; vbpa &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;INTO&lt;/SPAN&gt; customer_number&lt;BR /&gt;&lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE&lt;/SPAN&gt; vbeln = &lt;SPAN class="L1S33" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;wk_document_number&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; parvw = &lt;SPAN class="L1S33" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;'AG'&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;endif.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;BR /&gt;if &lt;SPAN style="color: #333333; font-size: 12px;"&gt;distributor_number is INITIAL.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;SELECT&lt;/SPAN&gt; &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;SINGLE&lt;/SPAN&gt; kunnr &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;FROM&lt;/SPAN&gt; vbpa &lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;INTO&lt;/SPAN&gt; distributor_number&lt;BR /&gt;&lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE&lt;/SPAN&gt; vbeln = &lt;SPAN class="L1S33" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;wk_document_number&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN class="L1S52" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp; parvw = &lt;SPAN class="L1S33" style="font-weight: inherit; font-style: inherit; font-family: inherit; background: transparent;"&gt;'ZE'&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;ENDIF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;may be you have to export customer_number and &lt;SPAN style="color: #333333; font-size: 12px;"&gt;distributor_number to memory at first execution and IMPORT and use same on subsequent execution.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background: #ffffff; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background: #ffffff; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background: #ffffff; font-size: 12px;"&gt;Let me know if this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background: #ffffff; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background: #ffffff; font-size: 12px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L1S52" style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;Sid &lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Jan 2015 13:15:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811133#M1881884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-27T13:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Select performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811134#M1881885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Hello&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;Bob&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;You&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;could&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;find the answer to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;your problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class="hps"&gt;Remember to&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;close this&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;topic&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;if you have&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;found,&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;&lt;SPAN class="short_text" lang="en"&gt;&lt;SPAN class="hps"&gt;following&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;as explained&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;in the document&lt;/SPAN&gt; &lt;SPAN class="hps"&gt;below, oks ?!&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN class="hps"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;A __default_attr="82566" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="How to close a discussion and why" href="https://community.sap.com/" modifiedtitle="true" title="How to close a discussion and why"&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;BR,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN class="hps"&gt;Raphael&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 15:25:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811134#M1881885</guid>
      <dc:creator>raphael_almeida</dc:creator>
      <dc:date>2015-01-30T15:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Improve Select performance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811135#M1881886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, I believe export to memory is the only way to handle this.&amp;nbsp; Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Jan 2015 16:11:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/improve-select-performance/m-p/10811135#M1881886</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-01-30T16:11:25Z</dc:date>
    </item>
  </channel>
</rss>

