<?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: SAP Query - SQ02 custom fields - error with group by statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02-custom-fields-error-with-group-by-statement/m-p/503551#M17507</link>
    <description>&lt;P&gt;I understand that the syntax is complex, and you should definitely read the ABAP documentation: &lt;A href="https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abapselect.htm"&gt;SELECT&lt;/A&gt;. Look at the many examples, that will help you understand how "Open SQL" (the SQL in ABAP) works.&lt;/P&gt;
  &lt;P&gt;Using a comma for separating fields is allowed only in "strict syntax". The strict syntax means that the variables must be written as host variables (with leading @ ).&lt;/P&gt;
  &lt;P&gt;If the SELECT returns several lines then you must store the result into an internal table (INTO TABLE).&lt;/P&gt;</description>
    <pubDate>Sun, 26 Nov 2017 17:17:15 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2017-11-26T17:17:15Z</dc:date>
    <item>
      <title>SAP Query - SQ02 custom fields - error with group by statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02-custom-fields-error-with-group-by-statement/m-p/503545#M17501</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt;I have problem during checking below code. Error msg like on below screen. I have checked 'fixed point arithmetic' checkbox so I don't have any idea how to solve this issue. Thank you in advance for help.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/87346-capture.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Nov 2017 19:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02-custom-fields-error-with-group-by-statement/m-p/503545#M17501</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-11-25T19:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query - SQ02 custom fields - error with group by statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02-custom-fields-error-with-group-by-statement/m-p/503546#M17502</link>
      <description>&lt;P&gt;Make sure that the variable SCANNED is of type I (integer). I guess that this message occurs when you use a variable of type P with number of decimals greater than zero (syntax error message "This Open SQL statement uses additions that can only be used when the fixed point arithmetic flag is activated (such as CASE expressions or host variables in ...")&lt;/P&gt;</description>
      <pubDate>Sat, 25 Nov 2017 21:19:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02-custom-fields-error-with-group-by-statement/m-p/503546#M17502</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-11-25T21:19:58Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query - SQ02 custom fields - error with group by statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02-custom-fields-error-with-group-by-statement/m-p/503547#M17503</link>
      <description>&lt;P&gt;unfortunately I have changed on Integer and it still doesn't work.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2017 09:47:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02-custom-fields-error-with-group-by-statement/m-p/503547#M17503</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-11-26T09:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query - SQ02 custom fields - error with group by statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02-custom-fields-error-with-group-by-statement/m-p/503548#M17504</link>
      <description>&lt;P&gt;Then maybe the form is only valid for the strict SQL syntax, so you should add a @ in front of variables ("host variables") i.e. use INTO @ SCANNED . Or do SELECT COUNT(*) INTO scanned FROM ... to use the non-strict syntax.&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2017 12:27:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02-custom-fields-error-with-group-by-statement/m-p/503548#M17504</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-11-26T12:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query - SQ02 custom fields - error with group by statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02-custom-fields-error-with-group-by-statement/m-p/503549#M17505</link>
      <description>&lt;P&gt;Thanks a lot. It works in this way:&lt;/P&gt;
  &lt;P&gt;So the solution is to change data type for Integer(I) and write code as follow.&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/87368-capture.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2017 15:19:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02-custom-fields-error-with-group-by-statement/m-p/503549#M17505</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-11-26T15:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query - SQ02 custom fields - error with group by statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02-custom-fields-error-with-group-by-statement/m-p/503550#M17506</link>
      <description>&lt;P&gt;Aff, I have antoher problem during group by... I was trying in many ways, with INTO @variable, @var... and with INTO at the end of select statement but it doesn't work. I would be appreciate if you have some tips. Thank you in advance. &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/87369-capture.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2017 15:51:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02-custom-fields-error-with-group-by-statement/m-p/503550#M17506</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2017-11-26T15:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query - SQ02 custom fields - error with group by statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02-custom-fields-error-with-group-by-statement/m-p/503551#M17507</link>
      <description>&lt;P&gt;I understand that the syntax is complex, and you should definitely read the ABAP documentation: &lt;A href="https://help.sap.com/http.svc/rc/abapdocu_751_index_htm/7.51/en-US/index.htm?file=abapselect.htm"&gt;SELECT&lt;/A&gt;. Look at the many examples, that will help you understand how "Open SQL" (the SQL in ABAP) works.&lt;/P&gt;
  &lt;P&gt;Using a comma for separating fields is allowed only in "strict syntax". The strict syntax means that the variables must be written as host variables (with leading @ ).&lt;/P&gt;
  &lt;P&gt;If the SELECT returns several lines then you must store the result into an internal table (INTO TABLE).&lt;/P&gt;</description>
      <pubDate>Sun, 26 Nov 2017 17:17:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02-custom-fields-error-with-group-by-statement/m-p/503551#M17507</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2017-11-26T17:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Query - SQ02 custom fields - error with group by statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02-custom-fields-error-with-group-by-statement/m-p/503552#M17508</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Please replace COUNT(*) by &lt;STRONG&gt;COUNT ( * )&lt;/STRONG&gt;. If you are selecting multiple columns, then move it to variables within brackets ( v1, v2 ) or use internal table for storing it.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 12:15:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-query-sq02-custom-fields-error-with-group-by-statement/m-p/503552#M17508</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2018-07-25T12:15:07Z</dc:date>
    </item>
  </channel>
</rss>

