<?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: ST05 Enter SQL Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05-enter-sql-statement/m-p/6974650#M1491771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on MSSQL this would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;from "MARA"&lt;/P&gt;&lt;P&gt;where "MANDT" = @P000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, that this doesn't work in ST05 on MSSQL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL error 137: Must declare the scalar variable "@P000".&lt;/P&gt;&lt;P&gt;Message no. SMMSS_ANALYZE000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is the ST05 issues in MSSQL i mentioned. In ORACLE&lt;/P&gt;&lt;P&gt;you are right... it works like you said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hermann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 May 2010 11:06:53 GMT</pubDate>
    <dc:creator>HermannGahm</dc:creator>
    <dc:date>2010-05-27T11:06:53Z</dc:date>
    <item>
      <title>ST05 Enter SQL Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05-enter-sql-statement/m-p/6974647#M1491768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to use : enter SQL statement at ST05 to get cost of SELECT QUERY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each time I try, get following error message:&lt;/P&gt;&lt;P&gt;SQL error 102: Incorrect syntax near ':'.&lt;/P&gt;&lt;P&gt;Message no. SMMSS_ANALYZE000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even for simple SELECT QUERY:&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;from mara&lt;/P&gt;&lt;P&gt;where mandt = :a1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get the same error message. Please help me get solution for it as I searched SAP NOTE and could not find anything related.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Following are the details for our database:&lt;/P&gt;&lt;P&gt;Database system: MSSQL&lt;/P&gt;&lt;P&gt;Release: 9.00.4035&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, 25 May 2010 14:54:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05-enter-sql-statement/m-p/6974647#M1491768</guid>
      <dc:creator>pre</dc:creator>
      <dc:date>2010-05-25T14:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: ST05 Enter SQL Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05-enter-sql-statement/m-p/6974648#M1491769</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;&amp;gt; Each time I try, get following error message:&lt;/P&gt;&lt;P&gt;&amp;gt; SQL error 102: Incorrect syntax near ':'.&lt;/P&gt;&lt;P&gt;&amp;gt; Message no. SMMSS_ANALYZE000&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Even for simple SELECT QUERY:&lt;/P&gt;&lt;P&gt;&amp;gt; SELECT *&lt;/P&gt;&lt;P&gt;&amp;gt; from mara&lt;/P&gt;&lt;P&gt;&amp;gt; where mandt = :a1&lt;/P&gt;&lt;P&gt;&amp;gt; Following are the details for our database:&lt;/P&gt;&lt;P&gt;&amp;gt; Database system: MSSQL&lt;/P&gt;&lt;P&gt;&amp;gt; Release: 9.00.4035&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you must not use native ORACLE syntax on MSSQL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Furthermore the 'Enter SQL Statement' in MSSQL has some issues...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;from MARA&lt;/P&gt;&lt;P&gt;where MANDT = '000'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(uppercase, ...)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Workarround:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Simulate your SQL with SE16 and record a regular ST05 trace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hermann&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Hermann Gahm on May 25, 2010 5:03 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 May 2010 15:00:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05-enter-sql-statement/m-p/6974648#M1491769</guid>
      <dc:creator>HermannGahm</dc:creator>
      <dc:date>2010-05-25T15:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: ST05 Enter SQL Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05-enter-sql-statement/m-p/6974649#M1491770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you do an SQL trace, and then explain a statement, you'll see precisely the form to enter an SQL statement in.&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT *
from "MARA"
where "MANDT" = :a1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;If it helps you feel better, I only figured this out a few weeks ago - and I've been doing ABAP since 1997!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 10:53:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05-enter-sql-statement/m-p/6974649#M1491770</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-05-27T10:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: ST05 Enter SQL Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05-enter-sql-statement/m-p/6974650#M1491771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;on MSSQL this would be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT *&lt;/P&gt;&lt;P&gt;from "MARA"&lt;/P&gt;&lt;P&gt;where "MANDT" = @P000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is, that this doesn't work in ST05 on MSSQL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SQL error 137: Must declare the scalar variable "@P000".&lt;/P&gt;&lt;P&gt;Message no. SMMSS_ANALYZE000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is the ST05 issues in MSSQL i mentioned. In ORACLE&lt;/P&gt;&lt;P&gt;you are right... it works like you said.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hermann&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 11:06:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05-enter-sql-statement/m-p/6974650#M1491771</guid>
      <dc:creator>HermannGahm</dc:creator>
      <dc:date>2010-05-27T11:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: ST05 Enter SQL Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05-enter-sql-statement/m-p/6974651#M1491772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good point, well presented - I missed the MSSQL bit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 12:16:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05-enter-sql-statement/m-p/6974651#M1491772</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2010-05-27T12:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: ST05 Enter SQL Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/st05-enter-sql-statement/m-p/6974652#M1491773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the take home message of this thread:&lt;/P&gt;&lt;P&gt;Workarround:&lt;/P&gt;&lt;P&gt;Simulate your SQL with SE16 and record a regular ST05 trace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For simple statements you should use the SE16 (table data display) and trace it in parallel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This can also be useful when you analyse an SQL trace. If a problem can not be explained at all., run a single selection for a test, maybe it behaves quite different.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Siegfried&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 May 2010 12:43:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/st05-enter-sql-statement/m-p/6974652#M1491773</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-05-27T12:43:09Z</dc:date>
    </item>
  </channel>
</rss>

