<?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 move fields from one table to another in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-one-table-to-another/m-p/1635764#M283503</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 would like to move fields from one internal table into corresponding fields of another internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding syntax seems only to work with structures. How do you accomplish this for internal tables? Do I have to use for loops?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Baran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Oct 2006 10:39:12 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-19T10:39:12Z</dc:date>
    <item>
      <title>move fields from one table to another</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-one-table-to-another/m-p/1635764#M283503</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 would like to move fields from one internal table into corresponding fields of another internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding syntax seems only to work with structures. How do you accomplish this for internal tables? Do I have to use for loops?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Baran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:39:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-one-table-to-another/m-p/1635764#M283503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T10:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: move fields from one table to another</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-one-table-to-another/m-p/1635765#M283504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Loop at itab into wstab. &lt;/P&gt;&lt;P&gt; move-corresponding wstab to newtab.&lt;/P&gt;&lt;P&gt; append itab1 from newtab.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:40:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-one-table-to-another/m-p/1635765#M283504</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T10:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: move fields from one table to another</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-one-table-to-another/m-p/1635766#M283505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi baran,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes u have to use the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say one internal table is itab and the other is itab1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also workarea are wa_tab,wa_tab1 respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab into wa_tab. &lt;/P&gt;&lt;P&gt;move-corresponding wa_tab to wa_tab1.&lt;/P&gt;&lt;P&gt;append itab1 from wa_tab1.&lt;/P&gt;&lt;P&gt;clear : wa_tab,&lt;/P&gt;&lt;P&gt;        wa_tab1.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:48:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-one-table-to-another/m-p/1635766#M283505</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2006-10-19T10:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: move fields from one table to another</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-one-table-to-another/m-p/1635767#M283506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  move corresponding fields of itab to itab1.&lt;/P&gt;&lt;P&gt;    append itab1.&lt;/P&gt;&lt;P&gt;    clear itab1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:49:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-one-table-to-another/m-p/1635767#M283506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T10:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: move fields from one table to another</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-one-table-to-another/m-p/1635768#M283507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you have to use loops and move-correspoding statements unless you have all the common fields in the same order on both internal table and no different fields to the left most.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab1 occurs 0,&lt;/P&gt;&lt;P&gt;         field1 type i,&lt;/P&gt;&lt;P&gt;      end of itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: begin of itab2 occurs 0,&lt;/P&gt;&lt;P&gt;         field1 type i,&lt;/P&gt;&lt;P&gt;         field2(1),&lt;/P&gt;&lt;P&gt;      end of itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do 5 times.&lt;/P&gt;&lt;P&gt;itab1-field1 = sy-index.&lt;/P&gt;&lt;P&gt;append itab1.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab2[] = itab1[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab2.&lt;/P&gt;&lt;P&gt;write:/ itab2-field1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code would give you some idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:53:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-fields-from-one-table-to-another/m-p/1635768#M283507</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-19T10:53:32Z</dc:date>
    </item>
  </channel>
</rss>

