<?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: Native SQL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/3362195#M806755</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;check this links, hope these would help you to solve your problem&lt;/P&gt;&lt;P&gt;&lt;A href="http://oracle.ittoolbox.com/groups/technical-functional/oracle-sql-l/ora00904-global-invalid-identifier-whats-the-different-between-sqlplus-9201-and-9206-1611178" target="test_blank"&gt;http://oracle.ittoolbox.com/groups/technical-functional/oracle-sql-l/ora00904-global-invalid-identifier-whats-the-different-between-sqlplus-9201-and-9206-1611178&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://oracle.ittoolbox.com/groups/technical-functional/oracle-db-l/ora00904-invalid-identifier-when-using-varray-column-951415" target="test_blank"&gt;http://oracle.ittoolbox.com/groups/technical-functional/oracle-db-l/ora00904-invalid-identifier-when-using-varray-column-951415&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>Tue, 29 Jan 2008 13:47:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-29T13:47:03Z</dc:date>
    <item>
      <title>Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/3362194#M806754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All, &lt;/P&gt;&lt;P&gt;Im trying to get a feild called 'DO' from table 'partinfo' from native SQL . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EXEC SQL . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT LOTID, EQPID, DO &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INTO :ITAB1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FROM partinfo &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE LOTID = '12345' &lt;/P&gt;&lt;P&gt;ENDEXEC. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But SAP is throwing this error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Database error text........: "ORA-00904: "DO": invalid identifier" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried without 'Do', It is working Fine. &lt;/P&gt;&lt;P&gt;I cant change the Table or its feild, Bcos other teams also using this table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Chakri.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 13:27:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/3362194#M806754</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T13:27:06Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/3362195#M806755</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;check this links, hope these would help you to solve your problem&lt;/P&gt;&lt;P&gt;&lt;A href="http://oracle.ittoolbox.com/groups/technical-functional/oracle-sql-l/ora00904-global-invalid-identifier-whats-the-different-between-sqlplus-9201-and-9206-1611178" target="test_blank"&gt;http://oracle.ittoolbox.com/groups/technical-functional/oracle-sql-l/ora00904-global-invalid-identifier-whats-the-different-between-sqlplus-9201-and-9206-1611178&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://oracle.ittoolbox.com/groups/technical-functional/oracle-db-l/ora00904-invalid-identifier-when-using-varray-column-951415" target="test_blank"&gt;http://oracle.ittoolbox.com/groups/technical-functional/oracle-db-l/ora00904-invalid-identifier-when-using-varray-column-951415&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>Tue, 29 Jan 2008 13:47:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/3362195#M806755</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T13:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/3362196#M806756</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;Hope it will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&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;Edited by: Alvaro Tejada Galindo on Jan 29, 2008 12:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 13:57:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/3362196#M806756</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T13:57:35Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/3362197#M806757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maby D0 instead of DO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 14:44:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/3362197#M806757</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T14:44:40Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/3362198#M806758</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;Try [DO] when selecting it for example: SELECT [DO] FROM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Chaitanya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Jan 2008 07:19:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql/m-p/3362198#M806758</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-30T07:19:52Z</dc:date>
    </item>
  </channel>
</rss>

