<?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/1093328#M101418</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi julius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know whether i understood ur question properly or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 I assume you have two internal tables.&lt;/P&gt;&lt;P&gt;2. U want to combine them so that duplciates are not there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. If this is so,&lt;/P&gt;&lt;P&gt;4. U can declare another third table.&lt;/P&gt;&lt;P&gt;5. With loop or append statement&lt;/P&gt;&lt;P&gt;   populate the 3rd table  with all records&lt;/P&gt;&lt;P&gt;  of 1 and 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. Then u can use DELETE ADJACENT DUPLICATES&lt;/P&gt;&lt;P&gt;   (see help on this command)&lt;/P&gt;&lt;P&gt;   to remove duplicate records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit M.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Dec 2005 09:18:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-27T09:18:17Z</dc:date>
    <item>
      <title>Internal Table Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/1093327#M101417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI again now i have a problem in Internal table, hope u can help.... this is my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get Total Line Internal Table GL Account 1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DESCRIBE TABLE i_gl1 LINES l_line1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Get Total Line Internal Table GL Account 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DESCRIBE TABLE i_gl2 LINES l_line2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF l_line1 GT l_line2.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Create Internal Table G/L Account Final&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    LOOP AT i_gl1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        i_glfindet-hkont1 = i_gl1-hkont.&lt;/P&gt;&lt;P&gt;        i_glfindet-belnr1 = i_gl1-belnr.&lt;/P&gt;&lt;P&gt;        i_glfindet-bldat1 = i_gl1-bldat.&lt;/P&gt;&lt;P&gt;        i_glfindet-wrbtr1 = i_gl1-wrbtr.&lt;/P&gt;&lt;P&gt;        i_glfindet-vbund1 = i_gl1-vbund.&lt;/P&gt;&lt;P&gt;        i_glfindet-spc    = ''.&lt;/P&gt;&lt;P&gt;        APPEND i_glfindet.&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;    LOOP AT i_glfindet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       l_flag = l_flag + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      READ TABLE i_gl2&lt;/P&gt;&lt;P&gt;           WITH KEY bukrs = i_glfindet-vbund1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        i_glfindet-hkont2 = i_gl2-hkont.&lt;/P&gt;&lt;P&gt;        i_glfindet-belnr2 = i_gl2-belnr.&lt;/P&gt;&lt;P&gt;        i_glfindet-bldat2 = i_gl2-bldat.&lt;/P&gt;&lt;P&gt;        i_glfindet-wrbtr2 = i_gl2-wrbtr.&lt;/P&gt;&lt;P&gt;        i_glfindet-vbund2 = i_gl2-vbund.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MODIFY i_glfindet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF l_flag GE l_line2.&lt;/P&gt;&lt;P&gt;        EXIT.&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;  ELSE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT i_gl2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        i_glfindet-spc    = ''.&lt;/P&gt;&lt;P&gt;        i_glfindet-hkont2 = i_gl2-hkont.&lt;/P&gt;&lt;P&gt;        i_glfindet-belnr2 = i_gl2-belnr.&lt;/P&gt;&lt;P&gt;        i_glfindet-bldat2 = i_gl2-bldat.&lt;/P&gt;&lt;P&gt;        i_glfindet-wrbtr2 = i_gl2-wrbtr.&lt;/P&gt;&lt;P&gt;        i_glfindet-vbund2 = i_gl2-vbund.&lt;/P&gt;&lt;P&gt;        APPEND i_glfindet.&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 i_glfindet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      l_flag = l_flag + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      READ TABLE i_gl1&lt;/P&gt;&lt;P&gt;           WITH KEY bukrs = i_glfindet-vbund2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;        i_glfindet-hkont1 = i_gl1-hkont.&lt;/P&gt;&lt;P&gt;        i_glfindet-belnr1 = i_gl1-belnr.&lt;/P&gt;&lt;P&gt;        i_glfindet-bldat1 = i_gl1-bldat.&lt;/P&gt;&lt;P&gt;        i_glfindet-wrbtr1 = i_gl1-wrbtr.&lt;/P&gt;&lt;P&gt;        i_glfindet-vbund1 = i_gl1-vbund.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      MODIFY i_glfindet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      IF l_flag GE l_line1.&lt;/P&gt;&lt;P&gt;        EXIT.&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;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to combine 2 different internal table into 1 combined internal table, but each internal table, has different lines, so it doesn't have the same line... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With my logic above, i manage to combined it, but there is some line which is duplicated from internal table 1 or 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What i want to do is... I want to combine from internal table 1 the column is hkont belnr wrbtr bldat vbund, and from internal table 2 the same which is hkont belnr wrbtr bldat vbund &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the value i get from selection screen put it in internal table 1 is 7, and for internal table 2 is 5, now i want to combine 2 internal table without changing each internal table...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the combined internal table consist of 7 lines... but there is 2 blank line for internal table 1 that doesn't have a value, while internal table 2 has 7 line..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can u solve my problem, by adding some logic and code in here??? Thank u very much&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2005 09:13:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/1093327#M101417</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-27T09:13:19Z</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/1093328#M101418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi julius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know whether i understood ur question properly or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 I assume you have two internal tables.&lt;/P&gt;&lt;P&gt;2. U want to combine them so that duplciates are not there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. If this is so,&lt;/P&gt;&lt;P&gt;4. U can declare another third table.&lt;/P&gt;&lt;P&gt;5. With loop or append statement&lt;/P&gt;&lt;P&gt;   populate the 3rd table  with all records&lt;/P&gt;&lt;P&gt;  of 1 and 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. Then u can use DELETE ADJACENT DUPLICATES&lt;/P&gt;&lt;P&gt;   (see help on this command)&lt;/P&gt;&lt;P&gt;   to remove duplicate records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit M.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2005 09:18:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/1093328#M101418</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-27T09:18:17Z</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/1093329#M101419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the 2 internal tables' structure is practically the same, you could just loop at each internal table, dump it into a final internal table then sort them, then delete adjacent duplicates...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop at i_gl1.
  i_glfindent-hkont1 = i_gl1-hkont.
  i_glfindet-belnr1 = i_gl1-belnr.
  i_glfindet-bldat1 = i_gl1-bldat.
  i_glfindet-wrbtr1 = i_gl1-wrbtr.
  i_glfindet-vbund1 = i_gl1-vbund.
  i_glfindet-spc = ''.
  append i_glfindet.
endloop.

loop at i_gl2.
  i_glfindent-hkont1 = i_gl2-hkont.
  i_glfindet-belnr1 = i_gl2-belnr.
  i_glfindet-bldat1 = i_gl2-bldat.
  i_glfindet-wrbtr1 = i_gl2-wrbtr.
  i_glfindet-vbund1 = i_gl2-vbund.
  i_glfindet-spc = ''.
  append i_glfindet.
endloop.

sort i_glfindet by hkont1 belnr1 wrbtr1 bldat1 vbund1.

delete adjacent duplicates from i_glfindet.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps somehow...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2005 09:23:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/1093329#M101419</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-27T09:23:37Z</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/1093330#M101420</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;   If Iam not wrong , change the coding below.(In BOLD)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT i_glfindet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_flag = l_flag + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ TABLE i_gl1&lt;/P&gt;&lt;P&gt;WITH KEY bukrs = i_glfindet-vbund2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc EQ 0.&lt;/P&gt;&lt;P&gt;i_glfindet-hkont1 = i_gl1-hkont.&lt;/P&gt;&lt;P&gt;i_glfindet-belnr1 = i_gl1-belnr.&lt;/P&gt;&lt;P&gt;i_glfindet-bldat1 = i_gl1-bldat.&lt;/P&gt;&lt;P&gt;i_glfindet-wrbtr1 = i_gl1-wrbtr.&lt;/P&gt;&lt;P&gt;i_glfindet-vbund1 = i_gl1-vbund.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;else.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;i_glfindet-hkont1 = i_glfindet-hkont.&lt;/P&gt;&lt;P&gt;i_glfindet-belnr1 = i_glfindet-belnr.&lt;/P&gt;&lt;P&gt;i_glfindet-bldat1 = i_glfindet-bldat.&lt;/P&gt;&lt;P&gt;i_glfindet-wrbtr1 = i_glfindet-wrbtr.&lt;/P&gt;&lt;P&gt;i_glfindet-vbund1 = i_glfindet-vbund.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODIFY i_glfindet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF l_flag GE l_line1.&lt;/P&gt;&lt;P&gt;EXIT.&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;This should work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;GSR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2005 09:29:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/1093330#M101420</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-27T09:29:10Z</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/1093331#M101421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup I have 2 Internal Tables, I want to combine it&lt;/P&gt;&lt;P&gt;But side by side... so it's just like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example:&lt;/P&gt;&lt;P&gt;Internal table 1:&lt;/P&gt;&lt;P&gt;Apple   Gundam  Rock&lt;/P&gt;&lt;P&gt;Oranges Robot   Leaf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal Table 2&lt;/P&gt;&lt;P&gt;Grape   Book    Siccors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Final Internal Table should be like this:&lt;/P&gt;&lt;P&gt;Apple   Gundam  Rock   Grape   Book    Siccors&lt;/P&gt;&lt;P&gt;Oranges Robot   Leaf   [Blank] [Blank] [Blank]   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want it like this.... not just append the internal table.... the 3rd internal table has the structure for all internal table 1 and internal table 2. So can u correct my program, or have another solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2005 09:47:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/1093331#M101421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-27T09:47:36Z</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/1093332#M101422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup I have 2 Internal Tables, I want to combine it&lt;/P&gt;&lt;P&gt;But side by side... so it's just like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example:&lt;/P&gt;&lt;P&gt;Internal table 1:&lt;/P&gt;&lt;P&gt;Apple   Gundam  Rock&lt;/P&gt;&lt;P&gt;Oranges Robot   Leaf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal Table 2&lt;/P&gt;&lt;P&gt;Grape   Book    Siccors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Final Internal Table should be like this:&lt;/P&gt;&lt;P&gt;Apple   Gundam  Rock   Grape   Book    Siccors&lt;/P&gt;&lt;P&gt;Oranges Robot   Leaf   [Blank] [Blank] [Blank]   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want it like this.... not just append the internal table.... the 3rd internal table has the structure for all internal table 1 and internal table 2. So can u correct my program, or have another solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2005 09:48:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/1093332#M101422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-27T09:48:21Z</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/1093333#M101423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yup I have 2 Internal Tables, I want to combine it&lt;/P&gt;&lt;P&gt;But side by side... so it's just like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Example:&lt;/P&gt;&lt;P&gt;Internal table 1:&lt;/P&gt;&lt;P&gt;Apple   Gundam  Rock&lt;/P&gt;&lt;P&gt;Oranges Robot   Leaf&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal Table 2&lt;/P&gt;&lt;P&gt;Grape   Book    Siccors&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Final Internal Table should be like this:&lt;/P&gt;&lt;P&gt;Apple   Gundam  Rock   Grape   Book    Siccors&lt;/P&gt;&lt;P&gt;Oranges Robot   Leaf   [Blank] [Blank] [Blank]   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want it like this.... not just append the internal table.... the 3rd internal table has the structure for all internal table 1 and internal table 2. So can u correct my program, or have another solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2005 09:49:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/1093333#M101423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-27T09:49:52Z</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/1093334#M101424</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 your first Internal table.&lt;/P&gt;&lt;P&gt;  read the second Table.&lt;/P&gt;&lt;P&gt;  If sy-subrc = 0.&lt;/P&gt;&lt;P&gt;  fill the 3rd internal table with both 1st &amp;amp; 2nd&lt;/P&gt;&lt;P&gt;  internal tables&lt;/P&gt;&lt;P&gt;  else&lt;/P&gt;&lt;P&gt;  file the 3rd with only 1st internal table&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GSR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2005 09:52:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/1093334#M101424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-27T09:52:48Z</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/1093335#M101425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi julius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just copy paste the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: begin of itab1 occurs 4,
str1(10),
str2(10),
str3(10),
end of itab1.

data: begin of itab2 occurs 4,
str4(10),
str5(10),
str6(10),
end of itab2.

data: begin of itab3 occurs 4,
s1(10),
s2(10),
s3(10),
s4(10),
s5(10),
s6(10),
end of itab3.

itab1-str1 = 'apple'.
itab1-str2 = 'gundam'.
itab1-str3 = 'rock'.
append itab1.

itab1-str1 = 'oranges'.
itab1-str2 = 'robot'.
itab1-str3 = 'leaf'.
append itab1.

itab2-str4 = 'grape'.
itab2-str5 = 'book'.
itab2-str6 = 'siccors'.
append itab2.

if itab1 &amp;gt; itab2.
    loop at itab1.
       write sy-tabix.
       read table itab1 index sy-tabix.
       if sy-subrc = 0.
          read table itab2 index sy-tabix.
           if sy-subrc = 0.
             itab3-s1 = itab1-str1.
             itab3-s2 = itab1-str2.
             itab3-s3 = itab1-str3.
             itab3-s4 = itab2-str4.
             itab3-s5 = itab2-str5.
             itab3-s6 = itab2-str6. 
             append itab3.
           else.
             itab3-s1 = itab1-str1.
             itab3-s2 = itab1-str2.
             itab3-s3 = itab1-str3.
             itab3-s4 = ' '.
             itab3-s5 = ' '.
             itab3-s6 = ' '. 
             append itab3.
           endif.
       endif.
    endloop.
else.
loop at itab2.
       write sy-tabix.
       read table itab2 index sy-tabix.
       if sy-subrc = 0.
          read table itab1 index sy-tabix.
           if sy-subrc = 0.
             itab3-s1 = itab1-str1.
             itab3-s2 = itab1-str2.
             itab3-s3 = itab1-str3.
             itab3-s4 = itab2-str4.
             itab3-s5 = itab2-str5.
             itab3-s6 = itab2-str6. 
             append itab3.
           else.
             itab3-s1 = itab1-str1.
             itab3-s2 = itab1-str2.
             itab3-s3 = itab1-str3.
             itab3-s4 = ' '.
             itab3-s5 = ' '.
             itab3-s6 = ' '. 
             append itab3.
           endif.
       endif.
    endloop.

endif.

loop at itab3.
  write: / itab3.
endloop.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Maheswaran.B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2005 11:11:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/1093335#M101425</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-27T11:11:41Z</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/1093336#M101426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all, actually i have solved the problem, like the last post wrote... Thanks for ur time for hekping my problem &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Julius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2005 11:52:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/1093336#M101426</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-27T11:52:55Z</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/1093337#M101427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can U award points to the Useful answer and close this ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Dec 2005 12:02:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-problem/m-p/1093337#M101427</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-27T12:02:29Z</dc:date>
    </item>
  </channel>
</rss>

