<?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: Table Alias in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-alias/m-p/6430557#M1410897</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ignore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nitwick on Dec 16, 2009 4:41 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Dec 2009 11:09:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-16T11:09:59Z</dc:date>
    <item>
      <title>Table Alias</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-alias/m-p/6430556#M1410896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I need to access twice the same table with the help of aliases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT DISTINCT CHILD~NODENAME PARENT~NODENAME into table it_org_hierarki FROM /BI0/HORGUNIT AS CHILD
      JOIN /BI0/HORGUNIT AS PARENT ON PARENT~NODEID = CHILD~PARENTID.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I get an run-time error DBIF_RSQL_INVALID_RSQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get what I'm looking for ? Isn't it possible to use an alias to access the same table twice in a SELECT?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 11:02:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-alias/m-p/6430556#M1410896</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-16T11:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: Table Alias</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-alias/m-p/6430557#M1410897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ignore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Nitwick on Dec 16, 2009 4:41 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 11:09:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-alias/m-p/6430557#M1410897</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-16T11:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Table Alias</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-alias/m-p/6430558#M1410898</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 think you are getting this error coz the internal table is over filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SELECT DISTINCT CHILD~NODENAME PARENT~NODENAME into table it_org_hierarki FROM /BI0/HORGUNIT AS CHILD
      JOIN /BI0/HORGUNIT AS PARENT ON PARENT~NODEID = CHILD~PARENTID.  "Use the WHERE clause and fetch only the records that you want
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 11:16:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-alias/m-p/6430558#M1410898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-16T11:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Table Alias</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-alias/m-p/6430559#M1410899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's ok now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I simply had a bad definition in my internal table. It didn't match with the 2 selected fields .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 11:33:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-alias/m-p/6430559#M1410899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-16T11:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: Table Alias</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-alias/m-p/6430560#M1410900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you manage to solve this, I'm trying to read the orgunit hierarchy table to find all the child nodes under each parent orgunit, can some one guide me please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Aug 2011 17:46:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-alias/m-p/6430560#M1410900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-08-02T17:46:12Z</dc:date>
    </item>
  </channel>
</rss>

