<?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: external  oracle connection in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-oracle-connection/m-p/8657099#M1667093</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hi ahmed Mohamed lame,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DBCO you can use openSQL. Create an synonyms for your table TRANS called ZTRANS in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the table ZTRANS in SE11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see link for synonyms: [CREATE SYNONYM|http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_7001.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: t_ztrans type STANDARD TABLE OF ztrans.

PARAMETERS: p_con TYPE dbcon-con_name OBLIGATORY DEFAULT 'ATTEND'.

TRY .
    SELECT *
      INTO CORRESPONDING FIELDS OF TABLE t_ztrans
      FROM ZTRANS CONNECTION (p_con).
  CATCH cx_root.
*Error
    MESSAGE e208(00) WITH p_con.
ENDTRY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bruno Xavier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Mar 2012 21:34:58 GMT</pubDate>
    <dc:creator>brunobex</dc:creator>
    <dc:date>2012-03-06T21:34:58Z</dc:date>
    <item>
      <title>external  oracle connection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-oracle-connection/m-p/8657094#M1667088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear all my friends &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have create a connection to an external oracle database using transaction DBCO and it is successfully created and tested.&lt;/P&gt;&lt;P&gt;i do the connection in dbco using the flowing parameter :&lt;/P&gt;&lt;P&gt;DB Connection : ATTEND&lt;/P&gt;&lt;P&gt;DBMS                :ORA&lt;/P&gt;&lt;P&gt;Conn. info         :ATTEND.WORLD&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i write the flowing native code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;    EXEC SQL .&lt;/P&gt;&lt;P&gt;        connect to 'ATTEND'&lt;/P&gt;&lt;P&gt;    ENDEXEC.&lt;/P&gt;&lt;P&gt;CATCH cx_sy_native_sql_error INTO exc_ref.&lt;/P&gt;&lt;P&gt;      error_text = exc_ref-&amp;gt;get_text( ).&lt;/P&gt;&lt;P&gt;      MESSAGE error_text TYPE 'E'.&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRY.&lt;/P&gt;&lt;P&gt;    EXEC SQL PERFORMING append_wa.&lt;/P&gt;&lt;P&gt;        SELECT&lt;/P&gt;&lt;P&gt;        USERID,&lt;/P&gt;&lt;P&gt;        CARD&lt;/P&gt;&lt;P&gt;        FROM  TRANS&lt;/P&gt;&lt;P&gt;        INTO   :wa_jobs&lt;/P&gt;&lt;P&gt;    ENDEXEC.&lt;/P&gt;&lt;P&gt;CATCH cx_sy_native_sql_error INTO exc_ref.&lt;/P&gt;&lt;P&gt;      error_text = exc_ref-&amp;gt;get_text( ).&lt;/P&gt;&lt;P&gt;      MESSAGE error_text TYPE 'E'.&lt;/P&gt;&lt;P&gt;ENDTRY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it pass the connection successfully but it raise error of:  The table or view name used does not&lt;/P&gt;&lt;P&gt; exist in the database.&lt;/P&gt;&lt;P&gt; The error occurred in the current database connection "ATTEND".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and iam sure that the database is connected and the view name is correct .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please what should i do. or please modify the code if i miss something .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 21:50:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-oracle-connection/m-p/8657094#M1667088</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-05T21:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: external  oracle connection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-oracle-connection/m-p/8657095#M1667089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ahmed Mohamed lamey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please do a test to check their connection created in DBCO.  Run program &lt;STRONG&gt;ADBC_DEMO&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bruno Xavier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2012 23:33:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-oracle-connection/m-p/8657095#M1667089</guid>
      <dc:creator>brunobex</dc:creator>
      <dc:date>2012-03-05T23:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: external  oracle connection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-oracle-connection/m-p/8657096#M1667090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I test it using ( ADBC_DEMO) and it run successfully.&lt;/P&gt;&lt;P&gt;it open connection and create table and fetch data from it normal successfully run .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 07:20:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-oracle-connection/m-p/8657096#M1667090</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-06T07:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: external  oracle connection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-oracle-connection/m-p/8657097#M1667091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ahmed Mohamed lame,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ok connection is perfect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please make sure you created a table with the same name on SE11 with the same field names. This table created in SE11 will always be empty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you do not want to use the same field names, you can use with (select *).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There may be other ways by DBCO but I do not know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bruno Xavier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 13:02:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-oracle-connection/m-p/8657097#M1667091</guid>
      <dc:creator>brunobex</dc:creator>
      <dc:date>2012-03-06T13:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: external  oracle connection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-oracle-connection/m-p/8657098#M1667092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear Bruno Xavier&lt;/P&gt;&lt;P&gt;i read data from oracle view and i create a table in se11 similar to the view in the oracle and i insert one row on it  .&lt;/P&gt;&lt;P&gt;when i  hash the code of  "connect to 'ATTEND' " it get values from the SAP database when i run without hash the code it return that :The table or view name used does not&lt;/P&gt;&lt;P&gt;exist in the database.&lt;/P&gt;&lt;P&gt;The error occurred in the current database connection "ATTEND".&lt;/P&gt;&lt;P&gt; i also , do the steps in the flowing link : &lt;A href="http://www.mattbartlett.co.uk/connecting-sap-on-microsoft-sql-to-an-external-oracle-db/" target="test_blank"&gt;http://www.mattbartlett.co.uk/connecting-sap-on-microsoft-sql-to-an-external-oracle-db/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and use the code sample in the flowing link with modification in select statement : &lt;A href="http://www.mattbartlett.co.uk/downloads/ABAP-Sample-ZMSSQLDEMO.txt" target="test_blank"&gt;http://www.mattbartlett.co.uk/downloads/ABAP-Sample-ZMSSQLDEMO.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me in this problem .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 20:46:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-oracle-connection/m-p/8657098#M1667092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-06T20:46:59Z</dc:date>
    </item>
    <item>
      <title>Re: external  oracle connection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-oracle-connection/m-p/8657099#M1667093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hi ahmed Mohamed lame,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DBCO you can use openSQL. Create an synonyms for your table TRANS called ZTRANS in the database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the table ZTRANS in SE11.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please see link for synonyms: [CREATE SYNONYM|http://docs.oracle.com/cd/B19306_01/server.102/b14200/statements_7001.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: t_ztrans type STANDARD TABLE OF ztrans.

PARAMETERS: p_con TYPE dbcon-con_name OBLIGATORY DEFAULT 'ATTEND'.

TRY .
    SELECT *
      INTO CORRESPONDING FIELDS OF TABLE t_ztrans
      FROM ZTRANS CONNECTION (p_con).
  CATCH cx_root.
*Error
    MESSAGE e208(00) WITH p_con.
ENDTRY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Bruno Xavier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 21:34:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-oracle-connection/m-p/8657099#M1667093</guid>
      <dc:creator>brunobex</dc:creator>
      <dc:date>2012-03-06T21:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: external  oracle connection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-oracle-connection/m-p/8657100#M1667094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear Bruno Xavier &lt;/P&gt;&lt;P&gt;i do the connection and test it sucessfuly connected using ADBC_DEMO program .&lt;/P&gt;&lt;P&gt;also i create the same table with the same name in the data base oracle and the same in se11 transaction .&lt;/P&gt;&lt;P&gt;and i mack acheck for the connection using comand prombet and it sucessfuly connected, and i coby and bast your code &lt;/P&gt;&lt;P&gt;it return the same error as flowing  : A table is referred to in an SAP Open SQL statement that either does not&lt;/P&gt;&lt;P&gt;  exist or is unknown to the ABAP Data Dictionary.&lt;/P&gt;&lt;P&gt; The table involved is "ZJOBS " or another table accessed in the statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 11:16:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-oracle-connection/m-p/8657100#M1667094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-07T11:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: external  oracle connection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-oracle-connection/m-p/8657101#M1667095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dear Bruno Xavier &lt;/P&gt;&lt;P&gt;i do the connection and test it sucessfuly connected using ADBC_DEMO program .&lt;/P&gt;&lt;P&gt;also i create the same table with the same name in the data base oracle and the same in se11 transaction .&lt;/P&gt;&lt;P&gt;and i mack acheck for the connection using comand prombet and it sucessfuly connected, and i coby and bast your code &lt;/P&gt;&lt;P&gt;it return the same error as flowing  : A table is referred to in an SAP Open SQL statement that either does not&lt;/P&gt;&lt;P&gt;  exist or is unknown to the ABAP Data Dictionary.&lt;/P&gt;&lt;P&gt; The table involved is "ZJOBS " or another table accessed in the statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 11:16:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-oracle-connection/m-p/8657101#M1667095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-07T11:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: external  oracle connection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-oracle-connection/m-p/8657102#M1667096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ahmed,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought it was your table TRANS as the code I posted earlier.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TRY.
EXEC SQL PERFORMING append_wa.
SELECT
USERID,
CARD
FROM TRANS
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You've created a synonym?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Bruno Xavier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 13:16:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-oracle-connection/m-p/8657102#M1667096</guid>
      <dc:creator>brunobex</dc:creator>
      <dc:date>2012-03-07T13:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: external  oracle connection</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/external-oracle-connection/m-p/8657103#M1667097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks &lt;/P&gt;&lt;P&gt;problem solved&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2012 19:00:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/external-oracle-connection/m-p/8657103#M1667097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-03-07T19:00:17Z</dc:date>
    </item>
  </channel>
</rss>

