<?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>Question Re: ATC Check error - The SELECT command is executed on the database (SELECT 694) in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/atc-check-error-the-select-command-is-executed-on-the-database-select-694/qaa-p/12777523#M4797134</link>
    <description>&lt;P&gt;I'm using SAP standard ATC checks, without any variants!! &lt;/P&gt;&lt;P&gt;Does those mean, SAP doesn't want this operation to be performed in such a way.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2023 13:28:24 GMT</pubDate>
    <dc:creator>former_member839746</dc:creator>
    <dc:date>2023-07-13T13:28:24Z</dc:date>
    <item>
      <title>ATC Check error - The SELECT command is executed on the database (SELECT 694)</title>
      <link>https://community.sap.com/t5/technology-q-a/atc-check-error-the-select-command-is-executed-on-the-database-select-694/qaq-p/12777520</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
  &lt;P&gt;I wrote a select statement over internal table, and when performed the ATC check, I got the error as 'The SELECT command is executed on the database.'(SELECT 694). Any inputs on why this error is coming up?&lt;/P&gt;
  &lt;P&gt;No pragma to suppress the error. &lt;/P&gt;
  &lt;P&gt;Following is the code that was written:&lt;/P&gt;
  &lt;P&gt;select a, count ( a )&lt;/P&gt;
  &lt;P&gt; as lv_count&lt;/P&gt;
  &lt;P&gt;from @lt_internaltable as lt&lt;/P&gt;
  &lt;P&gt;group by a&lt;/P&gt;
  &lt;P&gt;into table @data(lt_Tab2).&lt;/P&gt;
  &lt;P&gt;Thanks and Regards,&lt;/P&gt;
  &lt;P&gt;Naga&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 12:53:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/atc-check-error-the-select-command-is-executed-on-the-database-select-694/qaq-p/12777520</guid>
      <dc:creator>former_member839746</dc:creator>
      <dc:date>2023-07-13T12:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: ATC Check error - The SELECT command is executed on the database (SELECT 694)</title>
      <link>https://community.sap.com/t5/technology-q-a/atc-check-error-the-select-command-is-executed-on-the-database-select-694/qaa-p/12777521#M4797132</link>
      <description>&lt;P&gt;you can loop on internal table and then increment the lv_value on each iteration and fill  other details as per further requirement in lt_tab2 internal table.&lt;/P&gt;&lt;P&gt;or put a select condition on DB table instead of internal table.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 13:08:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/atc-check-error-the-select-command-is-executed-on-the-database-select-694/qaa-p/12777521#M4797132</guid>
      <dc:creator>shantraj6</dc:creator>
      <dc:date>2023-07-13T13:08:49Z</dc:date>
    </item>
    <item>
      <title>Re: ATC Check error - The SELECT command is executed on the database (SELECT 694)</title>
      <link>https://community.sap.com/t5/technology-q-a/atc-check-error-the-select-command-is-executed-on-the-database-select-694/qaa-p/12777522#M4797133</link>
      <description>&lt;P&gt;Hi. &lt;/P&gt;&lt;P&gt;Isn't that the desired behavior? You run a Select on an internal table. This is pushes to the database and executed with database Operations. &lt;/P&gt;&lt;P&gt;The question is: why is that an ATC error? Doesn't want your Company those means to be used? &lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 13:26:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/atc-check-error-the-select-command-is-executed-on-the-database-select-694/qaa-p/12777522#M4797133</guid>
      <dc:creator>BiberM</dc:creator>
      <dc:date>2023-07-13T13:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: ATC Check error - The SELECT command is executed on the database (SELECT 694)</title>
      <link>https://community.sap.com/t5/technology-q-a/atc-check-error-the-select-command-is-executed-on-the-database-select-694/qaa-p/12777523#M4797134</link>
      <description>&lt;P&gt;I'm using SAP standard ATC checks, without any variants!! &lt;/P&gt;&lt;P&gt;Does those mean, SAP doesn't want this operation to be performed in such a way.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 13:28:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/atc-check-error-the-select-command-is-executed-on-the-database-select-694/qaa-p/12777523#M4797134</guid>
      <dc:creator>former_member839746</dc:creator>
      <dc:date>2023-07-13T13:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: ATC Check error - The SELECT command is executed on the database (SELECT 694)</title>
      <link>https://community.sap.com/t5/technology-q-a/atc-check-error-the-select-command-is-executed-on-the-database-select-694/qaa-p/12777524#M4797135</link>
      <description>&lt;P&gt;The message is a syntax warning which is independent from ATC. ATC displays syntax warnings. When you deal with internal data which is on the application server, it is probably better not to push it in the database first and then process it there. This is what's happening here. There are aggregation techniques in ABAP that can be used, e.g. LOOP AT ... GROUP BY..., SORT, ...&lt;BR /&gt;You have to decide whether you want to save development time and leave it like it is (then use the pragma ##ITAB_DB_SELECT or an ATC exemption) or rethink the code which may take some time. But maybe it is not critical at all for performance because it is executed only once.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 09:47:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/atc-check-error-the-select-command-is-executed-on-the-database-select-694/qaa-p/12777524#M4797135</guid>
      <dc:creator>axel_jebens</dc:creator>
      <dc:date>2023-07-14T09:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: ATC Check error - The SELECT command is executed on the database (SELECT 694)</title>
      <link>https://community.sap.com/t5/technology-q-a/atc-check-error-the-select-command-is-executed-on-the-database-select-694/qaa-p/12777525#M4797136</link>
      <description>&lt;P&gt;Yes, we have the option to achieve the same using loop at, and sum, but I was looking to make the code look simpler:)&lt;/P&gt;&lt;P&gt;Wondering why the select on  @itab was introduced, when the system throws a syntax check warning..&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 10:24:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/atc-check-error-the-select-command-is-executed-on-the-database-select-694/qaa-p/12777525#M4797136</guid>
      <dc:creator>former_member839746</dc:creator>
      <dc:date>2023-07-14T10:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: ATC Check error - The SELECT command is executed on the database (SELECT 694)</title>
      <link>https://community.sap.com/t5/technology-q-a/atc-check-error-the-select-command-is-executed-on-the-database-select-694/qaa-p/12777526#M4797137</link>
      <description>&lt;P&gt;The SELECT on an internal table is very useful für JOIN statements, and it replaces the FOR ALL ENTRIES CLAUSE. It is in general faster and much more flexible. If a list is needed for data on the database, you have to push down the information. But if you don't, it is better to not use it, but of cause it depends on the individual case.&lt;/P&gt;&lt;P&gt;Code stability and simplicity are other criteria. From my personal perspective, there is never a general good or bad. You can suppress the warning, but in general it tells you that this can be optimized.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 11:12:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/atc-check-error-the-select-command-is-executed-on-the-database-select-694/qaa-p/12777526#M4797137</guid>
      <dc:creator>axel_jebens</dc:creator>
      <dc:date>2023-07-14T11:12:29Z</dc:date>
    </item>
    <item>
      <title>Re: ATC Check error - The SELECT command is executed on the database (SELECT 694)</title>
      <link>https://community.sap.com/t5/technology-q-a/atc-check-error-the-select-command-is-executed-on-the-database-select-694/qaa-p/12777527#M4797138</link>
      <description>&lt;P&gt;Hi Naga,&lt;/P&gt;&lt;P&gt;The message SELECT 694 gives a hint that the statement cannot be executed in the ABAP server, i. e. the statement is executed in the database. This hint is given as the execution time might be higher than expected.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 11:16:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/atc-check-error-the-select-command-is-executed-on-the-database-select-694/qaa-p/12777527#M4797138</guid>
      <dc:creator>philipp_degler</dc:creator>
      <dc:date>2023-07-14T11:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: ATC Check error - The SELECT command is executed on the database (SELECT 694)</title>
      <link>https://community.sap.com/t5/technology-q-a/atc-check-error-the-select-command-is-executed-on-the-database-select-694/qaa-p/13769955#M4838094</link>
      <description>SELECT ##ITAB_DB_SELECT DI_CODE, COUNT( MATNR ) AS MATNR_COUNT FROM &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1398638"&gt;@LT&lt;/a&gt;_LIPS_MARA AS LIPS_MARA GROUP BY DI_CODE INTO TABLE &lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1407137"&gt;@DATA&lt;/a&gt;(LT_SUMMARY).</description>
      <pubDate>Wed, 24 Jul 2024 07:26:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/atc-check-error-the-select-command-is-executed-on-the-database-select-694/qaa-p/13769955#M4838094</guid>
      <dc:creator>janewar</dc:creator>
      <dc:date>2024-07-24T07:26:41Z</dc:date>
    </item>
  </channel>
</rss>

