<?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: Declaring internal table by including 2 tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-internal-table-by-including-2-tables/m-p/6131404#M1365495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are no exist such FM. But you may try like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF t_final.
INCLUDE STRUCTURE ebkn AS a RENAMING WITH SUFFIX a1.
INCLUDE STRUCTURE eban AS b RENAMING WITH SUFFIX b1.
TYPES: END OF t_final.

DATA: FINAL TYPE t_final OCCURS 0 WITH HEADER LINE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Table FINAL will be contain all fields from both structures (with duplicates).&lt;/P&gt;&lt;P&gt;Access fields:&lt;/P&gt;&lt;P&gt;FINAL-MANDTA1 - field MANDT for table EBKN (also you may use FINAL-A-MANDT)&lt;/P&gt;&lt;P&gt;FINAL-MANDTB1 - field MANDT for table EBAN (also you may use FINAL-B-MANDT)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Sep 2009 07:44:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-04T07:44:26Z</dc:date>
    <item>
      <title>Declaring internal table by including 2 tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-internal-table-by-including-2-tables/m-p/6131403#M1365494</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 a requirement , where i need to display a report containing all the feilds from two table EBAN and EBKN avoiding duplicates. &lt;/P&gt;&lt;P&gt;My question is how to find all the feilds in the 2 tables avoind duplicates. is there any function module for which if if we give input as 2 tables , then it gives all the feilds present i it by avoiding duplicates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could i declare my internal table .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF t_final.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE ebkn.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE eban.&lt;/P&gt;&lt;P&gt;TYPES: END OF t_final.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i declare this way, it is showing error that some feilds are already declared.&lt;/P&gt;&lt;P&gt;is there any other way instead of listing all the feilds&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 06:56:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-internal-table-by-including-2-tables/m-p/6131403#M1365494</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-04T06:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: Declaring internal table by including 2 tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-internal-table-by-including-2-tables/m-p/6131404#M1365495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are no exist such FM. But you may try like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: BEGIN OF t_final.
INCLUDE STRUCTURE ebkn AS a RENAMING WITH SUFFIX a1.
INCLUDE STRUCTURE eban AS b RENAMING WITH SUFFIX b1.
TYPES: END OF t_final.

DATA: FINAL TYPE t_final OCCURS 0 WITH HEADER LINE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Table FINAL will be contain all fields from both structures (with duplicates).&lt;/P&gt;&lt;P&gt;Access fields:&lt;/P&gt;&lt;P&gt;FINAL-MANDTA1 - field MANDT for table EBKN (also you may use FINAL-A-MANDT)&lt;/P&gt;&lt;P&gt;FINAL-MANDTB1 - field MANDT for table EBAN (also you may use FINAL-B-MANDT)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 07:44:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/declaring-internal-table-by-including-2-tables/m-p/6131404#M1365495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-04T07:44:26Z</dc:date>
    </item>
  </channel>
</rss>

