<?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, advice plz... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-advice-plz/m-p/2669689#M616305</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Index will improve the performance. Create the index on the fields which you are putting in the where condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Alpesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Aug 2007 09:46:59 GMT</pubDate>
    <dc:creator>alpesh_saparia3</dc:creator>
    <dc:date>2007-08-28T09:46:59Z</dc:date>
    <item>
      <title>***  performance issue, advice plz...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-advice-plz/m-p/2669686#M616302</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 a z-table1 in which I have some fileds, I have wrote the select query to fetch the data and got data too, now from this internal table I have to pass a field called SERIAL_NUM to another z-table2, to fetch the CO documents/items.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in the z-table2 here SERIAL_NUM field is not a key field nor it is having the index, so it is taking time in minutes even to fetch CO doc number/items for 10 serial numbers also. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the z-table2 is having abt 42 lacs of records, I guess even to search the doc numbers for this 10 SERIAL_NUM it is looking each time 42 lacs records as a result it is taking time in mins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code as follows-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_zeps06 INTO wa_zeps06.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE&lt;/P&gt;&lt;P&gt;           belnr&lt;/P&gt;&lt;P&gt;           buzei&lt;/P&gt;&lt;P&gt;           billcode&lt;/P&gt;&lt;P&gt;           vbeln&lt;/P&gt;&lt;P&gt;           INTO (ws_belnr, ws_buzei, ws_billcode, ws_vbeln)&lt;/P&gt;&lt;P&gt;                        FROM zeps03&lt;/P&gt;&lt;P&gt;                        WHERE serialnum = wa_zeps06-serial_no.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;Plese advice me how to overcome this performance issue? Is it works if I create index on serial_num filed in z-table2? Or is there any other way?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Appreciate you response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;DC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 09:33:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-advice-plz/m-p/2669686#M616302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T09:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: ***  performance issue, advice plz...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-advice-plz/m-p/2669687#M616303</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;The first issue is that you are looping over a select statement.  What you could do is create another internal table with same fields as the select statement above and then use the table it_zeps06 with FOR ALL ENTRIES options and collect the serial numbers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should take much less time than the others. Since you are looping over a select statement, the trip from AServer to DBServer is expensive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks...&lt;/P&gt;&lt;P&gt;Preethanm S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 09:39:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-advice-plz/m-p/2669687#M616303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T09:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: ***  performance issue, advice plz...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-advice-plz/m-p/2669688#M616304</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;chane the code as follows:&lt;/P&gt;&lt;P&gt;if not it_zeps06[] is initial. &lt;/P&gt;&lt;P&gt;SELECT SINGLE&lt;/P&gt;&lt;P&gt;belnr&lt;/P&gt;&lt;P&gt;buzei&lt;/P&gt;&lt;P&gt;billcode&lt;/P&gt;&lt;P&gt;vbeln&lt;/P&gt;&lt;P&gt;INTO table itab1 &lt;/P&gt;&lt;P&gt;FROM zeps03&lt;/P&gt;&lt;P&gt;for all entries in it_zeps06&lt;/P&gt;&lt;P&gt;WHERE serialnum = it_zeps06-serial_no.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab1 must have the fieds belnr&lt;/P&gt;&lt;P&gt;buzei&lt;/P&gt;&lt;P&gt;billcode&lt;/P&gt;&lt;P&gt;vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Navneeth K.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 09:40:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-advice-plz/m-p/2669688#M616304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-28T09:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: ***  performance issue, advice plz...</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-advice-plz/m-p/2669689#M616305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Index will improve the performance. Create the index on the fields which you are putting in the where condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Alpesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Aug 2007 09:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-advice-plz/m-p/2669689#M616305</guid>
      <dc:creator>alpesh_saparia3</dc:creator>
      <dc:date>2007-08-28T09:46:59Z</dc:date>
    </item>
  </channel>
</rss>

