<?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: Modify Internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/4917197#M1147738</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this is in several ways. One of it would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: it_dest type table ...
        it_src1 type table ...
        it_src2 type table ...

APPEND LINES OF: it_src1 TO it_dest,
                               it_src2 TO it_dest.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sencond way would be passing first part of task (coping first internal table) to kernel with statement:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
it_dest[] = it_scr1[].  "this passes content of source tab to destination, it will overwrite content of it_dest if not empty
"second step has to remain as above, otherwise we would erase what we have just copied
APPEND LINES OF it_scr2 TO it_dest.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other way would be looping through the tables and appending/inserting these to destination table, but these two above are sufficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 26 Dec 2008 12:13:11 GMT</pubDate>
    <dc:creator>MarcinPciak</dc:creator>
    <dc:date>2008-12-26T12:13:11Z</dc:date>
    <item>
      <title>Modify Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/4917194#M1147735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a scenario wherein i need to move data from 2 separate internal tables to a third internal table.&lt;/P&gt;&lt;P&gt;How do i go about it.&lt;/P&gt;&lt;P&gt;All 3 internal tables have the same structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 12:05:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/4917194#M1147735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-26T12:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/4917195#M1147736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 12:08:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/4917195#M1147736</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-12-26T12:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/4917196#M1147737</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;check this:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw70/helpdata/EN/fc/eb36c8358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw70/helpdata/EN/fc/eb36c8358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;maybe something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
APPEND LINES OF itab1 TO itab3.
APPEND LINES OF itab2 TO itab3.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 12:10:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/4917196#M1147737</guid>
      <dc:creator>former_member182371</dc:creator>
      <dc:date>2008-12-26T12:10:45Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/4917197#M1147738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can do this is in several ways. One of it would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: it_dest type table ...
        it_src1 type table ...
        it_src2 type table ...

APPEND LINES OF: it_src1 TO it_dest,
                               it_src2 TO it_dest.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sencond way would be passing first part of task (coping first internal table) to kernel with statement:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
it_dest[] = it_scr1[].  "this passes content of source tab to destination, it will overwrite content of it_dest if not empty
"second step has to remain as above, otherwise we would erase what we have just copied
APPEND LINES OF it_scr2 TO it_dest.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other way would be looping through the tables and appending/inserting these to destination table, but these two above are sufficient.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 12:13:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/4917197#M1147738</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2008-12-26T12:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: Modify Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/4917198#M1147739</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 transfer the data of tab1 and tab2 to table 3 which are having the same structure in the following way&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND LINES OF itab1 TO itab2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND LINES OF itab2 TO itab3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND LINES OF itab1  [FROM n1] [TO n2] TO itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where n1 and n2 specify the indexes of the first and last line of itab1 that you want to appned to itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Dec 2008 13:05:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modify-internal-table/m-p/4917198#M1147739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-26T13:05:31Z</dc:date>
    </item>
  </channel>
</rss>

