<?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: append internal table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791600#M1122280</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data:check type c.
sort :itab1 by field1 field2,
itab2 by field1 field2.
Loop at itab1.
loop at itab2 where field1 = itab1-field1 and field2 ne initial."replace read from inner loop.
itab3-field1 = itab2-field1.
itab3-field2 = itab2-field2.
append itab3.
check = 'X'.'
endloop.
if check = ' '.
itab3-field1 = itab1-field1.
append itab3.
endif.
clear check..
Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 29 Nov 2008 07:19:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-29T07:19:15Z</dc:date>
    <item>
      <title>append internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791582#M1122262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all ..&lt;/P&gt;&lt;P&gt;I have 2 internal tables and i want to append both in 3rd table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data of 1st internal table : itab : like.  &lt;/P&gt;&lt;P&gt;   A                      &lt;/P&gt;&lt;P&gt;81000&lt;/P&gt;&lt;P&gt;81001&lt;/P&gt;&lt;P&gt;81002&lt;/P&gt;&lt;P&gt;81003&lt;/P&gt;&lt;P&gt;81004&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data of 2nd internal table : itab1 is like : &lt;/P&gt;&lt;P&gt;   A              B&lt;/P&gt;&lt;P&gt;81000     23232323&lt;/P&gt;&lt;P&gt;81001     34343433&lt;/P&gt;&lt;P&gt;81001     45454545&lt;/P&gt;&lt;P&gt;81003     56565655&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in output i want data like :&lt;/P&gt;&lt;P&gt;  A            B&lt;/P&gt;&lt;P&gt;81000    23232323&lt;/P&gt;&lt;P&gt;81001    34343434&lt;/P&gt;&lt;P&gt;81001    45454545&lt;/P&gt;&lt;P&gt;81002                    &lt;/P&gt;&lt;P&gt;81003     56565656&lt;/P&gt;&lt;P&gt;81004                 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 04:47:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791582#M1122262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T04:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: append internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791583#M1122263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankitha.&lt;/P&gt;&lt;P&gt;Fst loop the internal table in which u have max records and read snd table.&lt;/P&gt;&lt;P&gt;fst declare final internal table the fields u want to append&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop AT fst_tab into fst_wa.&lt;/P&gt;&lt;P&gt;move fst internal table fileds into final_wa&lt;/P&gt;&lt;P&gt;READ table snd_tab into snd_wa with key snd_wa_feild =  fst_wa_field&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0&lt;/P&gt;&lt;P&gt;move 2nd internal table fields to final_wa&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ table trd_tab into trd_wa with key trd_wa_feild =  fst_wa_field&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0&lt;/P&gt;&lt;P&gt;move 3rdinternal table fields to final_wa&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append final_wa to final_it&lt;/P&gt;&lt;P&gt;clear final_wa.&lt;/P&gt;&lt;P&gt;ENDLOOP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rasheed salman on Nov 29, 2008 5:53 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 04:52:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791583#M1122263</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T04:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: append internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791584#M1122264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SORRY &lt;/P&gt;&lt;P&gt;but it is not working..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it shows only last line for multiple times..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz help me..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 05:04:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791584#M1122264</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T05:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: append internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791585#M1122265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankita&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab1 into wa_itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read table itab with Key A = wa_itab1-A into wa_itab.&lt;/P&gt;&lt;P&gt;If sy-subrc ne 0.&lt;/P&gt;&lt;P&gt;clear wa_itab1.&lt;/P&gt;&lt;P&gt;move wa_itab-A to wa_itab1-A.&lt;/P&gt;&lt;P&gt;Append wa_itab1 to itab1.&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;Regards &lt;/P&gt;&lt;P&gt;Neha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 05:09:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791585#M1122265</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T05:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: append internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791586#M1122266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;It should work.Please check the code in Degugging mode and sort out the issue.&lt;/P&gt;&lt;P&gt;In the read table statement try to hit the primary key&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop AT fst_tab into fst_wa.&lt;/P&gt;&lt;P&gt;move fst internal table fileds into final_wa&lt;/P&gt;&lt;P&gt;READ table snd_tab into snd_wa with key snd_wa_feild = fst_wa_field&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0&lt;/P&gt;&lt;P&gt;move 2nd internal table fields to final_wa&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ table trd_tab into trd_wa with key trd_wa_feild = fst_wa_field&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0&lt;/P&gt;&lt;P&gt;move 3rdinternal table fields to final_wa&lt;/P&gt;&lt;P&gt;endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append final_wa to final_it&lt;/P&gt;&lt;P&gt;clear :final_wa,fst_wa.&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;&lt;/P&gt;&lt;P&gt;Edited by: Rasheed salman on Nov 29, 2008 6:13 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rasheed salman on Nov 29, 2008 6:13 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 05:12:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791586#M1122266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T05:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: append internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791587#M1122267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rasheed...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 2 internal tables and i want to append it in 3rd internal table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 05:17:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791587#M1122267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T05:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: append internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791588#M1122268</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;Do like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Loop at itab.
Move-corresponding itab to it_final.
Append it_final.
Endloop.

Loop at itab1.
Move-corresponding itab1 to it_final.
Append it_final.
Endloop.
Sort it_final by A.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 05:22:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791588#M1122268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T05:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: append internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791589#M1122269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rasheed...&lt;/P&gt;&lt;P&gt;My code is like :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop AT itab into fst_wa.&lt;/P&gt;&lt;P&gt;move itab-banfn to final_wa-banfn.&lt;/P&gt;&lt;P&gt;*move fst internal table fileds into final_wa&lt;/P&gt;&lt;P&gt;*READ table snd_tab into snd_wa with key snd_wa_feild = fst_wa_field&lt;/P&gt;&lt;P&gt;read table itab1 into snd_wa with key banfn = fst_wa-banfn.&lt;/P&gt;&lt;P&gt;if sy-subrc eq 0.&lt;/P&gt;&lt;P&gt;*move 2nd internal table fields to final_wa&lt;/P&gt;&lt;P&gt;move itab1-banfn to final_wa-banfn.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*READ table trd_tab into trd_wa with key trd_wa_feild = fst_wa_field&lt;/P&gt;&lt;P&gt;*if sy-subrc eq 0&lt;/P&gt;&lt;P&gt;*move 3rdinternal table fields to final_wa&lt;/P&gt;&lt;P&gt;*endif&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;append final_wa to final_it.&lt;/P&gt;&lt;P&gt;clear :final_wa,fst_wa.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT final_it.&lt;/P&gt;&lt;P&gt;WRITE : / final_it-BANFN,final_it-ebeln.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz help me Rasheed.......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 05:23:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791589#M1122269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T05:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: append internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791590#M1122270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your statistics says: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Registered:  Jul 4, 2007   
Total Posts:  147   
Total Questions:  74 (51 unresolved)"Means you did't setisfied at all in 51 Qns?!&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You register yourself one and half year Ago and still you need logic to append in 3rd itab from two itab?!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 05:31:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791590#M1122270</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T05:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: append internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791591#M1122271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are just moving the data to final internal table work area. But, You are not appending this data to final internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 05:32:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791591#M1122271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T05:32:47Z</dc:date>
    </item>
    <item>
      <title>Re: append internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791592#M1122272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi amit..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u want to  help me than its oki...&lt;/P&gt;&lt;P&gt;there is no need of any king of suggestion like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 05:34:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791592#M1122272</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T05:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: append internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791593#M1122273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you already got Well Enough Hint and Code from Neha and Rasheed,Now beyond this can't you put your efforts now? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just simply said because asking this kind of help doesn't let you Efficient programmer. &lt;/P&gt;&lt;P&gt;As much as sugar you put in milk it will Sweeter more. So put effort in your work will lead you on Top.&lt;/P&gt;&lt;P&gt;Rest up to you,Sorry if my words hurt you at any corent of your heart. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy posting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 05:49:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791593#M1122273</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T05:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: append internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791594#M1122274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its oki...&lt;/P&gt;&lt;P&gt;I tried a lot and after that i move to this sdn with such questions...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I cant get any output still...&lt;/P&gt;&lt;P&gt;If u can help me...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 06:02:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791594#M1122274</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T06:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: append internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791595#M1122275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ankith &lt;/P&gt;&lt;P&gt;Dekho&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ty_vbrk,&lt;/P&gt;&lt;P&gt;        vbeln TYPE vbrk-vbeln,&lt;/P&gt;&lt;P&gt;        fktyp TYPE vbrk-fktyp,&lt;/P&gt;&lt;P&gt;      END OF ty_vbrk.&lt;/P&gt;&lt;P&gt;TYPES:BEGIN OF ty_vbrp,&lt;/P&gt;&lt;P&gt;        vbeln TYPE vbrp-vbeln,&lt;/P&gt;&lt;P&gt;        posnr TYPE vbrp-posnr,&lt;/P&gt;&lt;P&gt;      END OF ty_vbrp.&lt;/P&gt;&lt;P&gt;TYPES:BEGIN OF ty_final,&lt;/P&gt;&lt;P&gt;        vbeln TYPE vbrp-vbeln,&lt;/P&gt;&lt;P&gt;        posnr TYPE vbrp-posnr,&lt;/P&gt;&lt;P&gt;        fktyp TYPE vbrk-fktyp,&lt;/P&gt;&lt;P&gt;      END OF ty_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_vbrk TYPE STANDARD TABLE OF ty_vbrk,&lt;/P&gt;&lt;P&gt;      it_vbrp TYPE STANDARD TABLE OF ty_vbrp,&lt;/P&gt;&lt;P&gt;      it_final TYPE STANDARD TABLE OF ty_final,&lt;/P&gt;&lt;P&gt;      wa_vbrk TYPE ty_vbrk,&lt;/P&gt;&lt;P&gt;      wa_vbrp TYPE ty_vbrp,&lt;/P&gt;&lt;P&gt;      wa_final TYPE ty_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT  vbeln&lt;/P&gt;&lt;P&gt;        fktyp FROM vbrk&lt;/P&gt;&lt;P&gt;        INTO TABLE it_vbrk.&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;  SORT it_vbrk BY vbeln.&lt;/P&gt;&lt;P&gt;  SELECT vbeln&lt;/P&gt;&lt;P&gt;         posnr FROM vbrp&lt;/P&gt;&lt;P&gt;         INTO TABLE it_vbrp&lt;/P&gt;&lt;P&gt;        FOR ALL ENTRIES IN it_vbrk&lt;/P&gt;&lt;P&gt;        WHERE vbeln = it_vbrk-vbeln.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    SORT it_vbrp BY vbeln.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_vbrp INTO wa_vbrp.&lt;/P&gt;&lt;P&gt;  MOVE: wa_vbrp-vbeln TO wa_final-vbeln,&lt;/P&gt;&lt;P&gt;        wa_vbrp-posnr TO wa_final-posnr.&lt;/P&gt;&lt;P&gt;  READ TABLE it_vbrk INTO wa_vbrk WITH KEY vbeln = wa_vbrp-vbeln.&lt;/P&gt;&lt;P&gt;  IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;    MOVE: wa_vbrk-fktyp TO wa_final-fktyp.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;  APPEND wa_final TO it_final.&lt;/P&gt;&lt;P&gt;  CLEAR:wa_final,wa_vbrp.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 06:12:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791595#M1122275</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T06:12:18Z</dc:date>
    </item>
    <item>
      <title>Re: append internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791596#M1122276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok np,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here i assume:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;This is Itab1.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;81000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;81001&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;81002&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;81003&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;81004&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;and itab2 is like :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Field1 Field2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;A         B&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;81000 23232323&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;81001 34343433&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;81001 45454545&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;81003 56565655&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Try this code.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;sort :itab1 by field1 field2,
itab2 by field1 field2.
Loop at itab1.
Read table itab2 with key field1 = itab1-field1 field2 ne initial binary search.
if sy-subrc = 0.
itab3-field1 = itab2-field1.
itab3-field2 = itab2-field2.
else.
itab3-field1 = itab1-field1.
append itab3.
Endif.
Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 06:21:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791596#M1122276</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T06:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: append internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791597#M1122277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi Ankith &lt;/P&gt;&lt;P&gt;&amp;gt; Dekho&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rasheed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First he/she is not Ankith he/she is Ankita,sometimes it may hurt anyone.And second Please don't use any Hindi words in posting.&lt;/P&gt;&lt;P&gt;Use Standard language.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 06:23:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791597#M1122277</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T06:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: append internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791598#M1122278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Amit...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there is still problem in output..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from ur logic output shows...&lt;/P&gt;&lt;P&gt;field 1          field2&lt;/P&gt;&lt;P&gt;81000      18000226   &lt;/P&gt;&lt;P&gt;81001      18000743   &lt;/P&gt;&lt;P&gt;81002                 &lt;/P&gt;&lt;P&gt;81003      18002681   &lt;/P&gt;&lt;P&gt;81004                 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But l need output like..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field1      field2&lt;/P&gt;&lt;P&gt;81000      18000226   &lt;/P&gt;&lt;P&gt;81001      18000743   &lt;/P&gt;&lt;P&gt;81001      18000745&lt;/P&gt;&lt;P&gt;81002                 &lt;/P&gt;&lt;P&gt;81003      18002681   &lt;/P&gt;&lt;P&gt;81004                 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz u can do something for it .. then try it....&lt;/P&gt;&lt;P&gt;Plz yaar........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 07:00:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791598#M1122278</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T07:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: append internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791599#M1122279</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 ask ur seniors in ur team regarding this query.Please add some knowledge sharing when u post a thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You got as many answers u want and u r simply asking for a spoon feeding which wehad already given in my code and amits code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please dont xpect SDN to understand ur requiremnt and give you solution as you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry,if hurts u&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 07:05:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791599#M1122279</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T07:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: append internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791600#M1122280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Finally,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data:check type c.
sort :itab1 by field1 field2,
itab2 by field1 field2.
Loop at itab1.
loop at itab2 where field1 = itab1-field1 and field2 ne initial."replace read from inner loop.
itab3-field1 = itab2-field1.
itab3-field2 = itab2-field2.
append itab3.
check = 'X'.'
endloop.
if check = ' '.
itab3-field1 = itab1-field1.
append itab3.
endif.
clear check..
Endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 07:19:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791600#M1122280</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T07:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: append internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791601#M1122281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANKS A LOT AMIT..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iTS WORKING.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THANK U....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Nov 2008 08:35:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/append-internal-table/m-p/4791601#M1122281</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-29T08:35:02Z</dc:date>
    </item>
  </channel>
</rss>

