<?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 Copy data between two tables using cursor in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-data-between-two-tables-using-cursor/m-p/324278#M5075</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have two tables in SAP  (DB2 database). Table 1 contains 100 fields. Table 2 contains all the fields from Table 1 except 10 fields.&lt;/P&gt;&lt;P&gt;I need to do a straight copy from Table 1 to Table 2 for corresponding fields. I need to copy around 1 billion records. What is the best way to do so. I don't need to read the data in ABAP layer. &lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Fri, 18 Nov 2016 10:54:18 GMT</pubDate>
    <dc:creator>former_member297013</dc:creator>
    <dc:date>2016-11-18T10:54:18Z</dc:date>
    <item>
      <title>Copy data between two tables using cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-data-between-two-tables-using-cursor/m-p/324278#M5075</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have two tables in SAP  (DB2 database). Table 1 contains 100 fields. Table 2 contains all the fields from Table 1 except 10 fields.&lt;/P&gt;&lt;P&gt;I need to do a straight copy from Table 1 to Table 2 for corresponding fields. I need to copy around 1 billion records. What is the best way to do so. I don't need to read the data in ABAP layer. &lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2016 10:54:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-data-between-two-tables-using-cursor/m-p/324278#M5075</guid>
      <dc:creator>former_member297013</dc:creator>
      <dc:date>2016-11-18T10:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Copy data between two tables using cursor</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/copy-data-between-two-tables-using-cursor/m-p/324279#M5076</link>
      <description>&lt;P&gt;You should post also in a DB2 forum, for native SQL statements like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  INSERT INTO YOURLIB.TARGET
     (FIELD1, FIELD2, FIELD3, ... FIELD90)
  SELECT FIELD1, FIELD2, FIELD3, ... FIELD90
    FROM YOURLIB.SOURCE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;(or create some view on the bigger table with fields of the smaller one to use in the SELECT part)&lt;/P&gt;&lt;P&gt;Else, in Abap, look in forum for samples of parallelization or cursor, calling for insert of batches of records in another task, there are already many samples.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Raymond&lt;/P&gt;</description>
      <pubDate>Fri, 18 Nov 2016 13:02:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/copy-data-between-two-tables-using-cursor/m-p/324279#M5076</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2016-11-18T13:02:44Z</dc:date>
    </item>
  </channel>
</rss>

