<?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 SQL queries against a database view from an external system? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-queries-against-a-database-view-from-an-external-system/m-p/5802155#M1311882</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 have a question about Database views in se11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to create a database view and that do SQL queries against this  view from an&lt;/P&gt;&lt;P&gt;external system, Not a SAP system?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, I need you help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Annika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Jul 2009 11:29:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-03T11:29:19Z</dc:date>
    <item>
      <title>SQL queries against a database view from an external system?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-queries-against-a-database-view-from-an-external-system/m-p/5802155#M1311882</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 have a question about Database views in se11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to create a database view and that do SQL queries against this  view from an&lt;/P&gt;&lt;P&gt;external system, Not a SAP system?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please, I need you help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Annika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 11:29:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-queries-against-a-database-view-from-an-external-system/m-p/5802155#M1311882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-03T11:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: SQL queries against a database view from an external system?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-queries-against-a-database-view-from-an-external-system/m-p/5802156#M1311883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I dont think its possible. Because Views doesn't have relation to data base. When you execute the view it created the inner join on view tables in backend and retrieves the data. But SQL query directly interacts with data base.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Workaround could be create RFC function module. Ask the 3rd party to call SAP FM.&lt;/STRONG&gt; In this FM fetch the data from view and send it back to them through tables parameter. &lt;STRONG&gt;But make sure that volume of data is not huge as it may cause performance&lt;/STRONG&gt; &lt;STRONG&gt;issues.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jul 2009 12:43:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-queries-against-a-database-view-from-an-external-system/m-p/5802156#M1311883</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2009-07-03T12:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: SQL queries against a database view from an external system?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sql-queries-against-a-database-view-from-an-external-system/m-p/5802157#M1311884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Annika,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is possible , yes... but depends on your database systems in the SAP source DB and the external DB &lt;/P&gt;&lt;P&gt;(easier if they are the same,  i.e. both ORACLE) - check out with your BASIS team (they have to create something like a "database link" in the external DB system  that you can use to access the tables in the SAP source).&lt;/P&gt;&lt;P&gt;In the external DB you sure can create a view on these "remote" tables.&lt;/P&gt;&lt;P&gt;We used this to pull data form SAP DB  to another DB system (both ORACLE based).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this is NOT supported by SAP , so be carefull. Below is the restriction for ORACLE (as well for other DB systems )&lt;/P&gt;&lt;P&gt;see SAP note 581312 "Oracle database: licensing restrictions"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

...

As of point 3, it follows that direct access to the Oracle database is
only allowed for tools from the areas of system administration and
monitoring. If other software is used, the following actions, among
other things, are therefore forbidden at database level:
...

* Querying/changing/creating data in the database

* Using ODBC or other SAP external access methods

....

This means that additional application software is only allowed if this
accesses the database through SAP interfaces (for example, RFC, SAP J2EE
or BAPI).&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I would say if you KNOW the tables involved (using valid WHERE conditions and joins ) &lt;/P&gt;&lt;P&gt;and don't start queries from hell (ad-hoc type) wich can bring down your SAP system performance &lt;/P&gt;&lt;P&gt;you can try it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But be warned...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;good luck...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2009 07:14:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sql-queries-against-a-database-view-from-an-external-system/m-p/5802157#M1311884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-06T07:14:59Z</dc:date>
    </item>
  </channel>
</rss>

