<?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: Data transfer between 2 it_tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309925#M1224301</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if the structure of both the internal tables are same , use Append line of statement . you can sue where condition in the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Mar 2009 07:38:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-12T07:38:48Z</dc:date>
    <item>
      <title>Data transfer between 2 it_tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309923#M1224299</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 have got some data related to sales into an it_table pertaining to G/L account for a date range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however i want to shift this data to another internal table by putting further restriction by using where condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, i want to do this without looping on my previous internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me out with a solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaustubh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 07:36:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309923#M1224299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T07:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data transfer between 2 it_tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309924#M1224300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my second internal table is of the same type as of the first.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 07:38:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309924#M1224300</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T07:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: Data transfer between 2 it_tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309925#M1224301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if the structure of both the internal tables are same , use Append line of statement . you can sue where condition in the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 07:38:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309925#M1224301</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T07:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Data transfer between 2 it_tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309926#M1224302</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 table structures are same and the where conditions are not dependent of the first table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can write.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ITAB2[] = ITAB1[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE ITAB WHERE &amp;lt;condition&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Best Regards,&lt;/P&gt;&lt;P&gt;Navneet Chaubey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 07:40:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309926#M1224302</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T07:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Data transfer between 2 it_tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309927#M1224303</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;ITAB2[] = ITAB1[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's it for your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sreeram Kumar.Madisetty&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 07:41:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309927#M1224303</guid>
      <dc:creator>sreeramkumar_madisetty</dc:creator>
      <dc:date>2009-03-12T07:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Data transfer between 2 it_tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309928#M1224304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you tell me why you dont want to use LOOP...ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 07:43:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309928#M1224304</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T07:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Data transfer between 2 it_tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309929#M1224305</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 structure of both the internal tables are same then simple&lt;/P&gt;&lt;P&gt;internaltable2[] = intrenaltable1[] should work that actually copies the data from first to sec adn then&lt;/P&gt;&lt;P&gt;either loop at intrenaltable2 and delete the records or simply delete intrenaltable2 where condition should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 07:43:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309929#M1224305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T07:43:57Z</dc:date>
    </item>
    <item>
      <title>Re: Data transfer between 2 it_tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309930#M1224306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If both internal tables are having the same structure you can use this statement,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_tab1 = it_tab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Joan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 07:45:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309930#M1224306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T07:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Data transfer between 2 it_tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309931#M1224307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried your suggestion. the following is the syntax i have written:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append lines of it_revenue to it_rev where budat = p_bukrs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;following is the error i got when i executed:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;".", "ASSIGNING &amp;lt;fs&amp;gt;" or "REFERENCE INTO data-reference" expected after "IT_REV". -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 07:46:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309931#M1224307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T07:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Data transfer between 2 it_tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309932#M1224308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the reason being to avoid looping on a large amount of data in a practical scenario&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;kaustubh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 07:47:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309932#M1224308</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T07:47:53Z</dc:date>
    </item>
    <item>
      <title>Re: Data transfer between 2 it_tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309933#M1224309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaustubh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   You can try it this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data:
  w_lines  type i,
  w_index type i value 1.
Describe table itab_1 lines w_lines.

While w_index le w_lines.
  Read table itab_1 into wa index w_index.
  If wa_field eq 'XYZ'. " check youe condition here
    Append wa to itab_2.
  Endif.
  w_index = w_index + 1.
Endwhile.&lt;/CODE&gt;&lt;/PRE&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;&lt;/P&gt;&lt;P&gt;With luck,&lt;/P&gt;&lt;P&gt;Pritam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 07:49:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309933#M1224309</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T07:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Data transfer between 2 it_tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309934#M1224310</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;thank you for your suggestion but this would the same as looping on the first table as the data in the second table now is the same as it was in the first. looping on this would mean the same thing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please correct me if im wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 07:57:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309934#M1224310</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T07:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Data transfer between 2 it_tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309935#M1224311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can you please check&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To read the contents of internal tables for further processing, you can use either the LOOP or the READ statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reading Internal Tables Line by Line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You use the the LOOP statement to read internal tables line by line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT &amp;lt;itab&amp;gt; [INTO &amp;lt;wa&amp;gt;] [WHERE &amp;lt;condition&amp;gt;].&lt;/P&gt;&lt;P&gt;ENDLOOP.&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;&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;Reading Single Lines Using the Index&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can select a single line by the READ statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE &amp;lt;itab&amp;gt; [INTO &amp;lt;wa&amp;gt;] INDEX &amp;lt;idx&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regrds&lt;/P&gt;&lt;P&gt;Durga.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 07:59:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309935#M1224311</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T07:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: Data transfer between 2 it_tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309936#M1224312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The best way to avoid the loop would be to first append all the lines of the source itab to target itab, then delete the unwanted entries from the target tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
append lines of itab to itab_1.
delete itab_1 where ( logical_expresion ) . " delete the entries you dont want.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Advait&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 08:17:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309936#M1224312</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T08:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Data transfer between 2 it_tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309937#M1224313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;@ advait&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot. it worked. exactly what i was looking out for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks everyone else for your valuable feedbacks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;kaustubh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2009 08:36:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-transfer-between-2-it-tables/m-p/5309937#M1224313</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-12T08:36:40Z</dc:date>
    </item>
  </channel>
</rss>

