<?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 data from a dbTABLE into another dbtable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704500#M32217</link>
    <description>&lt;P&gt;Hmm, I dug out my ABAP book to check and you're right that is not available in 7.00. &lt;/P&gt;
  &lt;P&gt;OK, but 5M records isn't really a huge amount, have you tried with a simple itab transfer? &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;SELECT * FROM source INTO TABLE itab.&lt;BR /&gt;INSERT target FROM itab.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;If the system struggles, break it up: &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;SELECT * FROM source INTO TABLE itab PACKAGE SIZE 500000. 
  INSERT target FROM itab.
ENDSELECT.&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 12 Sep 2018 20:13:34 GMT</pubDate>
    <dc:creator>pokrakam</dc:creator>
    <dc:date>2018-09-12T20:13:34Z</dc:date>
    <item>
      <title>Insert data from a dbTABLE into another dbtable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704496#M32213</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;(Running Version: 7.00, LVL 17)&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;We need to insert a lot of data (about 5 million records) from a Z table to another Z table (same structure) in the same system. The target table already exists in the system.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Any easy (and fast) way to do this? All I have been able to find is related to newer versions.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Thanks in davance,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Luis&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 15:26:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704496#M32213</guid>
      <dc:creator>luis_rod</dc:creator>
      <dc:date>2018-09-12T15:26:56Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data from a dbTABLE into another dbtable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704497#M32214</link>
      <description>&lt;PRE&gt;&lt;CODE&gt;INSERT target FROM ( SELECT * FROM source ).&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Sep 2018 19:23:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704497#M32214</guid>
      <dc:creator>pokrakam</dc:creator>
      <dc:date>2018-09-12T19:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data from a dbTABLE into another dbtable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704498#M32215</link>
      <description>&lt;P&gt;Mike,&lt;/P&gt;
  &lt;P&gt;Thanks for your answer. When compiling the program I get:&lt;/P&gt;
  &lt;P&gt;Field "(" is unknown. It is neither in one of the specified tables nor&lt;BR /&gt;defined by a "DATA" statement . . . . . . . . . .&lt;/P&gt;
  &lt;P&gt;I'm afraid I have a version problem...&lt;/P&gt;
  &lt;P&gt;Thanks again,&lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 19:39:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704498#M32215</guid>
      <dc:creator>luis_rod</dc:creator>
      <dc:date>2018-09-12T19:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data from a dbTABLE into another dbtable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704499#M32216</link>
      <description>&lt;P&gt;Try looking at how to do native SQL from ABAP.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 20:08:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704499#M32216</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-09-12T20:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data from a dbTABLE into another dbtable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704500#M32217</link>
      <description>&lt;P&gt;Hmm, I dug out my ABAP book to check and you're right that is not available in 7.00. &lt;/P&gt;
  &lt;P&gt;OK, but 5M records isn't really a huge amount, have you tried with a simple itab transfer? &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;SELECT * FROM source INTO TABLE itab.&lt;BR /&gt;INSERT target FROM itab.&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;If the system struggles, break it up: &lt;/P&gt;
  &lt;PRE&gt;&lt;CODE&gt;SELECT * FROM source INTO TABLE itab PACKAGE SIZE 500000. 
  INSERT target FROM itab.
ENDSELECT.&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Sep 2018 20:13:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704500#M32217</guid>
      <dc:creator>pokrakam</dc:creator>
      <dc:date>2018-09-12T20:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data from a dbTABLE into another dbtable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704501#M32218</link>
      <description>&lt;P&gt;Matthew,&lt;/P&gt;
  &lt;P&gt;Had already thought about it. My problem is that I'm getting several errors when running the "native" sql statement. Some of them refer to problems with NULL fields, which I don't realy understand, as the target is an exact copy of the source file. As soon as I wrote a coalesce I began to get 936 errors, which I believe is related to date fields.&lt;/P&gt;
  &lt;P&gt;Regards,&lt;/P&gt;
  &lt;P&gt;Luis&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 20:15:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704501#M32218</guid>
      <dc:creator>luis_rod</dc:creator>
      <dc:date>2018-09-12T20:15:01Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data from a dbTABLE into another dbtable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704502#M32219</link>
      <description>&lt;P&gt;Mike,&lt;/P&gt;
  &lt;P&gt;That's what I was going to try next. Just wanted to do it with a single INSERT, as I thought it should be a lot more faster and efficient.&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;/P&gt;
  &lt;P&gt;Luis&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 20:21:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704502#M32219</guid>
      <dc:creator>luis_rod</dc:creator>
      <dc:date>2018-09-12T20:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data from a dbTABLE into another dbtable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704503#M32220</link>
      <description>&lt;P&gt;What was your native SQL statement? Same principle should work.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2018 20:42:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704503#M32220</guid>
      <dc:creator>pokrakam</dc:creator>
      <dc:date>2018-09-12T20:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data from a dbTABLE into another dbtable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704504#M32221</link>
      <description>&lt;P&gt;If its a one off, efficiency isn't an issue. &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt;But packages of 50000 are default in BW, transferring data from one table to another, so I think it's fairly efficient anyway. &lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 05:10:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704504#M32221</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-09-13T05:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data from a dbTABLE into another dbtable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704505#M32222</link>
      <description>&lt;P&gt;Matthew,&lt;/P&gt;
  &lt;P&gt;It's between a one off and once in a (long) while. &lt;/P&gt;
  &lt;P&gt;I'm somewhat of a newbie in the SAP/ABAP world, and my background is more geared towards IBM's Db2, so my first approach to a problem is to write one heck of SQL statement. I still have to struggle sometimes against the limitations I have with OPEN SQL in our current ABAP version.&lt;/P&gt;
  &lt;P&gt;Thanks for your help,&lt;/P&gt;
  &lt;P&gt;Luis.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 13:44:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704505#M32222</guid>
      <dc:creator>luis_rod</dc:creator>
      <dc:date>2018-09-13T13:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data from a dbTABLE into another dbtable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704506#M32223</link>
      <description>&lt;P&gt;It gets much better in later releases. Also check out AMDP and ADBC. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 09:00:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704506#M32223</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-09-14T09:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data from a dbTABLE into another dbtable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704507#M32224</link>
      <description>&lt;P&gt;(sigh...) One can only hope...:-)&lt;/P&gt;
  &lt;P&gt;Thanks for the heads up about ADBC and AMDP. The latter looks really nice.&lt;/P&gt;
  &lt;P&gt;Best Regards,&lt;/P&gt;
  &lt;P&gt;Luis&lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 13:52:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704507#M32224</guid>
      <dc:creator>luis_rod</dc:creator>
      <dc:date>2018-09-14T13:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Insert data from a dbTABLE into another dbtable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704508#M32225</link>
      <description>&lt;P&gt;AMDP has its annoyances (especially when it's an HANA Expert Routine in BW). Just found out today that if you want to call a stored procedure from an AMDP, it's only possible if the procedure is in the same name space and the name begins with /BCAMDP/.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 14 Sep 2018 14:53:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-data-from-a-dbtable-into-another-dbtable/m-p/704508#M32225</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2018-09-14T14:53:45Z</dc:date>
    </item>
  </channel>
</rss>

