<?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 populating final internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-internal-table/m-p/1927604#M384663</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i have 5 internal tables.in that 1 &amp;amp; send have one common field,2 &amp;amp; 3 have one common field,similarly 3&amp;amp; 4,3 &amp;amp; 5.&lt;/P&gt;&lt;P&gt;i need to populate final internal table with these five internal tables.&lt;/P&gt;&lt;P&gt;if i tried to populate it ,final internal table is appending for each internal table.&lt;/P&gt;&lt;P&gt;it is appending records more than one time.&lt;/P&gt;&lt;P&gt;t i am unable to do it.if any one knows please help,it's urgent.&lt;/P&gt;&lt;P&gt;i am giving my code which i wrote.&lt;/P&gt;&lt;P&gt;SORT it_t5utv BY txcmp.&lt;/P&gt;&lt;P&gt;sort it_eeo_locat by txcmp.&lt;/P&gt;&lt;P&gt;LOOP AT it_t5utv .&lt;/P&gt;&lt;P&gt;it_output-txcmp = it_t5utv-txcmp.&lt;/P&gt;&lt;P&gt;it_output-wksit = it_t5utv-wksit.&lt;/P&gt;&lt;P&gt;it_output-ltext = it_t5utv-ltext.&lt;/P&gt;&lt;P&gt;it_output-adres = it_t5utv-adres.&lt;/P&gt;&lt;P&gt;it_output-stras = it_t5utv-stras.&lt;/P&gt;&lt;P&gt;it_output-ort01 = it_t5utv-ort01.&lt;/P&gt;&lt;P&gt;it_output-state = it_t5utv-state.&lt;/P&gt;&lt;P&gt;it_output-zipcd = it_t5utv-zipcd.&lt;/P&gt;&lt;P&gt;read table it_eeo_locat with key txcmp = it_t5utv-txcmp binary search.&lt;/P&gt;&lt;P&gt;it_output-wstate = it_eeo_locat-wstate.&lt;/P&gt;&lt;P&gt;it_output-unitcd = it_eeo_locat-unitcd.&lt;/P&gt;&lt;P&gt;APPEND it_output.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;sort it_eeo_locat by unitcd.&lt;/P&gt;&lt;P&gt;SORT it_eeo_unit BY unitcd.&lt;/P&gt;&lt;P&gt;SORT it_country BY countycd.&lt;/P&gt;&lt;P&gt;SORT it_naics BY naicscd.&lt;/P&gt;&lt;P&gt;LOOP AT it_eeo_locat.&lt;/P&gt;&lt;P&gt;read table it_eeo_unit with key unitcd = it_eeo_locat-unitcd binary&lt;/P&gt;&lt;P&gt;search.&lt;/P&gt;&lt;P&gt;it_output-eeoccd = it_eeo_unit-eeoccd.&lt;/P&gt;&lt;P&gt;it_output-naicscd = it_eeo_unit-naicscd&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;it_output-unitname = it_eeo_unit-unitname.&lt;/P&gt;&lt;P&gt;it_output-street = it_eeo_unit-street.&lt;/P&gt;&lt;P&gt;it_output-street_ext = it_eeo_unit-street_ext.&lt;/P&gt;&lt;P&gt;it_output-city = it_eeo_unit-city.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_output-eeoccd = it_eeo_unit-eeoccd.&lt;/P&gt;&lt;P&gt;it_output-state = it_eeo_unit-state.&lt;/P&gt;&lt;P&gt;it_output-zip = it_eeo_unit-zip.&lt;/P&gt;&lt;P&gt;it_output-zip_rem = it_eeo_unit-zip_rem.&lt;/P&gt;&lt;P&gt;it_output-county = it_eeo_unit-county.&lt;/P&gt;&lt;P&gt;it_output-hq_ind = it_eeo_unit-hq_ind.&lt;/P&gt;&lt;P&gt;it_output-hire_ind = it_eeo_unit-hire_ind.&lt;/P&gt;&lt;P&gt;APPEND it_output.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;loop at it_eeo_unit .&lt;/P&gt;&lt;P&gt;read table it_country with key countycd = it_eeo_unit-county binary&lt;/P&gt;&lt;P&gt;search.&lt;/P&gt;&lt;P&gt;it_output-countynm = it_country-countynm.&lt;/P&gt;&lt;P&gt;read table it_naics with key naicscd = it_eeo_unit-naicscd binary&lt;/P&gt;&lt;P&gt;search.&lt;/P&gt;&lt;P&gt;it_output-naicsnm = it_naics-naicsnm.&lt;/P&gt;&lt;P&gt;APPEND it_output.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Feb 2007 14:24:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-14T14:24:34Z</dc:date>
    <item>
      <title>populating final internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-internal-table/m-p/1927604#M384663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;i have 5 internal tables.in that 1 &amp;amp; send have one common field,2 &amp;amp; 3 have one common field,similarly 3&amp;amp; 4,3 &amp;amp; 5.&lt;/P&gt;&lt;P&gt;i need to populate final internal table with these five internal tables.&lt;/P&gt;&lt;P&gt;if i tried to populate it ,final internal table is appending for each internal table.&lt;/P&gt;&lt;P&gt;it is appending records more than one time.&lt;/P&gt;&lt;P&gt;t i am unable to do it.if any one knows please help,it's urgent.&lt;/P&gt;&lt;P&gt;i am giving my code which i wrote.&lt;/P&gt;&lt;P&gt;SORT it_t5utv BY txcmp.&lt;/P&gt;&lt;P&gt;sort it_eeo_locat by txcmp.&lt;/P&gt;&lt;P&gt;LOOP AT it_t5utv .&lt;/P&gt;&lt;P&gt;it_output-txcmp = it_t5utv-txcmp.&lt;/P&gt;&lt;P&gt;it_output-wksit = it_t5utv-wksit.&lt;/P&gt;&lt;P&gt;it_output-ltext = it_t5utv-ltext.&lt;/P&gt;&lt;P&gt;it_output-adres = it_t5utv-adres.&lt;/P&gt;&lt;P&gt;it_output-stras = it_t5utv-stras.&lt;/P&gt;&lt;P&gt;it_output-ort01 = it_t5utv-ort01.&lt;/P&gt;&lt;P&gt;it_output-state = it_t5utv-state.&lt;/P&gt;&lt;P&gt;it_output-zipcd = it_t5utv-zipcd.&lt;/P&gt;&lt;P&gt;read table it_eeo_locat with key txcmp = it_t5utv-txcmp binary search.&lt;/P&gt;&lt;P&gt;it_output-wstate = it_eeo_locat-wstate.&lt;/P&gt;&lt;P&gt;it_output-unitcd = it_eeo_locat-unitcd.&lt;/P&gt;&lt;P&gt;APPEND it_output.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;sort it_eeo_locat by unitcd.&lt;/P&gt;&lt;P&gt;SORT it_eeo_unit BY unitcd.&lt;/P&gt;&lt;P&gt;SORT it_country BY countycd.&lt;/P&gt;&lt;P&gt;SORT it_naics BY naicscd.&lt;/P&gt;&lt;P&gt;LOOP AT it_eeo_locat.&lt;/P&gt;&lt;P&gt;read table it_eeo_unit with key unitcd = it_eeo_locat-unitcd binary&lt;/P&gt;&lt;P&gt;search.&lt;/P&gt;&lt;P&gt;it_output-eeoccd = it_eeo_unit-eeoccd.&lt;/P&gt;&lt;P&gt;it_output-naicscd = it_eeo_unit-naicscd&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;it_output-unitname = it_eeo_unit-unitname.&lt;/P&gt;&lt;P&gt;it_output-street = it_eeo_unit-street.&lt;/P&gt;&lt;P&gt;it_output-street_ext = it_eeo_unit-street_ext.&lt;/P&gt;&lt;P&gt;it_output-city = it_eeo_unit-city.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_output-eeoccd = it_eeo_unit-eeoccd.&lt;/P&gt;&lt;P&gt;it_output-state = it_eeo_unit-state.&lt;/P&gt;&lt;P&gt;it_output-zip = it_eeo_unit-zip.&lt;/P&gt;&lt;P&gt;it_output-zip_rem = it_eeo_unit-zip_rem.&lt;/P&gt;&lt;P&gt;it_output-county = it_eeo_unit-county.&lt;/P&gt;&lt;P&gt;it_output-hq_ind = it_eeo_unit-hq_ind.&lt;/P&gt;&lt;P&gt;it_output-hire_ind = it_eeo_unit-hire_ind.&lt;/P&gt;&lt;P&gt;APPEND it_output.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;loop at it_eeo_unit .&lt;/P&gt;&lt;P&gt;read table it_country with key countycd = it_eeo_unit-county binary&lt;/P&gt;&lt;P&gt;search.&lt;/P&gt;&lt;P&gt;it_output-countynm = it_country-countynm.&lt;/P&gt;&lt;P&gt;read table it_naics with key naicscd = it_eeo_unit-naicscd binary&lt;/P&gt;&lt;P&gt;search.&lt;/P&gt;&lt;P&gt;it_output-naicsnm = it_naics-naicsnm.&lt;/P&gt;&lt;P&gt;APPEND it_output.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 14:24:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-internal-table/m-p/1927604#M384663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T14:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: populating final internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-internal-table/m-p/1927605#M384664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First thing is you are appending the records to your final output internal table so many times. Instead of 1 record each time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should be designing it in such a way that you should have a key internal table and further information in the respective internal tables. Loop at the key IT (Internal table) and do a read on further table get the data and do a append to your final internal table. this is one way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or else the only way left is you have to loop the other internal tables in your main loop which is not suggestable with regards to performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Award points if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Feb 2007 22:32:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-internal-table/m-p/1927605#M384664</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-14T22:32:37Z</dc:date>
    </item>
    <item>
      <title>Re: populating final internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-internal-table/m-p/1927606#M384665</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 out this, it might help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at it1 into wa1.&lt;/P&gt;&lt;P&gt;read table it2 into wa2 where &amp;lt;condition&amp;gt;.&lt;/P&gt;&lt;P&gt;read table it3 into wa3 where &amp;lt;condition&amp;gt;.&lt;/P&gt;&lt;P&gt;read table it4 into wa4 where &amp;lt;condition&amp;gt;.&lt;/P&gt;&lt;P&gt;read table it5 into wa5 where &amp;lt;condition&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_final -f1 = wa1-f1.&lt;/P&gt;&lt;P&gt;wa_final-f2 = wa2-f2.&lt;/P&gt;&lt;P&gt;wa_final-f3 = wa2-f3.&lt;/P&gt;&lt;P&gt;wa_final-f4 = wa2-f4.&lt;/P&gt;&lt;P&gt;wa_final-f5 = wa2-f5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append wa_final to it_final.&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;Regards,&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward all helpful replies.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 01:20:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-internal-table/m-p/1927606#M384665</guid>
      <dc:creator>amit_khare</dc:creator>
      <dc:date>2007-02-15T01:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: populating final internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-internal-table/m-p/1927607#M384666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sort all the tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;move-corresponding itab1 to itabfinal.&lt;/P&gt;&lt;P&gt;read table itab2 with key f1 = itab1-f1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;move-corresponding itab2 to itabfinal.&lt;/P&gt;&lt;P&gt;read table itab3 with key f2 = itab2-f2.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;move-corresponding itab3 to itabfinal.&lt;/P&gt;&lt;P&gt;read table itab4 with key f3 = itab3-f3.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;move-corresponding itab4 to itabfinal.&lt;/P&gt;&lt;P&gt;read table itab5 with key f4 = itab3-f4.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;move-corresponding itab5 to itabfinal.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;append itabfinal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;clear : itab1,itab2,itab3,itab4,itab5.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shiba dutta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Feb 2007 03:59:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-internal-table/m-p/1927607#M384666</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-15T03:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: populating final internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-internal-table/m-p/1927608#M384667</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 the main table.&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_final.&lt;/P&gt;&lt;P&gt;loop at itab2 where f1 = itab-f1."You can use read if you are sure that you will get single record&lt;/P&gt;&lt;P&gt;move-corresponding itab2 to itab_final.&lt;/P&gt;&lt;P&gt;apend itab_final.&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>Thu, 15 Feb 2007 04:06:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/populating-final-internal-table/m-p/1927608#M384667</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2007-02-15T04:06:13Z</dc:date>
    </item>
  </channel>
</rss>

