<?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 Cannot select from table dummy in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-select-from-table-dummy/m-p/11577548#M1938554</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;&lt;/P&gt;&lt;P&gt;I'm trying to use the sys.dummy table to do some calculations in ADT. However, when I issue e.g. the statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT RAND()*1000 AS VAL FROM DUMMY &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in SQL console I get the error &lt;/P&gt;&lt;P&gt;"DUMMY" is not declared as a table, projection view, or database view in ABAP Dictionary or does not exist in an active version&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to join dummy in a CDS view definition I get&lt;/P&gt;&lt;P&gt;"Basis object dummy does not exist or is not active"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the same system, when I execute the function module SHDB_EXISTS_TABLE with I_SCHEMA_NAME = SYS and I_TABLE_NAME = DUMMY, I get a positive result. Inside, it counts the rows of the table to check whether it exists. So it must be active, otherwise it couldn't count the rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any limitation that I can't use table DUMMY in ABAP Developer tools? &lt;/P&gt;&lt;P&gt;System is a HDB system with SAP_BASIS 751.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Josef&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Feb 2016 13:28:12 GMT</pubDate>
    <dc:creator>former_member230520</dc:creator>
    <dc:date>2016-02-19T13:28:12Z</dc:date>
    <item>
      <title>Cannot select from table dummy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-select-from-table-dummy/m-p/11577548#M1938554</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;&lt;/P&gt;&lt;P&gt;I'm trying to use the sys.dummy table to do some calculations in ADT. However, when I issue e.g. the statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT RAND()*1000 AS VAL FROM DUMMY &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in SQL console I get the error &lt;/P&gt;&lt;P&gt;"DUMMY" is not declared as a table, projection view, or database view in ABAP Dictionary or does not exist in an active version&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to join dummy in a CDS view definition I get&lt;/P&gt;&lt;P&gt;"Basis object dummy does not exist or is not active"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the same system, when I execute the function module SHDB_EXISTS_TABLE with I_SCHEMA_NAME = SYS and I_TABLE_NAME = DUMMY, I get a positive result. Inside, it counts the rows of the table to check whether it exists. So it must be active, otherwise it couldn't count the rows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any limitation that I can't use table DUMMY in ABAP Developer tools? &lt;/P&gt;&lt;P&gt;System is a HDB system with SAP_BASIS 751.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Josef&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 13:28:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-select-from-table-dummy/m-p/11577548#M1938554</guid>
      <dc:creator>former_member230520</dc:creator>
      <dc:date>2016-02-19T13:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot select from table dummy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-select-from-table-dummy/m-p/11577549#M1938555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Josef,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the ADT SQL console uses the OpenSQL connection which is linked to the "ABAP schema" on your database system (by default it is named "SAP&amp;lt;SYSID&amp;gt;"). Because of that table DUMMY is not found due to the assignment to schema SYS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Function SHDB_EXISTS_TABLE uses the ADBC interface which does a native SQL query on the system view TABLES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have a HANA DB user and the necessary privileges you could use the HANA SQL console for your requirement. For that you have to install the SAP HANA tools in your Eclipse environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Florian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 14:36:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-select-from-table-dummy/m-p/11577549#M1938555</guid>
      <dc:creator>pfefferf</dc:creator>
      <dc:date>2016-02-19T14:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot select from table dummy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-select-from-table-dummy/m-p/11577550#M1938556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Florian,&lt;/P&gt;&lt;P&gt;thank you for your quick answer. Does that mean I cannot use sys.dummy in CDS views at all?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Josef&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 14:40:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-select-from-table-dummy/m-p/11577550#M1938556</guid>
      <dc:creator>former_member230520</dc:creator>
      <dc:date>2016-02-19T14:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot select from table dummy</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-select-from-table-dummy/m-p/11577551#M1938557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Josef,&lt;/P&gt;&lt;P&gt;if you are only running on SAP HANA then can implement an ABAP CDS Table Function in SAP NetWeaver AS ABAP 7.51. In the SQLScript implementation you can access SYS.DUMMY and use the RAND() function. Otherwise, it is not possible.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 14:47:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cannot-select-from-table-dummy/m-p/11577551#M1938557</guid>
      <dc:creator>former_member205436</dc:creator>
      <dc:date>2016-02-19T14:47:58Z</dc:date>
    </item>
  </channel>
</rss>

