<?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: itab1 = itab2? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab1-itab2/m-p/2100016#M437676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You eith have to use mov-ocrresponding or individual fields after opening the loop ie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;itab2-field1 = itab1-field1.&lt;/P&gt;&lt;P&gt;itab2-field2 = itab1-field2.&lt;/P&gt;&lt;P&gt;itab2-field3 = itab1-field3.&lt;/P&gt;&lt;P&gt;itab2-field4 = vbak-vbeln.&lt;/P&gt;&lt;P&gt;append itab2.&lt;/P&gt;&lt;P&gt;clear itab2.&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>Sat, 31 Mar 2007 20:53:39 GMT</pubDate>
    <dc:creator>suresh_datti</dc:creator>
    <dc:date>2007-03-31T20:53:39Z</dc:date>
    <item>
      <title>itab1 = itab2?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab1-itab2/m-p/2100014#M437674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hv 2 itabs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first itab is having &lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;Second itab is having one extra field,&lt;/P&gt;&lt;P&gt;&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;field4_extra field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, now, I am selecting the data from VBAK and populating in to itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I have to transfer this itab1 data to itab2(which is hving one extra field)&lt;/P&gt;&lt;P&gt;So, I am using,&lt;/P&gt;&lt;P&gt;itab2 = itab1.&lt;/P&gt;&lt;P&gt;But, i am getting the error i.e. saying that both itabs r not same!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, How I can transfer the itab1 data to itab2? (later, I can populate the data for that one extra filed in itab2)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ThanQ.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Mar 2007 20:36:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab1-itab2/m-p/2100014#M437674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-31T20:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: itab1 = itab2?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab1-itab2/m-p/2100015#M437675</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;User move-corresponding statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MOVE-CORRESPONDING itab1 to itab2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will move "field1, field2, field3" from ITAB1 to ITAB2. Later on you can populate extra command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you need any other information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;RS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Mar 2007 20:49:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab1-itab2/m-p/2100015#M437675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-31T20:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: itab1 = itab2?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab1-itab2/m-p/2100016#M437676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You eith have to use mov-ocrresponding or individual fields after opening the loop ie.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;itab2-field1 = itab1-field1.&lt;/P&gt;&lt;P&gt;itab2-field2 = itab1-field2.&lt;/P&gt;&lt;P&gt;itab2-field3 = itab1-field3.&lt;/P&gt;&lt;P&gt;itab2-field4 = vbak-vbeln.&lt;/P&gt;&lt;P&gt;append itab2.&lt;/P&gt;&lt;P&gt;clear itab2.&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>Sat, 31 Mar 2007 20:53:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab1-itab2/m-p/2100016#M437676</guid>
      <dc:creator>suresh_datti</dc:creator>
      <dc:date>2007-03-31T20:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: itab1 = itab2?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/itab1-itab2/m-p/2100017#M437677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ThanQ. Both ideas r working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 31 Mar 2007 21:02:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/itab1-itab2/m-p/2100017#M437677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-31T21:02:07Z</dc:date>
    </item>
  </channel>
</rss>

