<?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: Views &amp; joining same table twice? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/views-joining-same-table-twice/m-p/4445053#M1054346</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In real SQL you can, as you say, create a database view by joining a table to itself, but this requires the use of aliases and so cannot be done in SE11.  I did once try to bypass this by creating a single table view based on the table in SE11 so that I would have a different name for the table and then trying to create a view joining that view and the table (in real SQL you can base a view on a view), but it wouldn't allow me to do this either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2008 10:22:52 GMT</pubDate>
    <dc:creator>christine_evans</dc:creator>
    <dc:date>2008-09-17T10:22:52Z</dc:date>
    <item>
      <title>Views &amp; joining same table twice?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/views-joining-same-table-twice/m-p/4445048#M1054341</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;I am running into this problem and I am stuck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Short story:&lt;/P&gt;&lt;P&gt;I need to join two views into one view, &lt;/P&gt;&lt;P&gt;or include one view into another containing base tables, &lt;/P&gt;&lt;P&gt;or join the same table twice using, maybe, and alias.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Long story:&lt;/P&gt;&lt;P&gt;I have to create a view which joins vendor number and name with manufacturer number and name. All this through views and no coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There already exists a working view containing the vendor info and manufacturer number.&lt;/P&gt;&lt;P&gt;Z_VENDOR_VIEW&lt;/P&gt;&lt;P&gt;Tables:&lt;/P&gt;&lt;P&gt;MARA&lt;/P&gt;&lt;P&gt;LFA1&lt;/P&gt;&lt;P&gt;MARC&lt;/P&gt;&lt;P&gt;MAKT&lt;/P&gt;&lt;P&gt;EINA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the manufacturer number (MFRNR) from the above, I want to fetch the name from LFA1-NAME1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that LFA1-NAME1 is already used in the above view as the vendor name with the join condition EINA and LFA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The end result should display: vendor_#   vendor_name   manufacturer_#   manufacturer_name.&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>Thu, 11 Sep 2008 20:56:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/views-joining-same-table-twice/m-p/4445048#M1054341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-11T20:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Views &amp; joining same table twice?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/views-joining-same-table-twice/m-p/4445049#M1054342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;even if I understand your need, having twice the same field in a view makes no sense in a technical point of view ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you could do it with some abap code but not in a dictionary view&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 09:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/views-joining-same-table-twice/m-p/4445049#M1054342</guid>
      <dc:creator>franois_henrotte</dc:creator>
      <dc:date>2008-09-16T09:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Views &amp; joining same table twice?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/views-joining-same-table-twice/m-p/4445050#M1054343</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 coding or using the database view.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sharin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 09:40:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/views-joining-same-table-twice/m-p/4445050#M1054343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-16T09:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: Views &amp; joining same table twice?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/views-joining-same-table-twice/m-p/4445051#M1054344</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;The best thing is to write an ABAP report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 10:55:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/views-joining-same-table-twice/m-p/4445051#M1054344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-16T10:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Views &amp; joining same table twice?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/views-joining-same-table-twice/m-p/4445052#M1054345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help. In the end I will code it as you say. It will simplify things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is interesting though that views cannot be joined/nested.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Sep 2008 16:19:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/views-joining-same-table-twice/m-p/4445052#M1054345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-16T16:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Views &amp; joining same table twice?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/views-joining-same-table-twice/m-p/4445053#M1054346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In real SQL you can, as you say, create a database view by joining a table to itself, but this requires the use of aliases and so cannot be done in SE11.  I did once try to bypass this by creating a single table view based on the table in SE11 so that I would have a different name for the table and then trying to create a view joining that view and the table (in real SQL you can base a view on a view), but it wouldn't allow me to do this either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 10:22:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/views-joining-same-table-twice/m-p/4445053#M1054346</guid>
      <dc:creator>christine_evans</dc:creator>
      <dc:date>2008-09-17T10:22:52Z</dc:date>
    </item>
  </channel>
</rss>

