<?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 Append data from Internal table to another in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-data-from-internal-table-to-another/m-p/4782062#M1120259</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 have two internal tables defined as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: lt_1 like ztable occurs 0.
data: lt_2 like ztable occurs 0.
data: ls_1 like line of lt_1[].
data: low type i value '1',
hight type i value '20,000',
limit type i.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic in my program fills data into lt_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
describe lt_1.
limit = sy-tfill.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Till high &amp;lt; limit I want to perform following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;APPEND&lt;/STRONG&gt; rows from low to high in lt_1 to lt_2.&lt;/P&gt;&lt;P&gt;Then increment both low and high with the value of high.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
low = low + high.
high = high + high.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can read lt_1 into ls_1 and then copy fields from ls_1 to header line of lt_2 and then do append for lt_2.&lt;/P&gt;&lt;P&gt;But can this append be done directly without looping throught lt_1 and doing copy of fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;CD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Nov 2008 19:01:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-20T19:01:20Z</dc:date>
    <item>
      <title>Append data from Internal table to another</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-data-from-internal-table-to-another/m-p/4782062#M1120259</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 have two internal tables defined as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: lt_1 like ztable occurs 0.
data: lt_2 like ztable occurs 0.
data: ls_1 like line of lt_1[].
data: low type i value '1',
hight type i value '20,000',
limit type i.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The logic in my program fills data into lt_1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
describe lt_1.
limit = sy-tfill.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Till high &amp;lt; limit I want to perform following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;APPEND&lt;/STRONG&gt; rows from low to high in lt_1 to lt_2.&lt;/P&gt;&lt;P&gt;Then increment both low and high with the value of high.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
low = low + high.
high = high + high.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can read lt_1 into ls_1 and then copy fields from ls_1 to header line of lt_2 and then do append for lt_2.&lt;/P&gt;&lt;P&gt;But can this append be done directly without looping throught lt_1 and doing copy of fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;CD&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 19:01:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-data-from-internal-table-to-another/m-p/4782062#M1120259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T19:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Append data from Internal table to another</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-data-from-internal-table-to-another/m-p/4782063#M1120260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Press F1 on APPEND LINES OF ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 19:10:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-data-from-internal-table-to-another/m-p/4782063#M1120260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-20T19:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Append data from Internal table to another</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-data-from-internal-table-to-another/m-p/4782064#M1120261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check help on syntax APPEND specifially for the LINES OF jtab FROM idx1 TO idx2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use it like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
 APPEND LINES OF jtab FROM L_LOW TO L_HIGH TO ITAB.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 19:13:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-data-from-internal-table-to-another/m-p/4782064#M1120261</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-11-20T19:13:46Z</dc:date>
    </item>
  </channel>
</rss>

