<?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 with RESB table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-resb-table/m-p/3806814#M915638</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;Instead of creating the Index, Get Data from RESB with the where clause having the entire key of the index and then loop to the internal and delete the unwanted entries as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;  if itab-LGNUM = LGNUM AND&lt;/P&gt;&lt;P&gt;    itab-LGTYP = LGTYP AND&lt;/P&gt;&lt;P&gt;    itabLGPLA.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;     delete itab index sy-tabix.&lt;/P&gt;&lt;P&gt;  endif. &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As u r getting data with entire index fields the performance will surely increase. Also avoid Select * and retrieve whatever fields u require.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you r not having value to the field BDTER, you can pass a range or select-options for this field which has empty valuee.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 May 2008 05:13:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-16T05:13:08Z</dc:date>
    <item>
      <title>Performance issue with RESB table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-resb-table/m-p/3806812#M915636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;User want to improve the performance of a standard program RLLL07SE in which a RESB table data is fetched and take much time on it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  The select querry for RESB is,&lt;/P&gt;&lt;P&gt;    SELECT * FROM RESB WHERE&lt;/P&gt;&lt;P&gt;           MATNR = MATNR AND&lt;/P&gt;&lt;P&gt;           WERKS = WERKS AND&lt;/P&gt;&lt;P&gt;           XLOEK = SPACE AND                    "Löschkennzeichen&lt;/P&gt;&lt;P&gt;           KZEAR = SPACE AND                    "endausgefaßt&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;         XWAOK = CON_X AND                    "Warenausgang erlaubt&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;           LGNUM = LGNUM AND&lt;/P&gt;&lt;P&gt;           LGTYP = LGTYP AND&lt;/P&gt;&lt;P&gt;           LGPLA = LGPLA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereas the table index is created on following fields of RESB,&lt;/P&gt;&lt;P&gt;MATNR&lt;/P&gt;&lt;P&gt;WERKS&lt;/P&gt;&lt;P&gt;XLOEK&lt;/P&gt;&lt;P&gt;KZEAR&lt;/P&gt;&lt;P&gt;BDTER&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What possible can be done in this respect as the program is a standard one we can change only in Table Inxex I guess..or what else can be done?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can we add LGNUM LGTYP LGPLA into the particular index apart from the existing fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 11:20:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-resb-table/m-p/3806812#M915636</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T11:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with RESB table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-resb-table/m-p/3806813#M915637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my opinion, considering that the query uses the first 4 fields of the index, that query should perform well (no need to change).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if you want to improve it, once again, in my opinion, you shoud create a new index (not changing the standard and not changing the standard program). The existing index, created that way, is used in other standard programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can open a note in SAP site with your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Valter Oliveira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 11:27:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-resb-table/m-p/3806813#M915637</guid>
      <dc:creator>valter_oliveira</dc:creator>
      <dc:date>2008-05-15T11:27:27Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with RESB table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-resb-table/m-p/3806814#M915638</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;Instead of creating the Index, Get Data from RESB with the where clause having the entire key of the index and then loop to the internal and delete the unwanted entries as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;  if itab-LGNUM = LGNUM AND&lt;/P&gt;&lt;P&gt;    itab-LGTYP = LGTYP AND&lt;/P&gt;&lt;P&gt;    itabLGPLA.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;     delete itab index sy-tabix.&lt;/P&gt;&lt;P&gt;  endif. &lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As u r getting data with entire index fields the performance will surely increase. Also avoid Select * and retrieve whatever fields u require.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you r not having value to the field BDTER, you can pass a range or select-options for this field which has empty valuee.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2008 05:13:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-resb-table/m-p/3806814#M915638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-16T05:13:08Z</dc:date>
    </item>
  </channel>
</rss>

