<?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: internal tables again! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-again/m-p/1799251#M343211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Check this code...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab1.
 
   read table itab2 with key field1 = itab1-field1 
  if sy-subrc = 0.
   move-sorresponding itab1 to it_final.
   move-sorresponding itab2 to it_final.
   append it_final.
   clear it_final.   
 endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;check these thread...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2477164"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2233798"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2131449"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raja T&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Raja T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Dec 2006 01:31:04 GMT</pubDate>
    <dc:creator>raja_thangamani</dc:creator>
    <dc:date>2006-12-05T01:31:04Z</dc:date>
    <item>
      <title>internal tables again!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-again/m-p/1799250#M343210</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;can anyone explain me how to add the contents of an internal table to another one provided there is one common field in them and each record in one table has multiple records in the other?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 01:27:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-again/m-p/1799250#M343210</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T01:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables again!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-again/m-p/1799251#M343211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt; Check this code...&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at itab1.
 
   read table itab2 with key field1 = itab1-field1 
  if sy-subrc = 0.
   move-sorresponding itab1 to it_final.
   move-sorresponding itab2 to it_final.
   append it_final.
   clear it_final.   
 endif.
endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;check these thread...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2477164"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2233798"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2131449"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raja T&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Raja T&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 01:31:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-again/m-p/1799251#M343211</guid>
      <dc:creator>raja_thangamani</dc:creator>
      <dc:date>2006-12-05T01:31:04Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables again!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-again/m-p/1799252#M343212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;suppose u have 2 internal table itab1 itab2&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 common_field = itab1-common_field.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;move-corresponding itab1 to it_final.&lt;/P&gt;&lt;P&gt;move-corresponding itab2 to it_final.&lt;/P&gt;&lt;P&gt;append it_final.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;clear itab1,itab2.&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;Regards&lt;/P&gt;&lt;P&gt;- Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 01:38:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-again/m-p/1799252#M343212</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2006-12-05T01:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables again!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-again/m-p/1799253#M343213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can use the INSERT statement in this case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this report&lt;/P&gt;&lt;P&gt;REPORT demo_int_tables_insert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF line,&lt;/P&gt;&lt;P&gt;        land(3)  TYPE c,&lt;/P&gt;&lt;P&gt;        name(10) TYPE c,&lt;/P&gt;&lt;P&gt;        age      TYPE i,&lt;/P&gt;&lt;P&gt;        weight   TYPE p DECIMALS 2,&lt;/P&gt;&lt;P&gt;      END OF line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA itab LIKE SORTED TABLE OF line&lt;/P&gt;&lt;P&gt;          WITH NON-UNIQUE KEY land name age weight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;line-land = 'G'.   line-name   = 'Hans'.&lt;/P&gt;&lt;P&gt;line-age  = 20.    line-weight = '80.00'.&lt;/P&gt;&lt;P&gt;INSERT line INTO TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;line-land = 'USA'. line-name   = 'Nancy'.&lt;/P&gt;&lt;P&gt;line-age  = 35.    line-weight = '45.00'.&lt;/P&gt;&lt;P&gt;INSERT line INTO TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;line-land = 'USA'. line-name   = 'Howard'.&lt;/P&gt;&lt;P&gt;line-age  = 40.    line-weight = '95.00'.&lt;/P&gt;&lt;P&gt;INSERT line INTO TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;line-land = 'GB'.  line-name   = 'Jenny'.&lt;/P&gt;&lt;P&gt;line-age  = 18.    line-weight = '50.00'.&lt;/P&gt;&lt;P&gt;INSERT line INTO TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;line-land = 'F'.   line-name   = 'Michele'.&lt;/P&gt;&lt;P&gt;line-age  = 30.    line-weight = '60.00'.&lt;/P&gt;&lt;P&gt;INSERT line INTO TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;line-land = 'G'.   line-name   = 'Karl'.&lt;/P&gt;&lt;P&gt;line-age  = 60.    line-weight = '75.00'.&lt;/P&gt;&lt;P&gt;INSERT line INTO TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab INTO line.&lt;/P&gt;&lt;P&gt;  WRITE: / line-land, line-name, line-age, line-weight.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb361f358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb361f358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 03:44:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-again/m-p/1799253#M343213</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T03:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables again!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-again/m-p/1799254#M343214</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;loop at itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move-corresponding itab1 to itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab2 where f1 = itab1-f1.&lt;/P&gt;&lt;P&gt;move-corresponding itab2 to itab.&lt;/P&gt;&lt;P&gt;append itab.&lt;/P&gt;&lt;P&gt;endloop.&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, 05 Dec 2006 03:46:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-again/m-p/1799254#M343214</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-12-05T03:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables again!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-again/m-p/1799255#M343215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; hi!&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; can anyone explain me how to add the contents of an&lt;/P&gt;&lt;P&gt;&amp;gt; internal table to another one provided there is one&lt;/P&gt;&lt;P&gt;&amp;gt; common field in them and each record in one table has&lt;/P&gt;&lt;P&gt;&amp;gt; multiple records in the other?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; thx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hi all!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx for all ur replies. Unfortunately my problem is still unsolved. Let me be more clear. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following tables:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:  begin of it_pur_stock occurs 100,&lt;/P&gt;&lt;P&gt;       matnr like ekpo-matnr,&lt;/P&gt;&lt;P&gt;       ebeln like ekko-ebeln,&lt;/P&gt;&lt;P&gt;       eq_eindt like ekko-eq_eindt,&lt;/P&gt;&lt;P&gt;       menge like ekpo-menge,&lt;/P&gt;&lt;P&gt;       ekorg like ekko-ekorg,&lt;/P&gt;&lt;P&gt;       ekgrp like ekko-ekgrp,&lt;/P&gt;&lt;P&gt;       end of it_pur_stock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF IT_FINAL OCCURS 0,&lt;/P&gt;&lt;P&gt;      MATNR LIKE MARA-MATNR,&lt;/P&gt;&lt;P&gt;      LABST LIKE MARD-LABST,&lt;/P&gt;&lt;P&gt;      STOCK_ON_HAND LIKE MARD-LABST,&lt;/P&gt;&lt;P&gt;      BMENG LIKE VBEP-BMENG,&lt;/P&gt;&lt;P&gt;      WMENG LIKE VBEP-WMENG,&lt;/P&gt;&lt;P&gt;      ebeln like ekko-ebeln,&lt;/P&gt;&lt;P&gt;      eq_eindt like ekko-eq_eindt,&lt;/P&gt;&lt;P&gt;      menge like ekpo-menge,&lt;/P&gt;&lt;P&gt;      ekorg like ekko-ekorg,&lt;/P&gt;&lt;P&gt;      ekgrp like ekko-ekgrp,&lt;/P&gt;&lt;P&gt;      END OF IT_FINAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_final is the result table where matnr and other columns are already filled. it_pur_stock is also filled with data and all the fields in it_pur_stock are also in it_final. I want to add the data from it_pur_stock to it_final in such a way that each matnr in it_final contains multiple records from it_pur_stock. In other words it_pur_stock contains multiple purchase orders (ebeln) and corresponding material numbers (matnr). But it_final should contain unique matnr and its corresponding purchase orders (ebeln).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2006 23:57:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-again/m-p/1799255#M343215</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-05T23:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables again!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-again/m-p/1799256#M343216</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;Try this..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: IT_FINAL_TMP LIKE IT_FINAL OCCURS 0 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_FINA_TMP = IT_FINAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH IT_FINAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT IT_FINAL_TMP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE IT_FINAL_TMP TO IT_FINAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT IT_PUR_STOCK WHERE MATNR = IT_FINAL_TMP-MATNR.&lt;/P&gt;&lt;P&gt;    MOVE-CORRESPONDING IT_PUR_STOCK TO IT_FINAL.&lt;/P&gt;&lt;P&gt;    APPEND IT_FINAL.&lt;/P&gt;&lt;P&gt;  ENDLOOP. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    APPEND IT_FINAL.&lt;/P&gt;&lt;P&gt;  ENDIF.&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;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 00:26:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-again/m-p/1799256#M343216</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T00:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables again!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-again/m-p/1799257#M343217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks a lot Naren for ur time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it works but my problem is I'm unable to create a formatted output from the table it_final. I want an ouput like the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Material Number                    PO Number&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="19" type="ul"&gt;&lt;P&gt;                   **************&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;M746857                                 Pt54768&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;M873259                                  P74859&lt;/P&gt;&lt;P&gt;                                            P8576h58&lt;/P&gt;&lt;P&gt;                                             P76r6578&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;M546589                                   P87u4899&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------------------------" /&gt;&lt;P&gt;M857689                                  P65768&lt;/P&gt;&lt;P&gt;                                             P767t5657&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 03:54:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-again/m-p/1799257#M343217</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T03:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables again!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-again/m-p/1799258#M343218</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;cnt = 0.&lt;/P&gt;&lt;P&gt;loop at itab_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at new matnr.&lt;/P&gt;&lt;P&gt;uline.&lt;/P&gt;&lt;P&gt;write matnr.&lt;/P&gt;&lt;P&gt;cnt = 1.&lt;/P&gt;&lt;P&gt;endat.&lt;/P&gt;&lt;P&gt;if cnt = 1.&lt;/P&gt;&lt;P&gt;write itab_final-ebeln.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;write : / itab_final-ebeln.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;cnt = cnt + 1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 04:08:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-again/m-p/1799258#M343218</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-12-06T04:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables again!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-again/m-p/1799259#M343219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;supoose there are two internal tables. itab1 and itab2&lt;/P&gt;&lt;P&gt;itab 1 has the parent data and the itab 2 has the child data.&lt;/P&gt;&lt;P&gt;itab 1 has less records and itab2 has more records. i.e. one record in itab1 has N number of records in itab 2. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can merge them in a internal table itab 3 which has a structurewhich includes fields of both the internal table itab1+ itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before merging in the third internal table just sort both the internal tables by thier respective key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT ITAB2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       READ TABLE ITAB1 WITH KEY &amp;lt;ANY KEY FIELD&amp;gt; = &amp;lt;ITAB2-KEY FIELD&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           MOVE-CORRESPONDING ITAB1 TO ITAB3.&lt;/P&gt;&lt;P&gt;           MOVE-CORRESPONDING ITAB2 TO ITAB3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           APPEND ITAB3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;SORT ITAB3 BY &amp;lt;KEY FIELD&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another method.&lt;/P&gt;&lt;P&gt;LOOP AT ITAB2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       READ TABLE ITAB1 WITH KEY &amp;lt;ANY KEY FIELD&amp;gt; = &amp;lt;ITAB2-KEY FIELD&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           move all the fields one by one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           APPEND ITAB3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;SORT ITAB3 BY &amp;lt;KEY FIELD&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 04:23:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-again/m-p/1799259#M343219</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T04:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables again!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-again/m-p/1799260#M343220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx a lot Jayanthi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have solved my problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srikanth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2006 04:28:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables-again/m-p/1799260#M343220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-06T04:28:47Z</dc:date>
    </item>
  </channel>
</rss>

