<?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 BSAS table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bsas-table/m-p/1919535#M382125</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;1. check whether the SELECT inside the DO statement is required. this shud be the culprit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In the SELECT query avoid using APPENDING CORRESPONDING TABLES caluse. directly populate into another internal table and append it later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. check whether the internal table gt_bsis is initial before using FOR ALL ENTRIES in the select query. check if it has duplicate entries too. if it has....delete the duplictaes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Feb 2007 14:03:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-06T14:03:15Z</dc:date>
    <item>
      <title>Performance issue with BSAS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bsas-table/m-p/1919532#M382122</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 am considering 1 lac gls for BSAS selection. It is giving runtime error DBIF_RSQL_INVALID_RSQL and exception CX_SY_OPEN_SQL_DB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To overcome this issue i  used the followiing code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      PERFORM f_make_index USING sy-index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      REFRESH lr_hkont.&lt;/P&gt;&lt;P&gt;      CLEAR   lr_hkont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      APPEND LINES OF gr_hkont FROM gv_from TO gv_to TO lr_hkont.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF lr_hkont[] IS INITIAL.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      SELECT bukrs hkont gjahr belnr buzei budat augbl augdt waers wrbtr&lt;/P&gt;&lt;P&gt;                                     dmbtr dmbe2 shkzg blart FROM bsas&lt;/P&gt;&lt;P&gt;                                     APPENDING CORRESPONDING FIELDS OF TABLE&lt;/P&gt;&lt;P&gt;                                     gt_bsas&lt;/P&gt;&lt;P&gt;                                     FOR ALL ENTRIES IN gt_bsis&lt;/P&gt;&lt;P&gt;                                     WHERE bukrs = gt_bsis-bukrs&lt;/P&gt;&lt;P&gt;                                     AND   hkont IN lr_hkont&lt;/P&gt;&lt;P&gt;                                     AND   gjahr = gt_bsis-gjahr&lt;/P&gt;&lt;P&gt;                                     AND   augbl = gt_bsis-belnr&lt;/P&gt;&lt;P&gt;                                     and   budat = gt_bsis-budat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am passing 500 gls for each BSAS selection and appending to GT_BSAS internal table. This code it is taking 50 hours to fetch the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest me how to improve the performance of the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 12:30:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bsas-table/m-p/1919532#M382122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T12:30:40Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with BSAS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bsas-table/m-p/1919533#M382123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;first get all the G/L Account then put like this &lt;/P&gt;&lt;P&gt;if gt_bsis[] is not initial.&lt;/P&gt;&lt;P&gt;SELECT bukrs hkont gjahr belnr buzei budat augbl augdt waers wrbtr&lt;/P&gt;&lt;P&gt;dmbtr dmbe2 shkzg blart FROM bsas&lt;/P&gt;&lt;P&gt;into CORRESPONDING FIELDS OF TABLE&lt;/P&gt;&lt;P&gt;gt_bsas&lt;/P&gt;&lt;P&gt;FOR ALL ENTRIES IN gt_bsis&lt;/P&gt;&lt;P&gt;WHERE bukrs = gt_bsis-bukrs&lt;/P&gt;&lt;P&gt;AND hkont IN lr_hkont&lt;/P&gt;&lt;P&gt;AND gjahr = gt_bsis-gjahr&lt;/P&gt;&lt;P&gt;AND augbl = gt_bsis-belnr&lt;/P&gt;&lt;P&gt;and budat = gt_bsis-budat.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 12:44:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bsas-table/m-p/1919533#M382123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T12:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with BSAS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bsas-table/m-p/1919534#M382124</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 am checking gt_bsis[] not initial and then writing the select query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 13:57:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bsas-table/m-p/1919534#M382124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T13:57:34Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with BSAS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bsas-table/m-p/1919535#M382125</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;1. check whether the SELECT inside the DO statement is required. this shud be the culprit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. In the SELECT query avoid using APPENDING CORRESPONDING TABLES caluse. directly populate into another internal table and append it later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. check whether the internal table gt_bsis is initial before using FOR ALL ENTRIES in the select query. check if it has duplicate entries too. if it has....delete the duplictaes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 14:03:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bsas-table/m-p/1919535#M382125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T14:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with BSAS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bsas-table/m-p/1919536#M382126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Inside DO ENDDO select statement is required because I am spliting the GLs into 500 and appending it to internal table gt_bsas. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also checked gt_bsis is not initial.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 14:07:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bsas-table/m-p/1919536#M382126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T14:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with BSAS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bsas-table/m-p/1919537#M382127</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;pls check the exit condition of the DO ENDDO loop. &lt;/P&gt;&lt;P&gt;u r appending the lines to lr_hkont table and checking if its initial for EXIT condition.&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;madhu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 14:17:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bsas-table/m-p/1919537#M382127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T14:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Performance issue with BSAS table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bsas-table/m-p/1919538#M382128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You haven't shown how you fill gt_bsis, but I assume you are just using lr_hkont. If that is the case, why don't you use the same criteria against bsas. GT_BSIS will have many duplicate records (unless you have already deleted duplicates) and I think that is slowing it down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Feb 2007 14:30:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-issue-with-bsas-table/m-p/1919538#M382128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-06T14:30:30Z</dc:date>
    </item>
  </channel>
</rss>

