<?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: code optimization !! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-optimization/m-p/3430266#M823974</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;Create another temporary internal table i_final_temp.&lt;/P&gt;&lt;P&gt;Then do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
refresh i_final_temp.
append lines of i_final to i_final_temp.
delete i_final_temp where v_box ne 'X'.
describe table i_final_temp lines v_counter.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This avoids any looping and hence improves performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Feb 2008 05:15:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-13T05:15:22Z</dc:date>
    <item>
      <title>code optimization !!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-optimization/m-p/3430264#M823972</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;how to optimize the follwoing peice of code to count the no. of checkboxes clicked. ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_final INTO wa_final WHERE v_box = 'X'.  &lt;/P&gt;&lt;P&gt;           v_counter = v_counter + 1.              &lt;/P&gt;&lt;P&gt; ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i know if table contains 10000 records it will chekc the whole table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to optimize it ?? and store the value os checboxes clicked in V_COUNTER ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 04:58:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-optimization/m-p/3430264#M823972</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T04:58:21Z</dc:date>
    </item>
    <item>
      <title>Re: code optimization !!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-optimization/m-p/3430265#M823973</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 declare a local internal table with same structure of that inetrnal table and pass the values to that internal table. then delete the records which dont have the checkbox on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u will be left with records with check box on..&lt;/P&gt;&lt;P&gt;then use DESCRIBE TABLE ITAB LINES N.&lt;/P&gt;&lt;P&gt;N will the no.of records in the internal table with check box on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: pleae reward points if found Useful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 05:14:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-optimization/m-p/3430265#M823973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T05:14:15Z</dc:date>
    </item>
    <item>
      <title>Re: code optimization !!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-optimization/m-p/3430266#M823974</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;Create another temporary internal table i_final_temp.&lt;/P&gt;&lt;P&gt;Then do the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
refresh i_final_temp.
append lines of i_final to i_final_temp.
delete i_final_temp where v_box ne 'X'.
describe table i_final_temp lines v_counter.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This avoids any looping and hence improves performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2008 05:15:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-optimization/m-p/3430266#M823974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-13T05:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: code optimization !!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-optimization/m-p/3430267#M823975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;resolved..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2008 10:35:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-optimization/m-p/3430267#M823975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-14T10:35:29Z</dc:date>
    </item>
  </channel>
</rss>

