<?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: problem while merging 2 internal tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107956#M1361656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no you havent got my question i think....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my first int tabl has a record&lt;/P&gt;&lt;P&gt;and a second int  table has a record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want all the fields from int1 and only 3 fields from int2  and want to display as a single records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not as 2 records as i have int1 and int2 ....thats y i have another int table as int3  so that i want to merge the int1 and int2 into int3 and display as one record.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u understand now....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i donno how to push only the 3 rec from int2  and take all fields frm int 1 and display as as single onle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried with the code but my required output is not coming&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, 15 Sep 2009 10:14:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-15T10:14:55Z</dc:date>
    <item>
      <title>problem while merging 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107950#M1361650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have two internal tables of same structure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in itab1 i want all the fields to be displayed&lt;/P&gt;&lt;P&gt;in itab2 i want only 3 fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;say suppose if itab1 and itab2 has a record each&lt;/P&gt;&lt;P&gt;i dont want to display separetely as two records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want the itab2 record in itab1 and displayed&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;Below is the logic i hav used&lt;/P&gt;&lt;P&gt;declared 3rd int table of same stucture ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_finals[] = it_final[].&lt;/P&gt;&lt;P&gt;append lines of it_final1 to it_finals .&lt;/P&gt;&lt;P&gt;refresh it_final1.&lt;/P&gt;&lt;P&gt;loop at it_finals into wa_finals  where hkont = gl_range-low .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it_final1 into wa_final1 with key hkont = wa_finals-hkont.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;wa_finals-secamt =   wa_final1-dmbtr.&lt;/P&gt;&lt;P&gt;wa_finals-secamt1 =  wa_final1-dmbtr1.&lt;/P&gt;&lt;P&gt;wa_finals-secamt2 =  wa_final1-dmbtr2.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;modify it_finals from wa_finals transporting secamt secamt1 secamt2.&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;but still geting as 2 lines....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thankz in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1,921,994.00	      123,380.00	        13,107,449.50-	29,092,556.50-	0.00	0.00	0.00&lt;/P&gt;&lt;P&gt;1,921,994.00	        23,380.00	         33,  137,930.50-	0.00	0.00	0.00	0.00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The second records should be displayed in first line itself where 0.00 is displayed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 09:49:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107950#M1361650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T09:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: problem while merging 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107951#M1361651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;modify it_finals from wa_finals." transporting secamt secamt1 secamt2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;remove the part which i commented&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 09:55:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107951#M1361651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T09:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: problem while merging 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107952#M1361652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;already tried with that .. but still not the problem is solved&lt;/P&gt;&lt;P&gt;..problem is when it comes to it_finals itself it bring two lines records......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 09:58:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107952#M1361652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T09:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: problem while merging 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107953#M1361653</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 using the index specificatin and check,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
modify it_finals from wa_finals index sy-tabix.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 10:01:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107953#M1361653</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T10:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: problem while merging 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107954#M1361654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks ... tried but  no change...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 10:03:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107954#M1361654</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T10:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: problem while merging 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107955#M1361655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;arun,&lt;/P&gt;&lt;P&gt;i am not clear about your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you have two records in itab1 why do you want to display only one record and one what basis.&lt;/P&gt;&lt;P&gt;if they are duplicate, use &lt;STRONG&gt;delete ADJACENT DUPLICATES FROM itab COMPARING xyz&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 10:10:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107955#M1361655</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T10:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: problem while merging 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107956#M1361656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no you havent got my question i think....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my first int tabl has a record&lt;/P&gt;&lt;P&gt;and a second int  table has a record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want all the fields from int1 and only 3 fields from int2  and want to display as a single records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;not as 2 records as i have int1 and int2 ....thats y i have another int table as int3  so that i want to merge the int1 and int2 into int3 and display as one record.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u understand now....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i donno how to push only the 3 rec from int2  and take all fields frm int 1 and display as as single onle&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have tried with the code but my required output is not coming&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, 15 Sep 2009 10:14:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107956#M1361656</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T10:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: problem while merging 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107957#M1361657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this code hope your problem will be solved and comment the lines which i have done below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_finals] = it_final[.&lt;/P&gt;&lt;P&gt;"append lines of it_final1 to it_finals .&lt;/P&gt;&lt;P&gt;"refresh it_final1.&lt;/P&gt;&lt;P&gt;loop at it_finals into wa_finals where hkont = gl_range-low .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table it_final1 into wa_final1 with key hkont = wa_finals-hkont.&lt;/P&gt;&lt;P&gt;if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;wa_finals-secamt = wa_final1-dmbtr.&lt;/P&gt;&lt;P&gt;wa_finals-secamt1 = wa_final1-dmbtr1.&lt;/P&gt;&lt;P&gt;wa_finals-secamt2 = wa_final1-dmbtr2.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;modify it_finals from wa_finals transporting secamt secamt1 secamt2.&lt;/P&gt;&lt;P&gt;Endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 10:29:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107957#M1361657</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T10:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: problem while merging 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107958#M1361658</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 pseudo code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lets consider itab1 and itab2 are the 2 intenal tables and it_final is the final table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

loop at itab1.

move-corresponding itab1 to it_final.

read table itab2 with key hkont = itab1-hkont.
if sy-subrc = 0.
it_final-secamt =   itab2-dmbtr.
it_final-secamt1 = itab2-dmbtr1.
it_final-secamt2 = itab2-dmbtr2.
endif.

append it_final.
clear it_final.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Change this pseudo code as per ur requirement and try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 10:30:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107958#M1361658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T10:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: problem while merging 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107959#M1361659</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;it_finals[] = it_final[]. "===&amp;gt;one entry passed 
append lines of it_final1 to it_finals ."==&amp;gt;passed one more record&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see arun,&lt;/P&gt;&lt;P&gt;this part of code is creating two entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so just remove of of them.&lt;/P&gt;&lt;P&gt;it_finals[] = it_final[]. ==&amp;gt;keep only this&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 10:36:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107959#M1361659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T10:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: problem while merging 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107960#M1361660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;y iam do that append lines is cos i want the 3 field value in that record so iam appending to the it_finals table ..........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 10:39:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107960#M1361660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T10:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: problem while merging 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107961#M1361661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Arun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this approach. sample code below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ty_itab,&lt;/P&gt;&lt;P&gt;       val1 TYPE char5,&lt;/P&gt;&lt;P&gt;       val2 TYPE char5,&lt;/P&gt;&lt;P&gt;        END OF ty_itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ty_itab1,&lt;/P&gt;&lt;P&gt;      val1 TYPE char5,&lt;/P&gt;&lt;P&gt;      val2 TYPE char5,&lt;/P&gt;&lt;P&gt;      val3 TYPE char5,&lt;/P&gt;&lt;P&gt;      END OF ty_itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: itab1 TYPE TABLE OF ty_itab,&lt;/P&gt;&lt;P&gt;      wa_itab1 LIKE LINE OF itab1,&lt;/P&gt;&lt;P&gt;      itab2 TYPE TABLE OF ty_itab1,&lt;/P&gt;&lt;P&gt;      wa_itab2 LIKE LINE OF itab2,&lt;/P&gt;&lt;P&gt;      itab3 TYPE TABLE OF ty_itab1,&lt;/P&gt;&lt;P&gt;      wa_itab3 LIKE LINE OF itab3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_itab1-val1 = 'hai'.&lt;/P&gt;&lt;P&gt;wa_itab1-val2 = 'ram'.&lt;/P&gt;&lt;P&gt;APPEND wa_itab1 TO itab1.&lt;/P&gt;&lt;P&gt;CLEAR wa_itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wa_itab2-val1 = 'hai'.&lt;/P&gt;&lt;P&gt;wa_itab2-val2 = 'ABC'.&lt;/P&gt;&lt;P&gt;wa_itab2-val3 = '100'.&lt;/P&gt;&lt;P&gt;APPEND wa_itab2 TO itab2.&lt;/P&gt;&lt;P&gt;CLEAR wa_itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab1 INTO wa_itab1.&lt;/P&gt;&lt;P&gt;  READ TABLE itab2 INTO wa_itab2 WITH KEY val1 = wa_itab1-val1.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;    wa_itab3-val1 = wa_itab1-val1.&lt;/P&gt;&lt;P&gt;    wa_itab3-val2 = wa_itab1-val2.&lt;/P&gt;&lt;P&gt;    wa_itab3-val3 = wa_itab2-val3.&lt;/P&gt;&lt;P&gt;    APPEND wa_itab3 TO itab3.&lt;/P&gt;&lt;P&gt;    CLEAR wa_itab3.&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;LOOP  at itab3 INTO wa_itab3.&lt;/P&gt;&lt;P&gt;  WRITE:/ wa_itab3-val1, wa_itab3-val2, wa_itab3-val3.&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;parameswaran.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 10:41:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107961#M1361661</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T10:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: problem while merging 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107962#M1361662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;arun,&lt;/P&gt;&lt;P&gt;you need values in it_finals right?&lt;/P&gt;&lt;P&gt;it_finals[] = it_final[]. "===&amp;gt;one entry passed , NOW YOU HAVE TO modify this not appened any more lines,&lt;/P&gt;&lt;P&gt;append lines of it_final1 to it_finals ."==&amp;gt;passed one more record..NOT NEEDED, as we will do this in loop,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so..&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;it_finals[] = it_final[]. "one record pass

loop at it_finals into wa_finals where hkont = gl_range-low .
 read table it_final1 into wa_final1 with key hkont = wa_finals-hkont.
 if sy-subrc = 0.
   wa_finals-secamt = wa_final1-dmbtr.
   wa_finals-secamt1 = wa_final1-dmbtr1.
   wa_finals-secamt2 = wa_final1-dmbtr2.
  endif.
  modify it_finals from wa_finals. "one record modified
  clear : wa_finals
Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 11:02:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107962#M1361662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T11:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: problem while merging 2 internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107963#M1361663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rachel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1 into watab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read table itab2 into watab2 where field1 eq watab1-field1.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;for extra fields from internal table 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;watab3-field3 = watab2-field3.&lt;/P&gt;&lt;P&gt;watab3-field4 = watab2-field4.&lt;/P&gt;&lt;P&gt;watab3-field5 = watab2-field5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;move corresponding watab1 into watab3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&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;Gopalakrishnan Ulagajothi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 11:37:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-while-merging-2-internal-tables/m-p/6107963#M1361663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T11:37:26Z</dc:date>
    </item>
  </channel>
</rss>

