<?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 join the 2 selected tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-the-2-selected-tables/m-p/6465504#M1416257</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;In my senario, i get the data from 2 different table and kept in 2 internal tables and did the some calculations on those. later i want to club that 2 internal tables and keep as 1 internal table, for that which statement is applicable.&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>Mon, 18 Jan 2010 07:10:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-01-18T07:10:55Z</dc:date>
    <item>
      <title>join the 2 selected tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-the-2-selected-tables/m-p/6465504#M1416257</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;In my senario, i get the data from 2 different table and kept in 2 internal tables and did the some calculations on those. later i want to club that 2 internal tables and keep as 1 internal table, for that which statement is applicable.&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>Mon, 18 Jan 2010 07:10:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-the-2-selected-tables/m-p/6465504#M1416257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-18T07:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: join the 2 selected tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-the-2-selected-tables/m-p/6465505#M1416258</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;Which are the two tables from which you are getting the data. Try using inner joins if those two tables have any common key.&lt;/P&gt;&lt;P&gt;Then pass this data to one internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 07:16:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-the-2-selected-tables/m-p/6465505#M1416258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-18T07:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: join the 2 selected tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-the-2-selected-tables/m-p/6465506#M1416259</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;Based on the Primary key ,You can loop the internal table and append into final table.&lt;/P&gt;&lt;P&gt;Using read statement u can calli the another internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 07:16:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-the-2-selected-tables/m-p/6465506#M1416259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-18T07:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: join the 2 selected tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-the-2-selected-tables/m-p/6465507#M1416260</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;You can use either INNER JOIN or FOR ALL ENTRIES Technique.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards:&lt;/P&gt;&lt;P&gt;ManojReddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 07:16:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-the-2-selected-tables/m-p/6465507#M1416260</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-18T07:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: join the 2 selected tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-the-2-selected-tables/m-p/6465508#M1416261</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;Performance wise FOR ALL ENTRIES is better .If possible  try to use FOR ALL ENTRIES instead of join.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;Gaurav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 07:48:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-the-2-selected-tables/m-p/6465508#M1416261</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-18T07:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: join the 2 selected tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/join-the-2-selected-tables/m-p/6465509#M1416262</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 check this code for reference. Iam transfering data from different internal tables to one final internal table i.e. it_disp1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT IT_EKKO INTO WA_EKKO.
    WA_DISP1-EBELN = WA_EKKO-EBELN.
    WA_DISP1-BUKRS = WA_EKKO-BUKRS.
    WA_DISP1-BSTYP = WA_EKKO-BSTYP.
    WA_DISP1-BSART = WA_EKKO-BSART.
    WA_DISP1-LIFNR = WA_EKKO-LIFNR.
    WA_DISP1-WERKS = WA_EKKO-WERKS.
    WA_DISP1-EKGRP = WA_EKKO-EKGRP.
    WA_DISP1-KUNNR = WA_EKKO-KUNNR.
    READ TABLE IT_T001 INTO WA_T001 WITH KEY BUKRS = WA_EKKO-BUKRS
                                                     BINARY SEARCH.
    IF SY-SUBRC = 0.
      WA_DISP1-BUTXT = WA_T001-BUTXT.
    ENDIF.
    READ TABLE IT_LFA1 INTO WA_LFA1 WITH KEY LIFNR = WA_EKKO-LIFNR
                                                     BINARY SEARCH.
    IF SY-SUBRC = 0.
      WA_DISP1-NAME1V = WA_LFA1-NAME1V.
      CONCATENATE WA_DISP1-NAME1V WA_LFA1-NAME2V INTO WA_DISP1-NAME1V SEPARATED BY SPACE.
    ENDIF.
    READ TABLE IT_KNA1 INTO WA_KNA1 WITH KEY KUNNR = WA_EKKO-KUNNR
                                                     BINARY SEARCH.
    IF SY-SUBRC = 0.
      WA_DISP1-NAME1C = WA_KNA1-NAME1C.
      CONCATENATE WA_DISP1-NAME1C WA_KNA1-NAME2C INTO WA_DISP1-NAME1C SEPARATED BY SPACE.
    ENDIF.
    READ TABLE IT_T001W INTO WA_T001W WITH KEY WERKS = WA_EKKO-WERKS
                                                    BINARY SEARCH.
    IF SY-SUBRC = 0.
      WA_DISP1-NAME1P = WA_T001W-NAME1P.
    ENDIF.
    APPEND WA_DISP1 TO IT_DISP1.
    CLEAR: WA_EKKO, WA_DISP1, WA_T001, WA_LFA1, WA_T001W, WA_KNA1, WA_EKPO.
  ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anshul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2010 08:02:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/join-the-2-selected-tables/m-p/6465509#M1416262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-01-18T08:02:00Z</dc:date>
    </item>
  </channel>
</rss>

