<?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: 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/2555597#M582383</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Try this and &amp;lt;b&amp;gt;reward if found helpfull&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
itab1[ ] = itab2[ ].
&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 11:32:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-18T11:32:07Z</dc:date>
    <item>
      <title>iternal table move</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2555595#M582381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to move the internal tables to final internal table how pls let me know&lt;/P&gt;&lt;P&gt;urgent&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 11:30:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2555595#M582381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T11:30:31Z</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/2555596#M582382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Use&lt;/P&gt;&lt;P&gt;MOVE itab to Final_itab.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;itab[] = final_itab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Roja Velagapudi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 11:31:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2555596#M582382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T11:31:55Z</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/2555597#M582383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Try this and &amp;lt;b&amp;gt;reward if found helpfull&lt;/P&gt;&lt;P&gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
itab1[ ] = itab2[ ].
&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 11:32:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2555597#M582383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T11:32:07Z</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/2555598#M582384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;if the table are equal in structure do itab0[] = itab[].&lt;/P&gt;&lt;P&gt;regards, dieter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 11:32:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2555598#M582384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T11:32:24Z</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/2555599#M582385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the internal tables and final internal table structure are similar&lt;/P&gt;&lt;P&gt;then do the following. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append lines of itab1 to itab_final.&lt;/P&gt;&lt;P&gt;append lines of itab2 to itab_final.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 11:33:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2555599#M582385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T11:33:05Z</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/2555600#M582386</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 line of itab to itab-final.&lt;/P&gt;&lt;P&gt;refer help for syntax .&lt;/P&gt;&lt;P&gt;other wise you can directly append like&lt;/P&gt;&lt;P&gt;itabfinal[] = itab[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye,&lt;/P&gt;&lt;P&gt;satya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 11:33:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2555600#M582386</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T11:33:08Z</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/2555601#M582387</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;Chk this sample.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : begin of itab1 occurs 0. "itab with work area.&lt;/P&gt;&lt;P&gt;key_field1 like ztable1-key_field1,&lt;/P&gt;&lt;P&gt;field1 like ztable1-field1,&lt;/P&gt;&lt;P&gt;field2 like ztable1-field2,&lt;/P&gt;&lt;P&gt;endof itab1. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data : begin of itab2 occurs 0. "itab with work area.&lt;/P&gt;&lt;P&gt;key_field2 like ztable2-key_field2,&lt;/P&gt;&lt;P&gt;field3 like ztable2-field3,&lt;/P&gt;&lt;P&gt;field4 like ztable2-field4,&lt;/P&gt;&lt;P&gt;endof itab2. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;data : begin of itab_final occurs 0.&lt;/P&gt;&lt;P&gt;key_field like ztable1-key_field1,&lt;/P&gt;&lt;P&gt;field1 like ztable1-field1,&lt;/P&gt;&lt;P&gt;field2 like ztable1-field2,&lt;/P&gt;&lt;P&gt;field3 like ztable2-field3,&lt;/P&gt;&lt;P&gt;field4 like ztable2-field4,&lt;/P&gt;&lt;P&gt;endof itab_final. &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;LOOP AT ITAB1.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING TO ITAB1 to ITAB_FINAL.&lt;/P&gt;&lt;P&gt;READ TABLE ITAB2 WITH KEY FILED1 = ITAB1-FIELD1.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING TO ITAB2 to ITAB_FINAL.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;append itab_final.&lt;/P&gt;&lt;P&gt;clear itab_final.&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 11:33:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2555601#M582387</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T11:33: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/2555602#M582388</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;Consider this Example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im going to move the two internal tables to the final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop the 1st internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use read table table itab2.&lt;/P&gt;&lt;P&gt;ex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_bkpf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it_with_item with key belnr = it_bkpf-belnr.&lt;/P&gt;&lt;P&gt;it_final-belnr = it_bkpf-belnr.&lt;/P&gt;&lt;P&gt;it_final-field2 = it_bfpf-budat.&lt;/P&gt;&lt;P&gt;it_final-field3 = it_with_item-with.&lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;P&gt;........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append it_final.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reward If Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 11:35:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2555602#M582388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T11:35:52Z</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/2555603#M582389</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;U can copy the tablename into ur namespace but u can copy the table records only by using programming:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Move itab1[] to itab2[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls reward helpful points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ameet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 11:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2555603#M582389</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T11:35:56Z</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/2555604#M582390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If both the internal tables are of the same structure then u can use itab1[] = itab2[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If they are of different strucures then u should use the code as shown below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab2.&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING  itab2 TO itab1.&lt;/P&gt;&lt;P&gt;    APPEND itab1.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sharadendu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 11:36:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2555604#M582390</guid>
      <dc:creator>sharadendu_agrawal</dc:creator>
      <dc:date>2007-07-18T11:36:04Z</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/2555605#M582391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ramesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   it is simple jus try this&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;select single * from table into corresponding fields of table &amp;lt;final itab&amp;gt; where &amp;lt;cond&amp;gt;.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REWARD IF USEFUL............!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 11:38:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2555605#M582391</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T11:38:44Z</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/2555606#M582392</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 think you have to apply nested loops on internal tables in which u have data&lt;/P&gt;&lt;P&gt;and at last append them to final table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards points if useful.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;shiv.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 11:41:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2555606#M582392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T11:41:49Z</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/2555607#M582393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;Example&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The structure struc1 contains the components: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;struc1-comp1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;struc1-struci-comp1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;struc1-struci-comp2-col1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;struc1-struci-comp2-col2&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The structure struc2 contains the components: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;struc2-struci-comp1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;struc2-struci-comp2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;struc2-struci-comp3&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Over the length of the shorter path, the components struci-comp1 and struci-comp2 have the same name. These are assigned from struc1 to struc2. In struc1, struci-comp2 is self-structured, in struc2, struci-comp2 is elementary. In the assignment of struc1-struci-comp2 to struc2-struci-comp2, the source field is documented as an elementary field of type c in accordance with the conversion rules for structures. The components struc1-comp1 and struc2-struci-comp3 do not have any equivalents with the same name and are not taken into account in the assignment. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: BEGIN OF struc1, 
        comp TYPE c LENGTH 1 VALUE 'U', 
        BEGIN OF struci, 
          comp1 TYPE c LENGTH 1 VALUE 'V', 
          BEGIN OF comp2, 
            col1 TYPE c LENGTH 1 VALUE 'X', 
            col2 TYPE c LENGTH 1 VALUE 'Y', 
          END OF comp2, 
        END OF struci, 
     END OF struc1. 

DATA: BEGIN OF struc2, 
        BEGIN OF struci, 
          comp1 TYPE string, 
          comp2 TYPE string, 
          comp3 TYPE string, 
        END OF struci, 
     END OF struc2. 

MOVE-CORRESPONDING struc1 TO struc2. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward  points  if it is usefull ....&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 11:48:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/iternal-table-move/m-p/2555607#M582393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T11:48:05Z</dc:date>
    </item>
  </channel>
</rss>

