<?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 internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/5080855#M1179989</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gays,&lt;/P&gt;&lt;P&gt;My problem is, there are 2 internal table , itab1 and itab2.&lt;/P&gt;&lt;P&gt;in itab1  three variable are declared, in itab2  three variable are declared,&lt;/P&gt;&lt;P&gt;in two tables key field are id.&lt;/P&gt;&lt;P&gt;another table itab3 , i want to add data of itab1 and  itab2  in itab3.&lt;/P&gt;&lt;P&gt;how can i do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Feb 2009 08:02:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-09T08:02:00Z</dc:date>
    <item>
      <title>internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/5080855#M1179989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gays,&lt;/P&gt;&lt;P&gt;My problem is, there are 2 internal table , itab1 and itab2.&lt;/P&gt;&lt;P&gt;in itab1  three variable are declared, in itab2  three variable are declared,&lt;/P&gt;&lt;P&gt;in two tables key field are id.&lt;/P&gt;&lt;P&gt;another table itab3 , i want to add data of itab1 and  itab2  in itab3.&lt;/P&gt;&lt;P&gt;how can i do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 08:02:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/5080855#M1179989</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T08:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/5080856#M1179990</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;The structure of itab3 should contain all the fields of itab1 and itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then u can do it this way,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;itab3-field1 = itab1-field1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;itab3-field3 = itab1-field3&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and for 2nd internal table,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;itab3-field4 = itab2-field1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;itab3-field6 = itab1-field3&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps.&lt;/P&gt;&lt;P&gt;thanx&lt;/P&gt;&lt;P&gt;Pritha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 08:05:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/5080856#M1179990</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T08:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/5080857#M1179991</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;make assignment like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_itab3 = t_itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at t_itab3 into w_area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table t_itab2 with key w_area-id into w_area.&lt;/P&gt;&lt;P&gt;now modify t_itab3 transporting required field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mohit Kumar on Feb 9, 2009 9:53 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 08:52:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/5080857#M1179991</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T08:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/5080858#M1179992</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;This is simple&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at itab1.
move:
itab1-filed1 to itab3-field1.
itab1-filed2 to itab3-field2.
itab1-field3 to itab3-field3.
endloop.

Loop at itab2.
move:
itab2-filed1 to itab3-field1.
itab2-filed2 to itab3-field2.
itab2-field3 to itab3-field3.
endloop.

or of you have declared the intrenal table without header line then 
loop at internaltable into workarea.
same code but with wa
append itab.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pooja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 08:58:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/5080858#M1179992</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T08:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/5080859#M1179993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi pritha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i write itab3-id = itab1-id,but  field id is avalable in itab1 and itab2.&lt;/P&gt;&lt;P&gt;in this case what should i do.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 09:03:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/5080859#M1179993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T09:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/5080860#M1179994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case u can &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;read table itab2 with key id = itab1-id.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;itab3[ ] = itab2 [ ] .&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: you have to loop at a table with more number of records...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pritha Agrawal on Feb 9, 2009 3:02 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 09:22:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/5080860#M1179994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T09:22:37Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/5080861#M1179995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Suppose f1 is the key in both the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab3-f1 = itab1-f1.&lt;/P&gt;&lt;P&gt;itab3-f2 = itab1-f2.&lt;/P&gt;&lt;P&gt;itab3-f3 = itab1-f3.&lt;/P&gt;&lt;P&gt;append itab3.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Loop at itab2.&lt;/P&gt;&lt;P&gt;move:&lt;/P&gt;&lt;P&gt;itab3-f1 = itab2-f1.&lt;/P&gt;&lt;P&gt;itab3-f2 = itab2-f2.&lt;/P&gt;&lt;P&gt;itab3-f3 = itab2-f3.&lt;/P&gt;&lt;P&gt;append itab3.&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;Delete adjacent duplicates ADJACENT DUPLICATES FROM COMPARING f1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 09:41:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/5080861#M1179995</guid>
      <dc:creator>former_member195383</dc:creator>
      <dc:date>2009-02-09T09:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/5080862#M1179996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you please be more specific, &lt;/P&gt;&lt;P&gt;If the value of ID is same in both the table then what should be done,&lt;/P&gt;&lt;P&gt;The first one should be considered or second one or addition of both in the third table....&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2009 10:08:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/5080862#M1179996</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-09T10:08:54Z</dc:date>
    </item>
  </channel>
</rss>

