<?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: Connecting and Updating External Database from SAP in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/connecting-and-updating-external-database-from-sap/m-p/3758925#M904342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  run transaction DBCO ( manages DB connections ).&lt;/P&gt;&lt;P&gt;Fill fields:&lt;/P&gt;&lt;P&gt;- connection name&lt;/P&gt;&lt;P&gt;- connection type (see match code)&lt;/P&gt;&lt;P&gt;- DB user / password&lt;/P&gt;&lt;P&gt;- Connection string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should contact the DB administrator to have those informations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in your ABAP code, you can connect to the DB using instruction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;EXEC SQL.
  CONNECT TO &amp;lt;connection name&amp;gt;
ENDEXEC.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open a cursor for your select statement&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;EXEC SQL. 
  OPEN cursor1 FOR SELECT  ....
ENDEXEC.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get data using the cursor (and fill ABAP variables)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
  var1 TYPE ....
  var2 TYPE ...
 EXEC SQL. 
    FETCH NEXT cursor1 INTO :var1, :var2
  ENDEXEC.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press F1 on EXEC statement to get more detailed informations from ABAP online help&lt;/P&gt;&lt;P&gt;Please remember to reward points for useful answers.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Apr 2008 09:43:34 GMT</pubDate>
    <dc:creator>manuel_bassani</dc:creator>
    <dc:date>2008-04-28T09:43:34Z</dc:date>
    <item>
      <title>Connecting and Updating External Database from SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/connecting-and-updating-external-database-from-sap/m-p/3758922#M904339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can i connect SAP Database to External database?&lt;/P&gt;&lt;P&gt;How can i update external databas from SAP withouting using BI/BW, Workflow or Net Weaver?&lt;/P&gt;&lt;P&gt;If anyone know please let me inform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jahnavee Trivedi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Apr 2008 05:52:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/connecting-and-updating-external-database-from-sap/m-p/3758922#M904339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-27T05:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting and Updating External Database from SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/connecting-and-updating-external-database-from-sap/m-p/3758923#M904340</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;instead of using OpenSQL you can use Native SQL. Just look for Native SQL in SAP documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[url]http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3b8b358411d1829f0000e829fbfe/content.htm[url]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Apr 2008 08:45:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/connecting-and-updating-external-database-from-sap/m-p/3758923#M904340</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2008-04-27T08:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting and Updating External Database from SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/connecting-and-updating-external-database-from-sap/m-p/3758924#M904341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jahn,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if the external database is one that is supported by SAP you can use a technique called DB Multiconnect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Search the SAP documentation and notes for this term and you will find how to do it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham Robbo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Apr 2008 23:07:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/connecting-and-updating-external-database-from-sap/m-p/3758924#M904341</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2008-04-27T23:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Connecting and Updating External Database from SAP</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/connecting-and-updating-external-database-from-sap/m-p/3758925#M904342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  run transaction DBCO ( manages DB connections ).&lt;/P&gt;&lt;P&gt;Fill fields:&lt;/P&gt;&lt;P&gt;- connection name&lt;/P&gt;&lt;P&gt;- connection type (see match code)&lt;/P&gt;&lt;P&gt;- DB user / password&lt;/P&gt;&lt;P&gt;- Connection string&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should contact the DB administrator to have those informations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now in your ABAP code, you can connect to the DB using instruction&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;EXEC SQL.
  CONNECT TO &amp;lt;connection name&amp;gt;
ENDEXEC.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Open a cursor for your select statement&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;EXEC SQL. 
  OPEN cursor1 FOR SELECT  ....
ENDEXEC.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Get data using the cursor (and fill ABAP variables)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA:
  var1 TYPE ....
  var2 TYPE ...
 EXEC SQL. 
    FETCH NEXT cursor1 INTO :var1, :var2
  ENDEXEC.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Press F1 on EXEC statement to get more detailed informations from ABAP online help&lt;/P&gt;&lt;P&gt;Please remember to reward points for useful answers.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Manuel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Apr 2008 09:43:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/connecting-and-updating-external-database-from-sap/m-p/3758925#M904342</guid>
      <dc:creator>manuel_bassani</dc:creator>
      <dc:date>2008-04-28T09:43:34Z</dc:date>
    </item>
  </channel>
</rss>

