<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642694#M286222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try replacing the range in so_bukrs with the logic I gave earlier. I think this is your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might also want to go back and use the original join. That will help a bit as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rob Burbank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Oct 2006 18:53:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-19T18:53:48Z</dc:date>
    <item>
      <title>Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642686#M286214</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;I have performance issue on this report, Please let me know if the code can be written in a better way, I am following the indices and order everything,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bukrs hkont augdt augbl gjahr belnr buzei&lt;/P&gt;&lt;P&gt;budat bldat xblnr blart shkzg dmbtr wrbtr&lt;/P&gt;&lt;P&gt;sgtxt aufnr kostl dmbe2 prctr zztitle&lt;/P&gt;&lt;P&gt;zzterr from bsis into table i_data&lt;/P&gt;&lt;P&gt;WHERE hkont IN so_hkont&lt;/P&gt;&lt;P&gt;AND bukrs IN so_bukrs&lt;/P&gt;&lt;P&gt;AND augdt IN so_augdt&lt;/P&gt;&lt;P&gt;AND gjahr IN so_gjahr&lt;/P&gt;&lt;P&gt;AND belnr IN so_belnr&lt;/P&gt;&lt;P&gt;AND budat IN so_budat&lt;/P&gt;&lt;P&gt;AND bldat IN so_bldat&lt;/P&gt;&lt;P&gt;AND xblnr IN so_xblnr&lt;/P&gt;&lt;P&gt;AND blart IN so_blart&lt;/P&gt;&lt;P&gt;AND aufnr IN so_aufnr&lt;/P&gt;&lt;P&gt;AND kostl IN so_kostl&lt;/P&gt;&lt;P&gt;AND prctr IN so_prctr&lt;/P&gt;&lt;P&gt;AND zztitle IN so_title&lt;/P&gt;&lt;P&gt;AND zzterr IN so_terr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not i_data[] is initial.&lt;/P&gt;&lt;P&gt;move i_data[] to t_data[].&lt;/P&gt;&lt;P&gt;loop at t_data.&lt;/P&gt;&lt;P&gt;select single cpudt bvorg waers bstat hwaer hwae2&lt;/P&gt;&lt;P&gt;from bkpf into corresponding fields of t_data&lt;/P&gt;&lt;P&gt;where bukrs = t_data-bukrs and&lt;/P&gt;&lt;P&gt;belnr = t_data-belnr and&lt;/P&gt;&lt;P&gt;gjahr = t_data-gjahr.&lt;/P&gt;&lt;P&gt;modify t_data index sy-tabix.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;if not so_cpudt is initial.&lt;/P&gt;&lt;P&gt;if so_cpudt-high is initial.&lt;/P&gt;&lt;P&gt;move so_cpudt-low to so_cpudt-high.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;so_cpudt-sign = 'E'.&lt;/P&gt;&lt;P&gt;modify so_cpudt index 1.&lt;/P&gt;&lt;P&gt;delete t_data where cpudt in so_cpudt.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;if not so_bvorg is initial.&lt;/P&gt;&lt;P&gt;if so_bvorg-high is initial.&lt;/P&gt;&lt;P&gt;move so_bvorg-low to so_bvorg-high.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;so_bvorg-sign = 'E'.&lt;/P&gt;&lt;P&gt;modify so_bvorg index 1.&lt;/P&gt;&lt;P&gt;delete t_data where bvorg in so_bvorg.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;refresh i_data.&lt;/P&gt;&lt;P&gt;clear i_data.&lt;/P&gt;&lt;P&gt;clear t_data.&lt;/P&gt;&lt;P&gt;free i_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was the earlier code, code had inner join,&lt;/P&gt;&lt;P&gt;I changed to above manner&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Older version&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;SELECT bsis&lt;SUB&gt;bukrs bsis&lt;/SUB&gt;belnr bsis&lt;SUB&gt;gjahr bsis&lt;/SUB&gt;blart bsis~bldat&lt;/P&gt;&lt;P&gt;bsis&lt;SUB&gt;budat bsis&lt;/SUB&gt;xblnr bkpf&lt;SUB&gt;bvorg bkpf&lt;/SUB&gt;bstat bkpf~waers&lt;/P&gt;&lt;P&gt;bkpf&lt;SUB&gt;hwaer bkpf&lt;/SUB&gt;hwae2 bsis&lt;SUB&gt;buzei bsis&lt;/SUB&gt;augdt bsis~augbl&lt;/P&gt;&lt;P&gt;bsis&lt;SUB&gt;shkzg bsis&lt;/SUB&gt;dmbtr bsis&lt;SUB&gt;wrbtr bsis&lt;/SUB&gt;dmbe2 bsis~sgtxt&lt;/P&gt;&lt;P&gt;bsis&lt;SUB&gt;kostl bsis&lt;/SUB&gt;aufnr bsis&lt;SUB&gt;hkont bsis&lt;/SUB&gt;prctr bkpf~cpudt&lt;/P&gt;&lt;P&gt;bsis&lt;SUB&gt;zztitle bsis&lt;/SUB&gt;zzterr&lt;/P&gt;&lt;P&gt;FROM bsis&lt;/P&gt;&lt;P&gt;JOIN bkpf&lt;/P&gt;&lt;P&gt;ON bkpf&lt;SUB&gt;bukrs EQ bsis&lt;/SUB&gt;bukrs&lt;/P&gt;&lt;P&gt;AND bkpf&lt;SUB&gt;belnr EQ bsis&lt;/SUB&gt;belnr&lt;/P&gt;&lt;P&gt;AND bkpf&lt;SUB&gt;gjahr EQ bsis&lt;/SUB&gt;gjahr&lt;/P&gt;&lt;P&gt;INTO CORRESPONDING FIELDS OF t_data&lt;/P&gt;&lt;P&gt;WHERE bsis~bukrs IN so_bukrs&lt;/P&gt;&lt;P&gt;AND bsis~hkont IN so_hkont&lt;/P&gt;&lt;P&gt;AND bsis~budat IN so_budat&lt;/P&gt;&lt;P&gt;AND bsis~augdt IN so_augdt&lt;/P&gt;&lt;P&gt;AND bsis~gjahr IN so_gjahr&lt;/P&gt;&lt;P&gt;AND bsis~belnr IN so_belnr&lt;/P&gt;&lt;P&gt;AND bsis~blart IN so_blart&lt;/P&gt;&lt;P&gt;AND bsis~xblnr IN so_xblnr&lt;/P&gt;&lt;P&gt;AND bsis~bldat IN so_bldat&lt;/P&gt;&lt;P&gt;AND bsis~zztitle IN so_title&lt;/P&gt;&lt;P&gt;AND bsis~zzterr IN so_terr&lt;/P&gt;&lt;P&gt;AND bsis~kostl IN so_kostl&lt;/P&gt;&lt;P&gt;AND bsis~prctr IN so_prctr&lt;/P&gt;&lt;P&gt;AND bsis~aufnr IN so_aufnr&lt;/P&gt;&lt;P&gt;AND bkpf~cpudt IN so_cpudt "-( BKPF&lt;/P&gt;&lt;P&gt;AND bkpf~bvorg IN so_bvorg. "- (BKPF)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For some selection criteria, the older version is executing fast than new version, but most of the times the new version of code which I changed is executed fast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know if any changes I need to make in the new version of code to make it better so that for any selection criteria it is executed first.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 15:51:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642686#M286214</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T15:51:06Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642687#M286215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The most important thing will be to make sure that so_hkont is not empty. there are anumber of conditions in your where clause. You might remove them and check them in the loop instead.&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, 19 Oct 2006 16:50:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642687#M286215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T16:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642688#M286216</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;&lt;/P&gt;&lt;P&gt;I am making sure that so_hkont is not empty, I am testing for all company codes.&lt;/P&gt;&lt;P&gt;I removed all the where conditions , kept only so_hkont and so_bukrs but still its taking time &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please give me an example for making better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 17:23:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642688#M286216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T17:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642689#M286217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK - it takes a while, but how many records does the select return?&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, 19 Oct 2006 17:45:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642689#M286217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T17:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642690#M286218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is returning only 2000 records after all the search.&lt;/P&gt;&lt;P&gt;but its taking long time.&lt;/P&gt;&lt;P&gt;please let me know an example&lt;/P&gt;&lt;P&gt;thanks rob&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 18:18:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642690#M286218</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T18:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642691#M286219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, that's not a lot of records. Could you please post the contents of SO_BUKRS and SO_HKONT where you get these records?&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, 19 Oct 2006 18:33:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642691#M286219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T18:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642692#M286220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You also have to make sure that SO_BUKRS is not empty. If it is, I wrote ablog that will help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/rob.burbank/blog/2006/09/13/using-an-index-when-you-dont-have-all-of-the-fields&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially, you only need to do this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if so_bukrs[] is initial.
  so_bukrs-option = 'EQ'.
  so_bukrs-sign   = 'I'.
  SELECT bukrs FROM  t001
    INTO so_bukrs-low.
    APPEND so_bukrs.
  ENDSELECT.
endif.

select bukrs hkont augdt augbl gjahr belnr buzei
budat bldat xblnr blart shkzg dmbtr wrbtr
sgtxt aufnr kostl dmbe2 prctr zztitle
zzterr from bsis into table i_data
WHERE hkont IN so_hkont
AND bukrs IN so_bukrs
AND augdt IN so_augdt
AND gjahr IN so_gjahr
AND belnr IN so_belnr
AND budat IN so_budat
AND bldat IN so_bldat
AND xblnr IN so_xblnr
AND blart IN so_blart
AND aufnr IN so_aufnr
AND kostl IN so_kostl
AND prctr IN so_prctr
AND zztitle IN so_title
AND zzterr IN so_terr.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rob Burbank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 18:37:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642692#M286220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T18:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642693#M286221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;so_budat: 04/01/2006   to  09/30/2006&lt;/P&gt;&lt;P&gt;so_augdt:&lt;/P&gt;&lt;P&gt;so_hkont: 50000 to 69999 "mandatory&lt;/P&gt;&lt;P&gt;so_bukrs: 000   to 9999  " mandatory&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so_belnr:&lt;/P&gt;&lt;P&gt;so_gjahr: 2007 to 2007&lt;/P&gt;&lt;P&gt;so_bvorg:&lt;/P&gt;&lt;P&gt;so_cpudt:&lt;/P&gt;&lt;P&gt;so_bldat:&lt;/P&gt;&lt;P&gt;so_blart:&lt;/P&gt;&lt;P&gt;so_xblnr:&lt;/P&gt;&lt;P&gt;so_title:     (bsis-zztitle)&lt;/P&gt;&lt;P&gt;so_terr :     (bsis-zzterr)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so_kostl:&lt;/P&gt;&lt;P&gt;so_prctr:&lt;/P&gt;&lt;P&gt;so_aufnr:&lt;/P&gt;&lt;P&gt;so_matnr:&lt;/P&gt;&lt;P&gt;so_lifnr:&lt;/P&gt;&lt;P&gt;so_kunnr:&lt;/P&gt;&lt;P&gt;so_zzkun:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is selection criteria I am using.&lt;/P&gt;&lt;P&gt;please let me know if you need more info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 18:47:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642693#M286221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T18:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642694#M286222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try replacing the range in so_bukrs with the logic I gave earlier. I think this is your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might also want to go back and use the original join. That will help a bit as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Rob Burbank&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 18:53:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642694#M286222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T18:53:48Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642695#M286223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A couple of questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) I do not see why you need 2 tables i_data &amp;amp; t_data in your code as it looks like they have the same structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) I would use a bit different logic to populate fields from bkpf. in your logic for the accounting document with 100 items you will select BKPF 100 times which is not good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would rather use something like (after your select from BSIS):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not i_data[] is initial.&lt;/P&gt;&lt;P&gt; sort i_data by bukrs gjahr belnr.&lt;/P&gt;&lt;P&gt; loop at i_data.&lt;/P&gt;&lt;P&gt;   if bkpf-bukrs ne i_data-bukrs or&lt;/P&gt;&lt;P&gt;      bkpf-gjahr ne i_data-gjahr or&lt;/P&gt;&lt;P&gt;      bkpf-belnr ne i_data-belnr.&lt;/P&gt;&lt;P&gt;    t_data = i_data.   "header-line only !!!&lt;/P&gt;&lt;P&gt;    select single cpudt bvorg waers bstat hwaer hwae2&lt;/P&gt;&lt;P&gt;        from bkpf into corresponding fields of t_data&lt;/P&gt;&lt;P&gt;       where bukrs = i_data-bukrs &lt;/P&gt;&lt;P&gt;         and belnr = i_data-belnr &lt;/P&gt;&lt;P&gt;         and gjahr = i_data-gjahr.&lt;/P&gt;&lt;P&gt;   endif.&lt;/P&gt;&lt;P&gt;   i_data = t_data.&lt;/P&gt;&lt;P&gt;   modify i_data index sy-tabix.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way you only select bkpf once per document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option is to write 2 selects based on the selection criteria you have like for example - if you have a lis tof bukrs &amp;amp; so_cpudt set to 1 day -&amp;gt; I think it will be much faster to select from bkpf first as it has index on BUKRS/CPUDT, then select from BSIS. If you have just a couple of accounts and wide date range -&amp;gt; then it's faster to select form BSIS first. So, I would suggest you think about "adaptive" selection logic based on your current selection criteria.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 18:59:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642695#M286223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T18:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642696#M286224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try replacing the range in so_bukrs with the logic I gave earlier ?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your logic is if so_bukrs is empty, but here its not empty,can you let me know what i have to do.&lt;/P&gt;&lt;P&gt;i did'tn get you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mahulenkta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i will try your suggestion also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 20:36:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642696#M286224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T20:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642697#M286225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;mahulenka&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the structures if i_data and t_data are not same,&lt;/P&gt;&lt;P&gt;it is like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of i_data occurs 0,&lt;/P&gt;&lt;P&gt;      bukrs like bsis-bukrs,&lt;/P&gt;&lt;P&gt;      hkont like bsis-hkont,&lt;/P&gt;&lt;P&gt;      augdt like bsis-augdt,&lt;/P&gt;&lt;P&gt;      augbl like bsis-augbl,&lt;/P&gt;&lt;P&gt;      gjahr like bsis-gjahr,&lt;/P&gt;&lt;P&gt;      belnr like bsis-belnr,&lt;/P&gt;&lt;P&gt;      buzei like bsis-buzei,&lt;/P&gt;&lt;P&gt;      budat like bsis-budat,&lt;/P&gt;&lt;P&gt;      bldat like bsis-bldat,&lt;/P&gt;&lt;P&gt;      xblnr like bsis-xblnr,&lt;/P&gt;&lt;P&gt;      blart like bsis-blart,&lt;/P&gt;&lt;P&gt;      shkzg like bsis-shkzg,&lt;/P&gt;&lt;P&gt;      dmbtr like bsis-dmbtr,&lt;/P&gt;&lt;P&gt;      wrbtr like bsis-wrbtr,&lt;/P&gt;&lt;P&gt;      sgtxt like bsis-sgtxt,&lt;/P&gt;&lt;P&gt;      aufnr like bsis-aufnr,&lt;/P&gt;&lt;P&gt;      kostl like bsis-kostl,&lt;/P&gt;&lt;P&gt;      dmbe2 like bsis-dmbe2,&lt;/P&gt;&lt;P&gt;      prctr like bsis-prctr,&lt;/P&gt;&lt;P&gt;      zztitle like bsis-zztitle,&lt;/P&gt;&lt;P&gt;      zzterr like bsis-zzterr,&lt;/P&gt;&lt;P&gt;      end of i_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and t_data has more fields including the above in the same order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 20:49:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642697#M286225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T20:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642698#M286226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;mahulenka&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the structures if i_data and t_data are not same,&lt;/P&gt;&lt;P&gt;it is like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of i_data occurs 0,&lt;/P&gt;&lt;P&gt;      bukrs like bsis-bukrs,&lt;/P&gt;&lt;P&gt;      hkont like bsis-hkont,&lt;/P&gt;&lt;P&gt;      augdt like bsis-augdt,&lt;/P&gt;&lt;P&gt;      augbl like bsis-augbl,&lt;/P&gt;&lt;P&gt;      gjahr like bsis-gjahr,&lt;/P&gt;&lt;P&gt;      belnr like bsis-belnr,&lt;/P&gt;&lt;P&gt;      buzei like bsis-buzei,&lt;/P&gt;&lt;P&gt;      budat like bsis-budat,&lt;/P&gt;&lt;P&gt;      bldat like bsis-bldat,&lt;/P&gt;&lt;P&gt;      xblnr like bsis-xblnr,&lt;/P&gt;&lt;P&gt;      blart like bsis-blart,&lt;/P&gt;&lt;P&gt;      shkzg like bsis-shkzg,&lt;/P&gt;&lt;P&gt;      dmbtr like bsis-dmbtr,&lt;/P&gt;&lt;P&gt;      wrbtr like bsis-wrbtr,&lt;/P&gt;&lt;P&gt;      sgtxt like bsis-sgtxt,&lt;/P&gt;&lt;P&gt;      aufnr like bsis-aufnr,&lt;/P&gt;&lt;P&gt;      kostl like bsis-kostl,&lt;/P&gt;&lt;P&gt;      dmbe2 like bsis-dmbe2,&lt;/P&gt;&lt;P&gt;      prctr like bsis-prctr,&lt;/P&gt;&lt;P&gt;      zztitle like bsis-zztitle,&lt;/P&gt;&lt;P&gt;      zzterr like bsis-zzterr,&lt;/P&gt;&lt;P&gt;      end of i_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and t_data has more fields including the above in the same order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 20:49:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642698#M286226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T20:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642699#M286227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;mahulenka&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the structures if i_data and t_data are not same,&lt;/P&gt;&lt;P&gt;it is like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of i_data occurs 0,&lt;/P&gt;&lt;P&gt;      bukrs like bsis-bukrs,&lt;/P&gt;&lt;P&gt;      hkont like bsis-hkont,&lt;/P&gt;&lt;P&gt;      augdt like bsis-augdt,&lt;/P&gt;&lt;P&gt;      augbl like bsis-augbl,&lt;/P&gt;&lt;P&gt;      gjahr like bsis-gjahr,&lt;/P&gt;&lt;P&gt;      belnr like bsis-belnr,&lt;/P&gt;&lt;P&gt;      buzei like bsis-buzei,&lt;/P&gt;&lt;P&gt;      budat like bsis-budat,&lt;/P&gt;&lt;P&gt;      bldat like bsis-bldat,&lt;/P&gt;&lt;P&gt;      xblnr like bsis-xblnr,&lt;/P&gt;&lt;P&gt;      blart like bsis-blart,&lt;/P&gt;&lt;P&gt;      shkzg like bsis-shkzg,&lt;/P&gt;&lt;P&gt;      dmbtr like bsis-dmbtr,&lt;/P&gt;&lt;P&gt;      wrbtr like bsis-wrbtr,&lt;/P&gt;&lt;P&gt;      sgtxt like bsis-sgtxt,&lt;/P&gt;&lt;P&gt;      aufnr like bsis-aufnr,&lt;/P&gt;&lt;P&gt;      kostl like bsis-kostl,&lt;/P&gt;&lt;P&gt;      dmbe2 like bsis-dmbe2,&lt;/P&gt;&lt;P&gt;      prctr like bsis-prctr,&lt;/P&gt;&lt;P&gt;      zztitle like bsis-zztitle,&lt;/P&gt;&lt;P&gt;      zzterr like bsis-zzterr,&lt;/P&gt;&lt;P&gt;      end of i_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and t_data has more fields including the above in the same order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 20:49:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642699#M286227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T20:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642700#M286228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;mahulenka&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the structures if i_data and t_data are not same,&lt;/P&gt;&lt;P&gt;it is like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of i_data occurs 0,&lt;/P&gt;&lt;P&gt;      bukrs like bsis-bukrs,&lt;/P&gt;&lt;P&gt;      hkont like bsis-hkont,&lt;/P&gt;&lt;P&gt;      augdt like bsis-augdt,&lt;/P&gt;&lt;P&gt;      augbl like bsis-augbl,&lt;/P&gt;&lt;P&gt;      gjahr like bsis-gjahr,&lt;/P&gt;&lt;P&gt;      belnr like bsis-belnr,&lt;/P&gt;&lt;P&gt;      buzei like bsis-buzei,&lt;/P&gt;&lt;P&gt;      budat like bsis-budat,&lt;/P&gt;&lt;P&gt;      bldat like bsis-bldat,&lt;/P&gt;&lt;P&gt;      xblnr like bsis-xblnr,&lt;/P&gt;&lt;P&gt;      blart like bsis-blart,&lt;/P&gt;&lt;P&gt;      shkzg like bsis-shkzg,&lt;/P&gt;&lt;P&gt;      dmbtr like bsis-dmbtr,&lt;/P&gt;&lt;P&gt;      wrbtr like bsis-wrbtr,&lt;/P&gt;&lt;P&gt;      sgtxt like bsis-sgtxt,&lt;/P&gt;&lt;P&gt;      aufnr like bsis-aufnr,&lt;/P&gt;&lt;P&gt;      kostl like bsis-kostl,&lt;/P&gt;&lt;P&gt;      dmbe2 like bsis-dmbe2,&lt;/P&gt;&lt;P&gt;      prctr like bsis-prctr,&lt;/P&gt;&lt;P&gt;      zztitle like bsis-zztitle,&lt;/P&gt;&lt;P&gt;      zzterr like bsis-zzterr,&lt;/P&gt;&lt;P&gt;      end of i_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and t_data has more fields including the above in the same order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 20:50:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642700#M286228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T20:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642701#M286229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I meant that you should use the logic to fill so_bukrs even if it has the range you specified. For now you can take out the IF SO_BUKRS IS INITIAL and ENDIF (for testing).&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, 19 Oct 2006 21:00:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642701#M286229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T21:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642702#M286230</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;I understood.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I gave a range &lt;/P&gt;&lt;P&gt;so_bukrs 000  - 999&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and your logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  so_bukrs-option = 'EQ'.&lt;/P&gt;&lt;P&gt;  so_bukrs-sign   = 'I'.&lt;/P&gt;&lt;P&gt;  SELECT bukrs FROM  t001&lt;/P&gt;&lt;P&gt;    INTO so_bukrs-low.&lt;/P&gt;&lt;P&gt;    APPEND so_bukrs.&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this the way you meant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now so_bukrs has  values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;000    999&lt;/P&gt;&lt;P&gt;004    999&lt;/P&gt;&lt;P&gt;005    999&lt;/P&gt;&lt;P&gt;006    999&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;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;999   999&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I correct ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  select bukrs hkont augdt augbl gjahr belnr buzei&lt;/P&gt;&lt;P&gt;         budat bldat xblnr blart shkzg dmbtr wrbtr&lt;/P&gt;&lt;P&gt;         sgtxt aufnr kostl dmbe2 prctr zztitle&lt;/P&gt;&lt;P&gt;         zzterr from bsis into table i_data&lt;/P&gt;&lt;P&gt;                WHERE hkont   IN so_hkont&lt;/P&gt;&lt;P&gt;                AND   bukrs   IN so_bukrs&lt;/P&gt;&lt;P&gt;                AND   augdt   IN so_augdt&lt;/P&gt;&lt;P&gt;                AND   gjahr   IN so_gjahr&lt;/P&gt;&lt;P&gt;                AND   belnr   IN so_belnr&lt;/P&gt;&lt;P&gt;                AND   budat   IN so_budat&lt;/P&gt;&lt;P&gt;                AND   bldat   IN so_bldat&lt;/P&gt;&lt;P&gt;                AND   xblnr   IN so_xblnr&lt;/P&gt;&lt;P&gt;                AND   blart   IN so_blart&lt;/P&gt;&lt;P&gt;                AND   aufnr   IN so_aufnr&lt;/P&gt;&lt;P&gt;                AND   kostl   IN so_kostl&lt;/P&gt;&lt;P&gt;                AND   prctr   IN so_prctr&lt;/P&gt;&lt;P&gt;                AND   zztitle IN so_title&lt;/P&gt;&lt;P&gt;                AND   zzterr  IN so_terr.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 21:31:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642702#M286230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T21:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642703#M286231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No - you have to refresh the table before doing this. You want to end up with a range table (or select-option) that has only the values of the company codes in your system and is testing for equality for each of them.&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, 19 Oct 2006 21:38:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642703#M286231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T21:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642704#M286232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chary,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You coded:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_data.&lt;/P&gt;&lt;P&gt;select single cpudt bvorg waers bstat hwaer hwae2&lt;/P&gt;&lt;P&gt;from bkpf into corresponding fields of t_data&lt;/P&gt;&lt;P&gt;where bukrs = t_data-bukrs and&lt;/P&gt;&lt;P&gt;belnr = t_data-belnr and&lt;/P&gt;&lt;P&gt;gjahr = t_data-gjahr.&lt;/P&gt;&lt;P&gt;modify t_data index sy-tabix.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are using select inside a loop which is not good from performance point of view and should be replaced by FOR ALL ENTRIES &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can change the code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: i_data1 like i_data occurs 0 with header line,&lt;/P&gt;&lt;P&gt;      i_data2 like i_data occurs 0 with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if not i_data[] is initial.&lt;/P&gt;&lt;P&gt;i_data2[] = i_data[].&lt;/P&gt;&lt;P&gt;sort i_data2 by bukrs belnr gjahr.&lt;/P&gt;&lt;P&gt;delete adjacent duplicates from i_data2 comparing bukrs belnr gjahr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select bukrs belnr gjahr cpudt bvorg waers bstat hwaer hwae2&lt;/P&gt;&lt;P&gt;from bkpf into corresponding fields of i_data1&lt;/P&gt;&lt;P&gt;for all entries in i_data2&lt;/P&gt;&lt;P&gt;where bukrs = i_data2-bukrs and&lt;/P&gt;&lt;P&gt;belnr = i_data2-belnr and&lt;/P&gt;&lt;P&gt;gjahr = i_data2-gjahr.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;  sort i_data1 by bukrs belnr gjahr.&lt;/P&gt;&lt;P&gt;  loop at i_data.&lt;/P&gt;&lt;P&gt;  clear i_data1.&lt;/P&gt;&lt;P&gt;  read table i_data1 with key bukrs = i_data-bukrs&lt;/P&gt;&lt;P&gt;                              belnr = i_data-belnr&lt;/P&gt;&lt;P&gt;                              gjahr = i_data-gjahr&lt;/P&gt;&lt;P&gt;                              binary search.&lt;/P&gt;&lt;P&gt;  if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;    move-corresponding i_data1 to i_data.&lt;/P&gt;&lt;P&gt;    modify i_data.    &lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you are using statement like&lt;/P&gt;&lt;P&gt;if not so_cpudt is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT seems to be ranges or selection screen parameter.&lt;/P&gt;&lt;P&gt;It should be replaced by&lt;/P&gt;&lt;P&gt;if not so_cpudt[] is initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;similar for &lt;/P&gt;&lt;P&gt;if not so_bvorg is initial.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 21:40:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642704#M286232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T21:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642705#M286233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to refresh the so_bukrs before using your logic.&lt;/P&gt;&lt;P&gt;and I can clear so_bukrs-high becaue we are using EQ sign&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 21:42:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue/m-p/1642705#M286233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T21:42:18Z</dc:date>
    </item>
  </channel>
</rss>

