<?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: Using Open SQL (ABAP-SQL) with a DB-Link in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-open-sql-abap-sql-with-a-db-link/m-p/1050837#M89126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did all steps mentioned before but got an ORA-00947 error when performing the INSERT-statement. However further studies make me think that even if I would get this to work in Open SQL it will not solve the performance issues I'm experiencing, now. There seems to be a problem with the remote DB or DB-Link itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I will switch back to Native SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevertheless I thank you, Amit, for your great support!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ulrich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Dec 2005 14:51:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-12-08T14:51:04Z</dc:date>
    <item>
      <title>Using Open SQL (ABAP-SQL) with a DB-Link</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-open-sql-abap-sql-with-a-db-link/m-p/1050830#M89119</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;Has anybody made experience using Open SQL (ABAP) for writing data to a remote database with a DB-Link as described in SAP-note 25383 (Creating remote table in ABAP DD, then dropping table on SAP-DB and creating a synonym to DB-Link) ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm especially interested in using the 'INSERT dbtab FROM TABLE itab' construct on the remote DB. Anybody knows if this will work?  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ulrich Meier&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 07:57:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-open-sql-abap-sql-with-a-db-link/m-p/1050830#M89119</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-08T07:57:19Z</dc:date>
    </item>
    <item>
      <title>Re: Using Open SQL (ABAP-SQL) with a DB-Link</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-open-sql-abap-sql-with-a-db-link/m-p/1050831#M89120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ulrich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Open SQL&lt;/P&gt;&lt;P&gt;   will not work with the concept of DB Link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 08:30:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-open-sql-abap-sql-with-a-db-link/m-p/1050831#M89120</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-08T08:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using Open SQL (ABAP-SQL) with a DB-Link</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-open-sql-abap-sql-with-a-db-link/m-p/1050832#M89121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. sorry for the previous haste reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. i read the note number 25383&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. what i could find out that :&lt;/P&gt;&lt;P&gt;   we can do it using these steps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  a) make a DB Link&lt;/P&gt;&lt;P&gt;  b) Make a synonym attached to the remote table thru DB link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; [ we have had used DATABASE LINK in oracle   &lt;/P&gt;&lt;P&gt;  in our legacy systems and it works fantastic]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. But Who will do all these steps a, b?&lt;/P&gt;&lt;P&gt;   thru abap dictionary it is not directly possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. One has to open the Oracle database&lt;/P&gt;&lt;P&gt;   directly&lt;/P&gt;&lt;P&gt;  (thru SQL navigator, or SQL Plus)&lt;/P&gt;&lt;P&gt;   and execute the steps A, B.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. But it is not recommended.&lt;/P&gt;&lt;P&gt;  (Directly touching the database is not recommended&lt;/P&gt;&lt;P&gt;   by SAP.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7. Finally one can achieve what u required,&lt;/P&gt;&lt;P&gt;  but there are some constraints.&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Amit Mittal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 08:37:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-open-sql-abap-sql-with-a-db-link/m-p/1050832#M89121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-08T08:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using Open SQL (ABAP-SQL) with a DB-Link</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-open-sql-abap-sql-with-a-db-link/m-p/1050833#M89122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So SAP-Note 25383 is not correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 08:39:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-open-sql-abap-sql-with-a-db-link/m-p/1050833#M89122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-08T08:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using Open SQL (ABAP-SQL) with a DB-Link</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-open-sql-abap-sql-with-a-db-link/m-p/1050834#M89123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. i hope u have read my second reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. I cannot say that the note no. is wrong.&lt;/P&gt;&lt;P&gt;   It may be possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. But it is not at all advisable practically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. the following statments in the note &lt;/P&gt;&lt;P&gt;   are mysterious to me :&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;  Instead of the table, you now create a synonym under the table name  &lt;/P&gt;&lt;P&gt;                                                                     &lt;/P&gt;&lt;P&gt;used in the R/3 data dictionary for the remote table, thus:                                                                                &lt;/P&gt;&lt;P&gt;CREATE SYNONYM &amp;lt;table_name&amp;gt;                                     &lt;/P&gt;&lt;P&gt;     FOR [&amp;lt;user&amp;gt;.]&amp;lt;table_name&amp;gt;@&amp;lt;db_link&amp;gt;;                                                                                &lt;/P&gt;&lt;P&gt;This synonym enables you to make full use of the ABAP Open SQL       &lt;/P&gt;&lt;P&gt;language range when accessing the remote table.                      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. It tries to say that creating a synboym in database&lt;/P&gt;&lt;P&gt;  directly , can be used in open sql.&lt;/P&gt;&lt;P&gt;  But it does not have any reference in ABAP dictionary&lt;/P&gt;&lt;P&gt;  , then how can we use in open sql.&lt;/P&gt;&lt;P&gt; ( i have worked with synonym using it as a table name in legacy system,&lt;/P&gt;&lt;P&gt;   but in practical, in r/3 database,&lt;/P&gt;&lt;P&gt;  a synonum does not have any link&lt;/P&gt;&lt;P&gt;   with abap data dictionary.&lt;/P&gt;&lt;P&gt;  so at run time, if we write&lt;/P&gt;&lt;P&gt;  select * from TABLEXYx&lt;/P&gt;&lt;P&gt; (where tablexyx is the synonym)&lt;/P&gt;&lt;P&gt; then how will ABAP know, it is a table.&lt;/P&gt;&lt;P&gt; it willl give syntax error saying &lt;/P&gt;&lt;P&gt;that TABLEXYZ does not exist in Database dictionary)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. Native sql is another solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;6. Another solution is DBCON.&lt;/P&gt;&lt;P&gt;  (Secondar databse connection)&lt;/P&gt;&lt;P&gt;  for ur requirement.&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Amit Mittal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 08:44:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-open-sql-abap-sql-with-a-db-link/m-p/1050834#M89123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-08T08:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using Open SQL (ABAP-SQL) with a DB-Link</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-open-sql-abap-sql-with-a-db-link/m-p/1050835#M89124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the quote from SAP-note 25383:&lt;/P&gt;&lt;P&gt;&amp;lt;i&amp;gt;"...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A Database link can be created on the R/3 database by using the following Oracle command:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     CREATE PUBLIC DATABASE LINK &amp;lt;db_link&amp;gt;&lt;/P&gt;&lt;P&gt;     CONNECT TO &amp;lt;user&amp;gt; IDENTIFIED BY &amp;lt;password&amp;gt;&lt;/P&gt;&lt;P&gt;     USING '&amp;lt;connect_string&amp;gt;';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the &amp;lt;connect_string&amp;gt; refer to the Oracle documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are two possible alternatives for accessing a remote table from the R/3 System:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. With ABAP Open SQL&lt;/P&gt;&lt;P&gt;For this, the description of the remote table and its fields in the R/3 data dictionary is required. In the releases smaller than 3.x, you can create and activate a table description in the data dictionary without the table also having to be created on the R/3 database at the same time. However, as of Release 3.x, the table is implicitly created on the R/3 database during activation. In this case, the created table must be explicitly deleted again by using the database utility.&lt;/P&gt;&lt;P&gt;Instead of the table, you now create a synonym under the table name used in the R/3 data dictionary for the remote table, thus:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     CREATE SYNONYM &amp;lt;table_name&amp;gt;&lt;/P&gt;&lt;P&gt;     FOR [&amp;lt;user&amp;gt;.]&amp;lt;table_name&amp;gt;@&amp;lt;db_link&amp;gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This synonym enables you to make full use of the ABAP Open SQL language range when accessing the remote table.&lt;/P&gt;&lt;P&gt;..."&amp;lt;/i&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We already have a DB-Link in use but that uses only 'Native SQL' (also described in note 25383 (2nd possibility)). But due to performance issues I want to try the 'INSERT dbtab FROM TABLE itab' construct which is only available in 'Open SQL'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ulrich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 08:49:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-open-sql-abap-sql-with-a-db-link/m-p/1050835#M89124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-08T08:49:28Z</dc:date>
    </item>
    <item>
      <title>Re: Using Open SQL (ABAP-SQL) with a DB-Link</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-open-sql-abap-sql-with-a-db-link/m-p/1050836#M89125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. i understood the sap note.&lt;/P&gt;&lt;P&gt;  (if we do those 3-4 steps,&lt;/P&gt;&lt;P&gt;  we can 100% access the remote table&lt;/P&gt;&lt;P&gt;  via open SQL, just as U want to access&lt;/P&gt;&lt;P&gt;  using the INSERT statement)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. u said that u already have the db link&lt;/P&gt;&lt;P&gt;   created in sap r/3 database !!! &lt;/P&gt;&lt;P&gt;  (Good ! who created the link ?&lt;/P&gt;&lt;P&gt;   if u created then ok,&lt;/P&gt;&lt;P&gt;  if basis team created, then u may&lt;/P&gt;&lt;P&gt;   require their help again )&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. If yes, then first of all u need to &lt;/P&gt;&lt;P&gt;    create the same table (remote table which u want to&lt;/P&gt;&lt;P&gt;    use in ur sql)&lt;/P&gt;&lt;P&gt;   create the table with the same name, same fields,&lt;/P&gt;&lt;P&gt;  same field length in ur abap dictionary !.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. If that is created, let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;amit m.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Amit Mittal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Amit Mittal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 08:55:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-open-sql-abap-sql-with-a-db-link/m-p/1050836#M89125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-08T08:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: Using Open SQL (ABAP-SQL) with a DB-Link</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-open-sql-abap-sql-with-a-db-link/m-p/1050837#M89126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did all steps mentioned before but got an ORA-00947 error when performing the INSERT-statement. However further studies make me think that even if I would get this to work in Open SQL it will not solve the performance issues I'm experiencing, now. There seems to be a problem with the remote DB or DB-Link itself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I will switch back to Native SQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nevertheless I thank you, Amit, for your great support!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ulrich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Dec 2005 14:51:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-open-sql-abap-sql-with-a-db-link/m-p/1050837#M89126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-12-08T14:51:04Z</dc:date>
    </item>
  </channel>
</rss>

