<?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 by  select / update db in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-by-select-update-db/m-p/3660957#M881807</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;get all the data from the table and move it a ITAB &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use modify to change the field &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the field is not primary key then use MODIFY TABLE or UPDATE TABLE to update table otherwise delete the table entries and use INSERT TABLE&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;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2008 10:43:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-15T10:43:13Z</dc:date>
    <item>
      <title>performance by  select / update db</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-by-select-update-db/m-p/3660956#M881806</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;i must be update a customer table with 3million entry.&lt;/P&gt;&lt;P&gt;how can i get performant the entries and update one field?&lt;/P&gt;&lt;P&gt;I thought i create a select and use the "open cursor" command.&lt;/P&gt;&lt;P&gt;and i update the selected entries and then i get the next entries.&lt;/P&gt;&lt;P&gt;Can anyone give me some tips...thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 10:32:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-by-select-update-db/m-p/3660956#M881806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T10:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: performance by  select / update db</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-by-select-update-db/m-p/3660957#M881807</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;get all the data from the table and move it a ITAB &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use modify to change the field &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the field is not primary key then use MODIFY TABLE or UPDATE TABLE to update table otherwise delete the table entries and use INSERT TABLE&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;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 10:43:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-by-select-update-db/m-p/3660957#M881807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T10:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: performance by  select / update db</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-by-select-update-db/m-p/3660958#M881808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can i get all 3.000.000 Entries from DB?!? and is it then performant?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 10:55:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-by-select-update-db/m-p/3660958#M881808</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T10:55:29Z</dc:date>
    </item>
    <item>
      <title>Re: performance by  select / update db</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-by-select-update-db/m-p/3660959#M881809</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;Schedlue it in backgroound&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first do it for some 10 records by using up to 20 rows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it works then remove it and schedlue a background job&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shiva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 11:00:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-by-select-update-db/m-p/3660959#M881809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T11:00:32Z</dc:date>
    </item>
    <item>
      <title>Re: performance by  select / update db</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-by-select-update-db/m-p/3660960#M881810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok.&lt;/P&gt;&lt;P&gt;what do you think about this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT xxxx xxxx&lt;/P&gt;&lt;P&gt;    FROM dbtab&lt;/P&gt;&lt;P&gt;    APPENDING TABLE gt_itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   PACKAGE SIZE 20000&lt;/P&gt;&lt;P&gt;    WHERE lfdnr IN so_lfdnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify ......&lt;/P&gt;&lt;P&gt;update db....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refresh gt_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDSELECT.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 11:03:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-by-select-update-db/m-p/3660960#M881810</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T11:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: performance by  select / update db</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-by-select-update-db/m-p/3660961#M881811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SELECT xxxx xxxx&lt;/P&gt;&lt;P&gt;into TABLE gt_itab&lt;/P&gt;&lt;P&gt;FROM dbtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gt_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modify.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 11:06:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-by-select-update-db/m-p/3660961#M881811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T11:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: performance by  select / update db</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-by-select-update-db/m-p/3660962#M881812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi DDC,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can improve your LOOP run choosing an FIELD-SYMBOL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;FIELD-SYMBOLS: &amp;lt;fs_itab&amp;gt; LIKE "structure of gt_itab".

SELECT xxxx xxxx INTO TABLE gt_itab FROM dbtab.

LOOP AT gt_itab assigning &amp;lt;fs_itab&amp;gt;.
....
&amp;lt;fs_itab&amp;gt;-field = 'abcd'.
.... 
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;In this case there is no MODIFY needed at all. This is a proven method for saving system time. Hint: The internal table should be declared WITHOUT headerline; i.e. data: gt_itab like table of "structure".! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it,&lt;/P&gt;&lt;P&gt;Heinz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 23:27:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-by-select-update-db/m-p/3660962#M881812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T23:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: performance by  select / update db</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-by-select-update-db/m-p/3660963#M881813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't download 3.000.000 entries! These recommendations are ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should not use the modify db-table, that the is the only command which works not with arrays.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you want to do?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fastest command is&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Updata dbtab set field1 = a
           where ....
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;you can also write  field1 = field1 + a or + field10&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this enough then use it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise you must download in package of about 10.000 and update.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 06:56:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-by-select-update-db/m-p/3660963#M881813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T06:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: performance by  select / update db</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/performance-by-select-update-db/m-p/3660964#M881814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;now i select all entries and use this command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Updata dbtab set field1 = a&lt;/P&gt;&lt;P&gt;           where ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it doesn´t takes a long time. It was very fast....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Apr 2008 08:18:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/performance-by-select-update-db/m-p/3660964#M881814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-16T08:18:45Z</dc:date>
    </item>
  </channel>
</rss>

