<?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 native sql in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-native-sql/m-p/2881730#M676802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://dev.mysql.com/doc/maxdb/en/30/5ada6e596211d4aa83006094b92fad/frameset.htm" target="test_blank"&gt;http://dev.mysql.com/doc/maxdb/en/30/5ada6e596211d4aa83006094b92fad/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Sep 2007 12:49:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-24T12:49:07Z</dc:date>
    <item>
      <title>Using native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-native-sql/m-p/2881726#M676798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a program, which will using native to query data. The following is db connection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   EXEC SQL.&lt;/P&gt;&lt;P&gt;     connect to :lv_qtn&lt;/P&gt;&lt;P&gt;   ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   EXEC SQL.&lt;/P&gt;&lt;P&gt;     SET CONNECTION :lv_qtn&lt;/P&gt;&lt;P&gt;   ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can i locate the database structure in sap, like using se11. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2007 12:05:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-native-sql/m-p/2881726#M676798</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-24T12:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Using native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-native-sql/m-p/2881727#M676799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SE11 is for the ABAP Data Dictionary.. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2007 12:08:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-native-sql/m-p/2881727#M676799</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-24T12:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: Using native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-native-sql/m-p/2881728#M676800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So i would like to know how to using sap to query native database. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2007 12:11:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-native-sql/m-p/2881728#M676800</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-24T12:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Using native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-native-sql/m-p/2881729#M676801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;see this and do accordingly&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Native SQL statements define an area in an ABAP program in which one or more Native SQL statements are to be carried out. The area between EXEC and ENDEXEC is not completely checked by the syntax check. The statements entered there are passed to the Native SQL interface and processed there as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Almost all SQL statements that are valid for the addressed database system can be included between EXEC and ENDEXEC, in particular the DDL statements. These SQL statements are passed from the Native SQL interface to the database system largely unchanged. The syntax rules are specified by the database system, in particular the case sensitivity rules for database objects. If the syntax allows a separator character between individual statements, you can include several Native SQL statements between EXEC and ENDEXEC. Generally, the semicolon (&lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt; is used as the separator character. &lt;/P&gt;&lt;P&gt;You can also include SAP-specific Native SQL language elements between EXEC and ENDEXEC. These statements are not passed directly from the Native SQL interface to the database, but are converted appropriately. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All Native SQL statements bypass SAP buffering.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ENDEXEC statement sets sy-dbcnt to the number of table rows processed in the last Native SQL statement. After implicit cursor processing with PERFORMING, sy-dbcnt contains the total number of lines read. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Programs with Native SQL statements are generally dependent on the database system used, so that they cannot be executed in all ABAP systems. This is especially true for the examples in this section, which was written for Informix database systems. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;Inserting two rows in the database table SCARR. If neither of these rows exists, sy-subrc is set to 0 by ENDEXEC and sy-dbcnt to 1. Otherwise, an exception is raised and handled. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: exc_ref    TYPE REF TO cx_sy_native_sql_error, &lt;/P&gt;&lt;P&gt;      error_text TYPE string. &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;      INSERT INTO scarr &lt;/P&gt;&lt;P&gt;                  (MANDT, CARRID, CARRNAME, CURRCODE, URL) &lt;/P&gt;&lt;P&gt;        VALUES ('000', 'FF', 'Funny Flyers', 'EUR', &lt;/P&gt;&lt;P&gt;                'http://www.ff.com'); &lt;/P&gt;&lt;P&gt;      INSERT INTO scarr &lt;/P&gt;&lt;P&gt;                 (MANDT, CARRID, CARRNAME, CURRCODE, URL) &lt;/P&gt;&lt;P&gt;        VALUES ('000', 'EF', 'Easy Flyers', 'EUR', &lt;/P&gt;&lt;P&gt;                'http://www.ef.com'); &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 'I'. &lt;/P&gt;&lt;P&gt;ENDTRY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2007 12:18:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-native-sql/m-p/2881729#M676801</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-24T12:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Using native sql</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-native-sql/m-p/2881730#M676802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this link&lt;/P&gt;&lt;P&gt;&lt;A href="http://dev.mysql.com/doc/maxdb/en/30/5ada6e596211d4aa83006094b92fad/frameset.htm" target="test_blank"&gt;http://dev.mysql.com/doc/maxdb/en/30/5ada6e596211d4aa83006094b92fad/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Sep 2007 12:49:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-native-sql/m-p/2881730#M676802</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-24T12:49:07Z</dc:date>
    </item>
  </channel>
</rss>

