<?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 table problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371548#M525477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yogesh ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question you have put forward is too generic to be answered correctly .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First u need to identify what data u are generating , if u are  printing the order relevant data ,&lt;/P&gt;&lt;P&gt; then loop at the order_relevant table ( VBAK relevant data )  and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Then Move the desired data from that table to a final table .&lt;/P&gt;&lt;P&gt;   The other fields of the final table can be retrieved USING READ statement on the secondary table ( like KNA1 relevant data ) KEY  field = order_relevant_table -field  ( example kunnr  =  vbak-kunnr )&lt;/P&gt;&lt;P&gt;    Move the read data into the final table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Finally APPEND &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jun 2007 07:13:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-19T07:13:50Z</dc:date>
    <item>
      <title>internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371539#M525468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have fatched data from multiple tables into multiple internal tables.&lt;/P&gt;&lt;P&gt;like kna1-kunnr in itab1, vbak-vbeln in itab2 etc,&lt;/P&gt;&lt;P&gt;now i have to move data from multiple itabs to my final internal table itab-final to show the output list in ALV, how can i do that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 07:05:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371539#M525468</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T07:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371540#M525469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;loop into each internal table and do a move corresponding to a work area of your final table type. keep appending to the final table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 07:07:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371540#M525469</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T07:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371541#M525470</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;first  create ur final internal table and then use the MOVE command to move the one internal table to the another.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex: MOVE &amp;lt;itab1&amp;gt; to &amp;lt;itab2&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Ashu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 07:07:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371541#M525470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T07:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371542#M525471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Create internal table with structure of those Internal Tables.Then Loop those internal Tables.In that Loop Move values to corresponding fields of Final Internal Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Padmam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 07:09:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371542#M525471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T07:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371543#M525472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi yogesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just loop at one internal table into work area and send it to the work area of a final internal table .... just like the below code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it_ekpo into x_ekpo.&lt;/P&gt;&lt;P&gt;  read table it_ekko into x_ekko with key ebeln = x_ekpo-ebeln.&lt;/P&gt;&lt;P&gt;x_final-ebeln = x_ekpo-ebeln.&lt;/P&gt;&lt;P&gt;x_final-ebelp = x_ekpo-ebelp.&lt;/P&gt;&lt;P&gt;x_final-matnr = x_ekpo-matnr.&lt;/P&gt;&lt;P&gt;append x_final to it_final.&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;reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reena&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 07:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371543#M525472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T07:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371544#M525473</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 the base table that u r having in multiple internal table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read the other table with conditins and populte in work area&lt;/P&gt;&lt;P&gt;then use MOVE-CORRESPONDING command&lt;/P&gt;&lt;P&gt;to move those values to final work area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then use APPEND command to add those values in final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;JK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 07:12:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371544#M525473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T07:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371545#M525474</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;Maybe u can do like this:&lt;/P&gt;&lt;P&gt;ex your final itab call ITAB.&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 ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Read table itab2 with key vbeln = itab1-vbeln. --&amp;gt; ex itab1 and itab2 related using vbeln&lt;/P&gt;&lt;P&gt;   move-corresponding itab2 to ITAB.&lt;/P&gt;&lt;P&gt;&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;Move corresponding only used if u got the same field name between itab1,2 and ITAB.&lt;/P&gt;&lt;P&gt;if not same, u can map it manually as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Victor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 07:13:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371545#M525474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T07:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371546#M525475</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;&amp;lt;u&amp;gt;&amp;lt;b&amp;gt;Chk this sample.&amp;lt;/b&amp;gt;&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : begin of itab1 occurs 0. "itab with work area.
key_field1 like ztable1-key_field1,
field1 like ztable1-field1,
field2 like ztable1-field2,
endof itab1. 

data : begin of itab2 occurs 0. "itab with work area.
key_field2 like ztable2-key_field2,
field3 like ztable2-field3,
field4 like ztable2-field4,
endof itab2. 

data : begin of itab_final occurs 0.
key_field like ztable1-key_field1,
field1 like ztable1-field1,
field2 like ztable1-field2,
field3 like ztable2-field3,
field4 like ztable2-field4,
endof itab_final. 

LOOP AT ITAB1.
MOVE-CORRESPONDING TO ITAB1 to ITAB_FINAL.
READ TABLE ITAB2 WITH KEY FILED1 = ITAB1-FIELD1.
if sy-subrc = 0.
MOVE-CORRESPONDING TO ITAB2 to ITAB_FINAL.
endif.
append itab_final.
clear itab_final.
endloop&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anversha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 07:13:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371546#M525475</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2007-06-19T07:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371547#M525476</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;Create a final internal table with all the fields in itab1 and itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now loop the internal tables and  move the respected field values to the final internal table and finally append the records to final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points to all helpful answers.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 07:13:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371547#M525476</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2007-06-19T07:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371548#M525477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yogesh ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question you have put forward is too generic to be answered correctly .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First u need to identify what data u are generating , if u are  printing the order relevant data ,&lt;/P&gt;&lt;P&gt; then loop at the order_relevant table ( VBAK relevant data )  and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Then Move the desired data from that table to a final table .&lt;/P&gt;&lt;P&gt;   The other fields of the final table can be retrieved USING READ statement on the secondary table ( like KNA1 relevant data ) KEY  field = order_relevant_table -field  ( example kunnr  =  vbak-kunnr )&lt;/P&gt;&lt;P&gt;    Move the read data into the final table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Finally APPEND &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 07:13:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371548#M525477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T07:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371549#M525478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi yogesh,&lt;/P&gt;&lt;P&gt;just loop on final internal table...and read the data of remainining internal tables in that loop...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at gt_output into gs_output.&lt;/P&gt;&lt;P&gt;read table kna1 with key....&lt;/P&gt;&lt;P&gt;then,&lt;/P&gt;&lt;P&gt;read table vbak with key...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;gs_output-kunnr = itab1-kunnr.&lt;/P&gt;&lt;P&gt;gs_output-vbeln = itab2-vbeln.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append gs_output into gt_output.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thats all..now the read command inside will be based on where clause which u must have used while fetching data from table.....&lt;/P&gt;&lt;P&gt;accordingly use the read statements...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help u out...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reward points in case usefull....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 07:15:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371549#M525478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T07:15:58Z</dc:date>
    </item>
    <item>
      <title>Re: internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371550#M525479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;you can do it like this.&lt;/P&gt;&lt;P&gt;TYPES: begin of itype,&lt;/P&gt;&lt;P&gt;lifnr TYPE rbkp-lifnr,&lt;/P&gt;&lt;P&gt;belnr TYPE rbkp-belnr,&lt;/P&gt;&lt;P&gt;xblnr TYPE rbkp-xblnr,&lt;/P&gt;&lt;P&gt;END OF itype.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:BEGIN OF itype1,&lt;/P&gt;&lt;P&gt;name1 TYPE lfa1-name1,&lt;/P&gt;&lt;P&gt;END OF itype1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF itype2,&lt;/P&gt;&lt;P&gt;ebeln TYPE ekbe-ebeln,&lt;/P&gt;&lt;P&gt;belnr type ekbe-belnr,&lt;/P&gt;&lt;P&gt;END OF itype2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab TYPE TABLE OF itype, "internal table&lt;/P&gt;&lt;P&gt;wtab TYPE itype. "work area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab1 TYPE TABLE OF itype1, "internal table&lt;/P&gt;&lt;P&gt;wtab1 TYPE itype1. "work area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab2 TYPE TABLE OF itype2, "internal table&lt;/P&gt;&lt;P&gt;wtab2 TYPE itype2. "work area&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select ebeln belnr from ekbe into table itab2 where ebeln in s_ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT lifnr belnr xblnr FROM rbkp INTO TABLE itab FOR ALL ENTRIES IN&lt;/P&gt;&lt;P&gt;itab2 WHERE&lt;/P&gt;&lt;P&gt;belnr = itab2-belnr.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT name1 FROM lfa1 INTO TABLE itab1 FOR ALL ENTRIES IN itab WHERE&lt;/P&gt;&lt;P&gt;lifnr = itab-lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab2 into wtab2.&lt;/P&gt;&lt;P&gt;iheader-ebeln = wtab2-ebeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab into wtab &lt;/P&gt;&lt;P&gt;with key belnr = wtab2-belnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iheader-lifnr = wtab-lifnr.&lt;/P&gt;&lt;P&gt;iheader-belnr = wtab-belnr.&lt;/P&gt;&lt;P&gt;iheader-xblnr = wtab-xblnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab1 into wtab1&lt;/P&gt;&lt;P&gt;with key lifnr = iheader-lifnr.&lt;/P&gt;&lt;P&gt;iheader-name1 = wtab1-name1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here data of three inernal tables itab1 , itab, itab2 are coming in afinal tbale iheader.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ruchika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 07:18:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371550#M525479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-19T07:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: internal table problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371551#M525480</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;declare final table and workarea&lt;/P&gt;&lt;P&gt;loop on one table into workarea the main table and then read all other tables &lt;/P&gt;&lt;P&gt;and move to final work area.&lt;/P&gt;&lt;P&gt;append work area to final table .&lt;/P&gt;&lt;P&gt;and then clear all work areas.&lt;/P&gt;&lt;P&gt;Iam giving example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;looo at itab into wa_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move fields from wa_itab to wa_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab1 into wa_itab1 ith key &amp;lt;condition&amp;gt;&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;move fields  from wa_itab1 to wa_final.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like that read aa table and move.&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;clear: wa_final,wa_itab,wa_itab1.&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;sudha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2007 07:27:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/2371551#M525480</guid>
      <dc:creator>S0025444845</dc:creator>
      <dc:date>2007-06-19T07:27:18Z</dc:date>
    </item>
  </channel>
</rss>

