<?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 Native SQL Error! in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-error/m-p/4706631#M1105806</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;I do have the following code:&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;        INSERT INTO  ath_empgroup&lt;/P&gt;&lt;P&gt;                     (employee_groupid,&lt;/P&gt;&lt;P&gt;                      name,&lt;/P&gt;&lt;P&gt;                      start_date,&lt;/P&gt;&lt;P&gt;                      end_date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             VALUES  (:it_zauthoria_bridge-auth_grp,&lt;/P&gt;&lt;P&gt;                      :it_zauthoria_bridge-auth_name,&lt;/P&gt;&lt;P&gt;                      :it_zauthoria_bridge-beg_date,&lt;/P&gt;&lt;P&gt;                      :it_zauthoria_bridge-end_date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But whenever I run the code I get the following runtime error saying "An SQL Error Occur When Executing Native SQL"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know what could be a possible problem? The it_zauthoria_bridge is an internal table that I use on my ABAP program and ath_empgroup is a table under SQL environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Val.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Nov 2008 21:41:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-05T21:41:36Z</dc:date>
    <item>
      <title>Native SQL Error!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-error/m-p/4706631#M1105806</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;I do have the following code:&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;        INSERT INTO  ath_empgroup&lt;/P&gt;&lt;P&gt;                     (employee_groupid,&lt;/P&gt;&lt;P&gt;                      name,&lt;/P&gt;&lt;P&gt;                      start_date,&lt;/P&gt;&lt;P&gt;                      end_date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             VALUES  (:it_zauthoria_bridge-auth_grp,&lt;/P&gt;&lt;P&gt;                      :it_zauthoria_bridge-auth_name,&lt;/P&gt;&lt;P&gt;                      :it_zauthoria_bridge-beg_date,&lt;/P&gt;&lt;P&gt;                      :it_zauthoria_bridge-end_date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But whenever I run the code I get the following runtime error saying "An SQL Error Occur When Executing Native SQL"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know what could be a possible problem? The it_zauthoria_bridge is an internal table that I use on my ABAP program and ath_empgroup is a table under SQL environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Val.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 21:41:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-error/m-p/4706631#M1105806</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-05T21:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL Error!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-error/m-p/4706632#M1105807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;a) What specific error message do you get?&lt;/P&gt;&lt;P&gt;b) why are you using native SQL for this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Nov 2008 21:48:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-error/m-p/4706632#M1105807</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-05T21:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL Error!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-error/m-p/4706633#M1105808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Look in the trace files for the work process and you should see the text of the error message returned by the DBMS.&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>Wed, 05 Nov 2008 23:45:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-error/m-p/4706633#M1105808</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2008-11-05T23:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL Error!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-error/m-p/4706634#M1105809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using native SQL because major part of my program is in ABAP and I need to store some data in a table that is in our repository system called Authoria. Also with native SQL I am able to have access to databases that are not in SAP environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have changed my code a little bit as I realized the date had some issues.. However, now I am getting another error 'ORA-00936 - Missing Expression'. My code now looks like the following:&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;        INSERT INTO  ath_empgroup&lt;/P&gt;&lt;P&gt;                     (employee_groupid,&lt;/P&gt;&lt;P&gt;                      name,&lt;/P&gt;&lt;P&gt;                      start_date,&lt;/P&gt;&lt;P&gt;                      end_date)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             VALUES  (:it_zauthoria_grp-auth_group,&lt;/P&gt;&lt;P&gt;                      :it_zauthoria_grp-auth_group,&lt;/P&gt;&lt;P&gt;                       to_date(:it_zauthoria_grp-  beg_date,'YYYYMMDD',)&lt;/P&gt;&lt;P&gt;                       to_date(:it_zauthoria_grp-end_date,'YYYYMMDD' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      ENDEXEC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Val.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 16:22:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-error/m-p/4706634#M1105809</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T16:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL Error!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-error/m-p/4706635#M1105810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &amp;gt;              VALUES  (:it_zauthoria_grp-auth_group,&lt;/P&gt;&lt;P&gt;&amp;gt;                       :it_zauthoria_grp-auth_group,&lt;/P&gt;&lt;P&gt;&amp;gt;                        to_date(:it_zauthoria_grp-  beg_date,'YYYYMMDD',)&lt;/P&gt;&lt;P&gt;&amp;gt;                        to_date(:it_zauthoria_grp-end_date,'YYYYMMDD' )&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt;       ENDEXEC.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Val.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The comma on the first TO_DATE line should be after the bracket, not before.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 17:04:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-error/m-p/4706635#M1105810</guid>
      <dc:creator>christine_evans</dc:creator>
      <dc:date>2008-11-11T17:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL Error!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-error/m-p/4706636#M1105811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Christine,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had tried that before but I got an error saying "Missing Comma".. but now it is fine after I changed to what it is now. If you look at the line above it is exactly the same as what is in the brackets.. so I guess it is supposed to be that way. But it could also be that I am missing another comma.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you dohave any other idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Val.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 17:23:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-error/m-p/4706636#M1105811</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T17:23:01Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL Error!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-error/m-p/4706637#M1105812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi Christine,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; I had tried that before but I got an error saying "Missing Comma".. but now it is fine after I changed to what it is now. If you look at the line above it is exactly the same as what is in the brackets.. so I guess it is supposed to be that way. But it could also be that I am missing another comma.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Let me know if you dohave any other idea.&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Thanks,&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Val.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;No, I think you do need to move the comma.  And you'll also need to add another closing bracket at the end to close the 'VALUES' open bracket.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 17:32:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-error/m-p/4706637#M1105812</guid>
      <dc:creator>christine_evans</dc:creator>
      <dc:date>2008-11-11T17:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL Error!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-error/m-p/4706638#M1105813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Start by getting rid of the space in :it_zauthoria_grp- beg_date&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, 11 Nov 2008 17:37:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-error/m-p/4706638#M1105813</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T17:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Native SQL Error!</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-error/m-p/4706639#M1105814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Christine!! It worked you earned the maximum points!! I dont know how I missed that!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 17:40:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/native-sql-error/m-p/4706639#M1105814</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T17:40:39Z</dc:date>
    </item>
  </channel>
</rss>

