<?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: Question about performance in a code. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-performance-in-a-code/m-p/3056710#M723999</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use PACKAGE SIZE option to prevent the program from running out of memory and resulting in a short dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your insert statement may suffer from short dump if there are records already in the target table. Use ACCEPTING DUPLICATE KEYS option. Or, delete the target table contents before inserting new records. (Try to avoid MODIFY statement.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a different topic, you should really be using radio buttons instead of checkboxes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Nov 2007 19:45:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-15T19:45:56Z</dc:date>
    <item>
      <title>Question about performance in a code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-performance-in-a-code/m-p/3056706#M723995</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 need to make a program to make a backp of one table and the a restore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The performance of this code is fine?? The tables contain a lot of records!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

PARAMETERS:

          p_backup    TYPE c AS CHECKBOX,
          p_rest      TYPE c AS CHECKBOX,
          p_del       TYPE c AS CHECKBOX.

SELECTION-SCREEN END OF BLOCK bl2.

IF p_backup IS NOT INITIAL.  "Cuando se seleccione para hacer backup.

*Data Selection:
  SELECT mandt bukrs day_a racct prctr per_day average agregate agregate_m accumulate average_m day_exe
    FROM zavg_bal_table INTO TABLE t_avg.

  INSERT zavg_backuptable FROM TABLE t_avg.

ELSEIF p_rest IS NOT INITIAL.  "Cuando se seleccione para hacer restore.

  SELECT mandt bukrs day_a racct prctr per_day average agregate agregate_m accumulate average_m day_exe
    FROM zavg_backuptable INTO TABLE t_avg.

  INSERT zavg_bal_table FROM TABLE t_avg.'

ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 18:41:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-performance-in-a-code/m-p/3056706#M723995</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-15T18:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Question about performance in a code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-performance-in-a-code/m-p/3056707#M723996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Without a where clause this could take for ever (if it contains a lot of data).  You are better of doing this at the DB level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Albert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 18:44:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-performance-in-a-code/m-p/3056707#M723996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-15T18:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Question about performance in a code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-performance-in-a-code/m-p/3056708#M723997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Carlos,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Use where clause atleast by passing empty values to the key fields, otherwise more the records goes up performance will go down.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if it helps,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 18:59:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-performance-in-a-code/m-p/3056708#M723997</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-15T18:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Question about performance in a code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-performance-in-a-code/m-p/3056709#M723998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you are taking a lots of records at one time, just split your results by adding "where" clause, here are a few examples of split:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- by mandt             (very few splits, lot of records)&lt;/P&gt;&lt;P&gt;- by day                 &lt;/P&gt;&lt;P&gt;- by initial name     (lot of splits, few records)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;procedure:&lt;/P&gt;&lt;P&gt;read all mandt's into itab, loop itab doing select and insert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTES:&lt;/P&gt;&lt;P&gt;- of course splits and quntity of records depend of each table.&lt;/P&gt;&lt;P&gt;- I suppose that lot of splits with few records are the best choice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 19:30:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-performance-in-a-code/m-p/3056709#M723998</guid>
      <dc:creator>rxsalomone</dc:creator>
      <dc:date>2007-11-15T19:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: Question about performance in a code.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-performance-in-a-code/m-p/3056710#M723999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use PACKAGE SIZE option to prevent the program from running out of memory and resulting in a short dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your insert statement may suffer from short dump if there are records already in the target table. Use ACCEPTING DUPLICATE KEYS option. Or, delete the target table contents before inserting new records. (Try to avoid MODIFY statement.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a different topic, you should really be using radio buttons instead of checkboxes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 19:45:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/question-about-performance-in-a-code/m-p/3056710#M723999</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-15T19:45:56Z</dc:date>
    </item>
  </channel>
</rss>

