<?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: Moving data between internal tables having different structures in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712682#M1872258</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your question was easy but conditions you stated have made it more interesting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think , considering your conditions of not using looping , move-corresponding etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you should change the structure of itab1 , like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;itab1&lt;/STRONG&gt; having components &lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;comp3 comp4 &lt;STRONG style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; background-position: initial;"&gt;comp1 comp2 &lt;/STRONG&gt;comp5&lt;/STRONG&gt;.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;itab2&lt;/STRONG&gt; having components &lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;comp3 comp4&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;itab2[] = itab1[] .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it out &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;Yogendra Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Oct 2014 07:49:43 GMT</pubDate>
    <dc:creator>yogendra_bhaskar</dc:creator>
    <dc:date>2014-10-28T07:49:43Z</dc:date>
    <item>
      <title>Moving data between internal tables having different structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712681#M1872257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know if there is any better option for the following scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Scenario: I am having two internal tables, say itab1 &amp;amp; itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;itab1&lt;/STRONG&gt; is having components &lt;STRONG&gt;comp1 comp2 comp3 comp4 comp5&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;itab2&lt;/STRONG&gt; is having components &lt;STRONG&gt;comp3 comp4&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, I want to move data from itab1 to itab2. But my question is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to use following options for this.&lt;/P&gt;&lt;P&gt;1. Looping &amp;amp; Move-corresponding&lt;/P&gt;&lt;P&gt;2. I can't use append lines since both the internal tables having different line types(structure).&lt;/P&gt;&lt;P&gt;3. I can't use , itab1[] = itab2[] option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if there is any(better) option for this scenario.&lt;/P&gt;&lt;P&gt;My question may be weird, but the main purpose of this query is for better performance and dynamic assignment of data(without using loop statment).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for some interesting answers that can enlighten my ABAP knowledge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 07:38:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712681#M1872257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-28T07:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data between internal tables having different structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712682#M1872258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your question was easy but conditions you stated have made it more interesting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think , considering your conditions of not using looping , move-corresponding etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest you should change the structure of itab1 , like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;itab1&lt;/STRONG&gt; having components &lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;comp3 comp4 &lt;STRONG style="color: #333333; font-family: inherit; font-size: 12px; font-style: inherit; background-position: initial;"&gt;comp1 comp2 &lt;/STRONG&gt;comp5&lt;/STRONG&gt;.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;itab2&lt;/STRONG&gt; having components &lt;STRONG style="font-style: inherit; font-family: inherit; background: transparent;"&gt;comp3 comp4&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;itab2[] = itab1[] .&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that's it &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try it out &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;Yogendra Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 07:49:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712682#M1872258</guid>
      <dc:creator>yogendra_bhaskar</dc:creator>
      <dc:date>2014-10-28T07:49:43Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data between internal tables having different structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712683#M1872259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Siva,&lt;/P&gt;&lt;P&gt;I don't think so we have other options apart from the options you don't want to use..&lt;/P&gt;&lt;P&gt;But you can do like this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab1 into wa_itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_itab2-comp3 = wa_itab1-comp3.&lt;/P&gt;&lt;P&gt;wa_itab2-comp4 = wa_itab1-comp4.&lt;/P&gt;&lt;P&gt;append wa_itab2 to itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 07:52:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712683#M1872259</guid>
      <dc:creator>rajucd81</dc:creator>
      <dc:date>2014-10-28T07:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data between internal tables having different structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712684#M1872260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yogendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the reply. I tried the solution you provided, its working fine considering the order of fields in both the tables is same though the no. of fields are different. But here in my case i have certain constraints in changing the order of fields in itab1[]. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And one more thing, If my second internal table itab2[] is of comp3 &amp;amp; comp5, then what ll be the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab1[] - comp1 comp2 comp3 comp4 comp5&lt;/P&gt;&lt;P&gt;itab2[] - comp3 comp5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please let me know the possibitlites for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 09:24:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712684#M1872260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-28T09:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data between internal tables having different structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712685#M1872261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for responding. As i said earlier, i want to know the options other than looping of internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 09:27:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712685#M1872261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-28T09:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data between internal tables having different structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712686#M1872262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there are no other options, apart from what you've listed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 09:34:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712686#M1872262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-28T09:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data between internal tables having different structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712687#M1872263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have constraints in changing the order , then the best way will be only by looping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for the other question , you have to change the order like this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;itab1[] - comp3 &lt;SPAN style="color: #333333; font-size: 12px;"&gt;comp5 &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-size: 12px;"&gt;comp1 comp2 &lt;/SPAN&gt;comp4 &lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;itab2[] - comp3 comp5.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;then you can either use &lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;itab2[] = itab1[].&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;or &lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;append lines of itab1 to itab2.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Thanx and Regards&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Yogendra Bhaskar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 09:43:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712687#M1872263</guid>
      <dc:creator>yogendra_bhaskar</dc:creator>
      <dc:date>2014-10-28T09:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data between internal tables having different structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712688#M1872264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I dont think it's possible to work on your requirements without using a loop statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Charlie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 09:43:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712688#M1872264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-28T09:43:15Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data between internal tables having different structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712689#M1872265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Of course it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Upgrade to 740 SP05.&lt;/P&gt;&lt;P&gt;2) Use move-corresponding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="101549" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="ABAP Language News for Release 7.40, SP05" href="https://community.sap.com/" modifiedtitle="true" title="ABAP Language News for Release 7.40, SP05"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, yes, if you're in a lower release, there is no other way than looping. Ensure that the table you'll look up from is a HASHED table, READ with TABLE KEY, and you shouldn't have performance issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 09:56:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712689#M1872265</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2014-10-28T09:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data between internal tables having different structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712690#M1872266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi shiva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't think it possible without using LOOP but to increase the performance you can make use of FIELDSYMBOLS...&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;Shashikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 09:58:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712690#M1872266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-28T09:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data between internal tables having different structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712691#M1872267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthew, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Didn't&amp;nbsp; know anything about the new release yet, but thanks for the information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Charlie&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 10:03:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712691#M1872267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-28T10:03:10Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data between internal tables having different structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712692#M1872268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the information. But unfortunately we are on the lower version, so unable to try that method(move-corresponding using internal tables) provided in that link. Hoping that it ll have some optimistic solution to my scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before closing this thread, I would like to wait for some more interesting answers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 05:43:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712692#M1872268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-29T05:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data between internal tables having different structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712693#M1872269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain how you are selecting data in itab1 ?&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;Yogendra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 06:14:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712693#M1872269</guid>
      <dc:creator>yogendra_bhaskar</dc:creator>
      <dc:date>2014-10-29T06:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data between internal tables having different structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712694#M1872270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;STRONG&gt;only&lt;/STRONG&gt; effective way is to loop through one table, and read the other (HASHED) table. There's nothing else really to say.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 07:38:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712694#M1872270</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2014-10-29T07:38:13Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data between internal tables having different structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712695#M1872271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are other options available while defining structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 1. Include structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;types:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; begin of str1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c1 type n,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c2 type c,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end of str1.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;types begin of str2.&lt;/P&gt;
&lt;P&gt;include structure str1.&lt;/P&gt;
&lt;P&gt;types: c3 type n,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c4 type c,&lt;/P&gt;
&lt;P&gt;end of str2.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;data itab1 type standard table of str1.&lt;/P&gt;
&lt;P&gt;data itab2 type standard table of str2.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;itab1 = itab2.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Option 2. Sub Structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;types:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; begin of str1,&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c1 type n,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c2 type c,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end of str1.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;types:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; begin of str2,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; s1 type str1,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c1 type n,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c2 type c,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end of str2.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;data itab1 type standard table of str1.&lt;/P&gt;
&lt;P&gt;data itab2 type standard table of str2.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;itab2 = itab1.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Option 3. substructure and loops&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;same as above but use the following method to copy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;loop at itab2 into ls_2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ls_1 = ls_2-s1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; append ls_1 to itab1.&lt;/P&gt;
&lt;P&gt;endloop.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Option 4. Faster Loop using field symbols&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To improve loop performance on internal table you can use Field Symbols or References, which avoid copying data to wa of loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;field-symbols &amp;lt;ls_s2&amp;gt; type str2.&lt;/P&gt;
&lt;P&gt;field-symbols &amp;lt;ls_s1&amp;gt; type str1.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;loop at itab2 assigning &amp;lt;ls_s2&amp;gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; append initial line to itab1 assigning &amp;lt;ls_s1&amp;gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; move-corresponding &amp;lt;ls_s2&amp;gt; to &amp;lt;ls_s1&amp;gt;.&lt;/P&gt;
&lt;P&gt;endloop.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Option 5. Faster loop with reference variables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;data lp_s_s2 type ref to str2.&lt;/P&gt;
&lt;P&gt;data lp_s_s1 type ref to str1.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;loop at itab2 reference into lp_s_s2.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; append initial line to itab1 reference into lp_s_s1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; move-corresponding lp_s_s2-&amp;gt;* to lp_s_s1-&amp;gt;*.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "lp_s_s1-&amp;gt;c1 = lp_s_s2-&amp;gt;c1.&lt;/P&gt;
&lt;P&gt;endloop.&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2014 08:37:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712695#M1872271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-29T08:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Moving data between internal tables having different structures</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712696#M1872272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yogendra,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Through select query i am getting data into internal table itab1[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Nov 2014 04:31:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/moving-data-between-internal-tables-having-different-structures/m-p/10712696#M1872272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-11-03T04:31:49Z</dc:date>
    </item>
  </channel>
</rss>

