<?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 database from 2 tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-database-from-2-tables/m-p/2401363#M534991</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create one more work area which has the same structure as the Z table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And move values from those 2 work areas to the new work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_ztable-field1 = itab-field1.&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and insert this work area into z table.&lt;/P&gt;&lt;P&gt;INSERT INTO ztable VALUES wa_ztable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jun 2007 16:51:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-13T16:51:20Z</dc:date>
    <item>
      <title>Insert database from 2 tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-database-from-2-tables/m-p/2401360#M534988</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 have field-symbol table with some components. And i have another internal table with other fields. Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab (field1, field2, field3)&lt;/P&gt;&lt;P&gt;fs (component1, component2) " like zstruct&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a table with &lt;/P&gt;&lt;P&gt;field1&lt;/P&gt;&lt;P&gt;field2&lt;/P&gt;&lt;P&gt;field3&lt;/P&gt;&lt;P&gt;struct (zstrcut with 2 fields)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How i can insert into database table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pd: really it is not 2 internal tables. It is 2 work areas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Manel Casadesus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 16:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-database-from-2-tables/m-p/2401360#M534988</guid>
      <dc:creator>former_member582701</dc:creator>
      <dc:date>2007-06-13T16:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Insert database from 2 tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-database-from-2-tables/m-p/2401361#M534989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at itab into wa.&lt;/P&gt;&lt;P&gt;insert into dbtab values wa.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Suresh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 16:50:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-database-from-2-tables/m-p/2401361#M534989</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2007-06-13T16:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Insert database from 2 tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-database-from-2-tables/m-p/2401362#M534990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First copy the values of itab &amp;amp; fs into workarea whcih is type of database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To move from itab- Use MOVE&lt;/P&gt;&lt;P&gt;To move from fs - Use ASSIGN COMPONENT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then using INSERT statement u insert the record into DB 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;Sail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Aarun Sailyendran Murugesan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 16:50:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-database-from-2-tables/m-p/2401362#M534990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T16:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: Insert database from 2 tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/insert-database-from-2-tables/m-p/2401363#M534991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Create one more work area which has the same structure as the Z table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And move values from those 2 work areas to the new work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_ztable-field1 = itab-field1.&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and insert this work area into z table.&lt;/P&gt;&lt;P&gt;INSERT INTO ztable VALUES wa_ztable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 16:51:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/insert-database-from-2-tables/m-p/2401363#M534991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-13T16:51:20Z</dc:date>
    </item>
  </channel>
</rss>

