<?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: Testing SQL Queries in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/testing-sql-queries/m-p/6364553#M1400950</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know, there is no simple and quick way to type in arbitrary SQL and get a display (preferably ALV) of the results. I'd be interested to learn otherwise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A kludge that I have used is to go to transaction SE30 (ABAP Runtime Analysis) and hit button "Tips &amp;amp; Tricks" (at top left). In the SQL Interface section (first item in left-hand navigation tree) you can enter any ABAP Open SQL query (or modify the predefined ones) in the two windows that are displayed side by side. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These get executed by hitting "Measure Runtime". In order to see the selection results, you have to stop in the debugger, which you achieve simply by putting &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;BREAK &amp;lt;user&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; statements into the query.  In fact, you may put in any ABAP coding including data declarations. The system generates a report to run the fragment inside a form routine. The debugger will stop in the generated coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Sebastian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Of course, no one should have authority to do this on anything but a development system.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Nov 2009 17:52:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-17T17:52:55Z</dc:date>
    <item>
      <title>Testing SQL Queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/testing-sql-queries/m-p/6364550#M1400947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi gurus,&lt;/P&gt;&lt;P&gt;All i want to know that if is there any transaction for testing and getting results of SQL queries like phpmyadmin's SQL running area.&lt;/P&gt;&lt;P&gt;Thx,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 12:33:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/testing-sql-queries/m-p/6364550#M1400947</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-17T12:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Testing SQL Queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/testing-sql-queries/m-p/6364551#M1400948</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;As of my knowledge we can use SM50 to see the running program name and retrieving table name..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nandha&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 12:40:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/testing-sql-queries/m-p/6364551#M1400948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-17T12:40:48Z</dc:date>
    </item>
    <item>
      <title>Re: Testing SQL Queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/testing-sql-queries/m-p/6364552#M1400949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can accomplish this by creating the proper INFOSETs and afterwards executing the query on them, using transactions SQ01 and SQ02, respectively.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not experienced with this, but INFOSETs are like a projection of (a) database table(s), let's say it is somehow similar to a View. You access SQ02, define the data you are going to work with, and then test the query you will execute through SQ01.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Avraham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 13:00:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/testing-sql-queries/m-p/6364552#M1400949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-17T13:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: Testing SQL Queries</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/testing-sql-queries/m-p/6364553#M1400950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know, there is no simple and quick way to type in arbitrary SQL and get a display (preferably ALV) of the results. I'd be interested to learn otherwise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A kludge that I have used is to go to transaction SE30 (ABAP Runtime Analysis) and hit button "Tips &amp;amp; Tricks" (at top left). In the SQL Interface section (first item in left-hand navigation tree) you can enter any ABAP Open SQL query (or modify the predefined ones) in the two windows that are displayed side by side. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These get executed by hitting "Measure Runtime". In order to see the selection results, you have to stop in the debugger, which you achieve simply by putting &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;BREAK &amp;lt;user&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; statements into the query.  In fact, you may put in any ABAP coding including data declarations. The system generates a report to run the fragment inside a form routine. The debugger will stop in the generated coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Sebastian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: Of course, no one should have authority to do this on anything but a development system.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Nov 2009 17:52:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/testing-sql-queries/m-p/6364553#M1400950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-17T17:52:55Z</dc:date>
    </item>
  </channel>
</rss>

