<?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 IN A DBTAB USING A SQL SENTENCE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-in-a-dbtab-using-a-sql-sentence/m-p/5115683#M1186646</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Faisal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way is of course correct but Oscar said db table is extremly large. Imagine how this would affect performance (number of access to DB tables + network traffic) if it was moved row by row as you suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jan 2009 19:58:45 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2009-01-22T19:58:45Z</dc:date>
    <item>
      <title>INSERT IN A DBTAB USING A SQL SENTENCE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-in-a-dbtab-using-a-sql-sentence/m-p/5115680#M1186643</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;I need to insert in a dbtab from other dbtab. I would like use a sql sentence like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert into dbtab2 (c1,c2)&lt;/P&gt;&lt;P&gt;select c1,sum(c2)&lt;/P&gt;&lt;P&gt;from dbtab1&lt;/P&gt;&lt;P&gt;group by c1,c2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I do it ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I can´t use internal tables because its size is very big (more than 2 Gb). If I use internal tables, the process "crash" with error SYSTEM_IMODE_TOO_LARGE)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 19:26:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-in-a-dbtab-using-a-sql-sentence/m-p/5115680#M1186643</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-22T19:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT IN A DBTAB USING A SQL SENTENCE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-in-a-dbtab-using-a-sql-sentence/m-p/5115681#M1186644</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;You can't do this in a single shot, at least with any known to me way. Anyhow you can do other thing: using &lt;STRONG&gt;se16n&lt;/STRONG&gt; download your DB table partially to lets say 10 files. Now write a simple report uploading these files and inserting their rows to next DB table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course I assume you only need to transfer these data somehow so this solution would help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 19:48:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-in-a-dbtab-using-a-sql-sentence/m-p/5115681#M1186644</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-01-22T19:48:31Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT IN A DBTAB USING A SQL SENTENCE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-in-a-dbtab-using-a-sql-sentence/m-p/5115682#M1186645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oscar Alconchel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try the following code hope this will help you in this way, only assign the value to Work Area and then from this work area update the dbtable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPES: BEGIN OF t_test,
c1(10) type c,
c2(10) type c,  
END OF t_test.

Data: wa_test type t_test.

Select c1 sum(c2) as c2 
INTO CORRESPONDING FIELDS OF wa_test.
modify dbtable from wa_test.
endselect.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 19:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-in-a-dbtab-using-a-sql-sentence/m-p/5115682#M1186645</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-01-22T19:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: INSERT IN A DBTAB USING A SQL SENTENCE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-in-a-dbtab-using-a-sql-sentence/m-p/5115683#M1186646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Faisal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This way is of course correct but Oscar said db table is extremly large. Imagine how this would affect performance (number of access to DB tables + network traffic) if it was moved row by row as you suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jan 2009 19:58:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-in-a-dbtab-using-a-sql-sentence/m-p/5115683#M1186646</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-01-22T19:58:45Z</dc:date>
    </item>
  </channel>
</rss>

