<?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 iternal table move in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2488991#M561619</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u just send the syntax &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;moving three internal tables into final internal table its urgent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2007 12:15:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-18T12:15:58Z</dc:date>
    <item>
      <title>iternal table move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2488991#M561619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can u just send the syntax &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;moving three internal tables into final internal table its urgent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 12:15:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2488991#M561619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T12:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: iternal table move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2488992#M561620</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;If the field names are the same in the target and destination tables, you can use the MOVE-CORRESPONDING command for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;target is wa_main and gt_main&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;REFRESH gt_main.&lt;/P&gt;&lt;P&gt;LOOP AT gt_mard INTO wa_mard.&lt;/P&gt;&lt;P&gt;READ TABLE gt_marc INTO wa_marc &lt;/P&gt;&lt;P&gt;  WITH KEY matnr = wa_mard-matnr&lt;/P&gt;&lt;P&gt;  werks = wa_mard-werks.&lt;/P&gt;&lt;P&gt;READ TABLE gt_mara INTO wa_mara&lt;/P&gt;&lt;P&gt;  WITH KEY matnr = wa_mard-matnr.&lt;/P&gt;&lt;P&gt;CLEAR wa_main.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING wa_mara TO wa_main.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING wa_marc TO wa_main.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING wa_mard TO wa_main.&lt;/P&gt;&lt;P&gt;APPEND wa_main TO gt_main.&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;Tamás&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Tamás Nyisztor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 12:17:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2488992#M561620</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T12:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: iternal table move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2488993#M561621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if the 3 internal tables are of same type and you want to move that to internal table of same type then....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append lines of itab1 to itab.&lt;/P&gt;&lt;P&gt;append lines of itab2 to itab.&lt;/P&gt;&lt;P&gt;append lines of itab3 to itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if they are different then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop and move-corresponding internal table to final table and append .&lt;/P&gt;&lt;P&gt;this case you have to loop 3 times. for each one once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 12:19:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2488993#M561621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T12:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: iternal table move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2488994#M561622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You can do this way.&lt;/P&gt;&lt;P&gt;loop at itab1 into wa1.&lt;/P&gt;&lt;P&gt;wa-f1 = wa1-f1.&lt;/P&gt;&lt;P&gt;wa-f2 = wa1-f2.&lt;/P&gt;&lt;P&gt;and so on.&lt;/P&gt;&lt;P&gt;append wa to itabfinal.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now for the second internal table.&lt;/P&gt;&lt;P&gt;loop at itab2 into wa2.&lt;/P&gt;&lt;P&gt;wa-f1 = wa2-f1.&lt;/P&gt;&lt;P&gt;and so on.&lt;/P&gt;&lt;P&gt;append wa to itabfinal.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do the same for the third internal table to move its content to the final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will be useful.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 12:19:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2488994#M561622</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T12:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: iternal table move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2488995#M561623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;  I hav six internal table ok but which table i hav to loop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 12:19:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2488995#M561623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T12:19:59Z</dc:date>
    </item>
    <item>
      <title>Re: iternal table move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2488996#M561624</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;Loop at it1.&lt;/P&gt;&lt;P&gt;Loop at it2_item where item = it1-item.&lt;/P&gt;&lt;P&gt;Loop at it3_item where item = it1-item.&lt;/P&gt;&lt;P&gt;Move-corresponding it1 to it_final.&lt;/P&gt;&lt;P&gt;Move-corresponding it2 to it_final.&lt;/P&gt;&lt;P&gt;Move-corresponding it3 to it_final.&lt;/P&gt;&lt;P&gt;Append it_final.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Ashu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 12:21:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2488996#M561624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T12:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: iternal table move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2488997#M561625</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;Try like this...&lt;/P&gt;&lt;P&gt;LOOP AT ITAB1.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING ITAB1 TO ITAB.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;LOOP AT ITAB2.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING ITAB2 TO ITAB.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;LOOP AT ITAB3.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING ITAB3 TO ITAB.&lt;/P&gt;&lt;P&gt;APPEND ITAB.&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>Wed, 18 Jul 2007 12:21:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2488997#M561625</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-07-18T12:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: iternal table move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2488998#M561626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Loop at each of the tables from which you want to move the contents to the final internal table.&lt;/P&gt;&lt;P&gt;Remember to move the correct fields from the internal tables to the final internal table fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 12:22:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2488998#M561626</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T12:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: iternal table move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2488999#M561627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; It depends on the key fields of the 3 internal tables.&lt;/P&gt;&lt;P&gt;If all the keys used have multiple records then u have to use a Loop else u can use a read statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Considering u have multiple records :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at itab1 into wa_tab1.
Move-corresponding wa_tab1 to wa_final.
Loop at itab2 into wa_tab2 where field1 = wa_tab1-field1.
Move-corresponding wa_tab2 to wa_final.
Loop at itab3 into wa_tab3 wher field1 = wa_tab1-field1 and field2 = wa_tab1-field2.
Move-corresponding wa_tab3 to wa_final.
Append wa_final to gt_final.
clear wa_final.
endloop.
endloop.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If unique records r there then use 2  Reads  instead of the 2 inner loops .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepu.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 12:22:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2488999#M561627</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T12:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: iternal table move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2489000#M561628</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this and don't forget to reward all helpfull answers&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
append lines of itab1 to itab.
append lines of itab2 to itab.
append lines of itab3 to itab.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rakesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 12:24:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2489000#M561628</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T12:24:41Z</dc:date>
    </item>
    <item>
      <title>Re: iternal table move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2489001#M561629</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 use Append, modify itab1 to itab2, move-corresponding, insert...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to keep a loop ont he 1st internal table and u have to fetch that data and pass that values to second and after that apply loop on 2nd and pass that values to 3rd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpfull answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 12:24:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2489001#M561629</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T12:24:52Z</dc:date>
    </item>
  </channel>
</rss>

