<?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: Insert a high in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-high/m-p/5759088#M1304510</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you think about this solution ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :&lt;/P&gt;&lt;P&gt;        w_cursor         TYPE cursor,&lt;/P&gt;&lt;P&gt;        wa_table         TYPE table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN CURSOR w_cursor FOR SELECT *&lt;/P&gt;&lt;P&gt;                                              FROM table&lt;/P&gt;&lt;P&gt;ORDER BY PRIMARY KEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;  CLEAR wa_table.&lt;/P&gt;&lt;P&gt;  FETCH NEXT CURSOR w_cursor INTO wa_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    CLOSE CURSOR w_cursor.&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;  INSERT table FROM wa_table.&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;COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mustapha OUHAMOU on Jun 25, 2009 11:56 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jun 2009 11:56:02 GMT</pubDate>
    <dc:creator>MusAbaper</dc:creator>
    <dc:date>2009-06-25T11:56:02Z</dc:date>
    <item>
      <title>Insert a high</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-high/m-p/5759084#M1304506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone tell me how can I do to move the contents of a table (which contains almost 20 000 000 entries) to another one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that i can't use internal table to charge all the entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank's in advance&lt;/P&gt;&lt;P&gt;Mustapha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 11:32:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-high/m-p/5759084#M1304506</guid>
      <dc:creator>MusAbaper</dc:creator>
      <dc:date>2009-06-25T11:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Insert a high</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-high/m-p/5759085#M1304507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could you please be clear with the question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 11:35:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-high/m-p/5759085#M1304507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-25T11:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Insert a high</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-high/m-p/5759086#M1304508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you  Bhargava TC for your response,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a specific table who contain a lot of entries (almost 20 000 000 entries) and i want to insert this 20 000 000 entries (with a lot of conditions) in another table, i must try with native SQL (cursor, exec  ...) , because as i know, the use of internal table is limited in size ( Internal table can't contains 20 000 000 entries )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you think about this ?&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, 25 Jun 2009 11:41:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-high/m-p/5759086#M1304508</guid>
      <dc:creator>MusAbaper</dc:creator>
      <dc:date>2009-06-25T11:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Insert a high</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-high/m-p/5759087#M1304509</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;There is an option to fetch the no:of rows from the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So you can do the following.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Select *
From database_table
into itab
where
up to n rows.

read the highest key from the itab and save it in l_highest_key.

update the other database table where you want to copy.

commit work.

do.

Select *
From database_table
into itab
where key &amp;gt; l_highest_key
*up to n rows.*

if sy-subrc ne 0.
exit.
endif.

read the highest key from the itab and save it in l_highest_key.

update the other database table where you want to copy.

*commit work.*

enddo.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Anand Patil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 11:48:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-high/m-p/5759087#M1304509</guid>
      <dc:creator>former_member189420</dc:creator>
      <dc:date>2009-06-25T11:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Insert a high</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-high/m-p/5759088#M1304510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Anand,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you think about this solution ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :&lt;/P&gt;&lt;P&gt;        w_cursor         TYPE cursor,&lt;/P&gt;&lt;P&gt;        wa_table         TYPE table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN CURSOR w_cursor FOR SELECT *&lt;/P&gt;&lt;P&gt;                                              FROM table&lt;/P&gt;&lt;P&gt;ORDER BY PRIMARY KEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;  CLEAR wa_table.&lt;/P&gt;&lt;P&gt;  FETCH NEXT CURSOR w_cursor INTO wa_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    CLOSE CURSOR w_cursor.&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;  INSERT table FROM wa_table.&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;COMMIT WORK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mustapha OUHAMOU on Jun 25, 2009 11:56 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 11:56:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-high/m-p/5759088#M1304510</guid>
      <dc:creator>MusAbaper</dc:creator>
      <dc:date>2009-06-25T11:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: Insert a high</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-high/m-p/5759089#M1304511</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;If you want to update or insert that huge number of records to a database then, you can segregate it into chunks and send them accordinly..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 12:02:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-high/m-p/5759089#M1304511</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-25T12:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: Insert a high</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-high/m-p/5759090#M1304512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Musthapha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code looks good. Use commit work just after insert. Instead of using it after the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA :&lt;/P&gt;&lt;P&gt;w_cursor TYPE cursor,&lt;/P&gt;&lt;P&gt;wa_table TYPE table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN CURSOR w_cursor FOR SELECT *&lt;/P&gt;&lt;P&gt;FROM table&lt;/P&gt;&lt;P&gt;ORDER BY PRIMARY KEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;CLEAR wa_table.&lt;/P&gt;&lt;P&gt;FETCH NEXT CURSOR w_cursor INTO wa_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;DEL&gt;IF sy-subrc 0.&lt;/DEL&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc &lt;STRONG&gt;ne&lt;/STRONG&gt; 0.&lt;/P&gt;&lt;P&gt;CLOSE CURSOR w_cursor.&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;INSERT table FROM wa_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;COMMIT WORK.&lt;/STRONG&gt;&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;&lt;DEL&gt;COMMIT WORK&lt;/DEL&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jun 2009 12:05:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-a-high/m-p/5759090#M1304512</guid>
      <dc:creator>former_member189420</dc:creator>
      <dc:date>2009-06-25T12:05:51Z</dc:date>
    </item>
  </channel>
</rss>

