<?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: ATC cannot check REDUCE inline command in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/atc-cannot-check-reduce-inline-command/m-p/11884689#M1960947</link>
    <description>&lt;P&gt;I'm with you on this. But today this is not yet part of our Group guideline for ABAP.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Philipp&lt;/P&gt;</description>
    <pubDate>Wed, 08 May 2019 10:04:01 GMT</pubDate>
    <dc:creator>brazel_pilipp</dc:creator>
    <dc:date>2019-05-08T10:04:01Z</dc:date>
    <item>
      <title>ATC cannot check REDUCE inline command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/atc-cannot-check-reduce-inline-command/m-p/11884686#M1960944</link>
      <description>&lt;P&gt;Hello everybody!&lt;/P&gt;
  &lt;P&gt;We use ATC (among other things) to check the ABAP naming conventions in the ERP development system. We have the case that the REDUCE command with inline DATA declaration cannot be resolved correctly in the ATC. The naming conventions themselves are correct. If the DATA declaration is removed from the command, the check works. &lt;/P&gt;
  &lt;P&gt;Short test report:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;REPORT z_test_reduce_atc.

TYPES: BEGIN OF gtys_int,
         value TYPE int3,
       END OF gtys_int,
       gtyt_int TYPE STANDARD TABLE OF gtys_int WITH DEFAULT KEY.

PERFORM test.

FORM test.
  DATA(lt_values) = VALUE gtyt_int( ( value = 1 ) ( value = 2 ) ( value = 3 ) ).

  DATA(lv_sum) = REDUCE #( INIT lv_x = 0
                           FOR ls_values IN lt_values
                           NEXT lv_x = lv_x + ls_values ).

  WRITE lv_sum.

ENDFORM.
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;Both errors are in the same line where the DATA( ..) = REDUCE command is located and lead to naming convention checks:&lt;/P&gt;
  &lt;OL&gt; 
   &lt;LI&gt;There is no symbol available&lt;/LI&gt; 
   &lt;LI&gt;Invalid name LV_SUM for DATA/RANGES (local)&lt;/LI&gt; 
  &lt;/OL&gt;
  &lt;P&gt;Does anyone have a solution to this problem / the same problem? &lt;/P&gt;
  &lt;P&gt;I'm looking forward to your comments.&lt;/P&gt;
  &lt;P&gt;Best regards,&lt;/P&gt;
  &lt;P&gt;Philipp&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 09:37:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/atc-cannot-check-reduce-inline-command/m-p/11884686#M1960944</guid>
      <dc:creator>brazel_pilipp</dc:creator>
      <dc:date>2019-04-30T09:37:15Z</dc:date>
    </item>
    <item>
      <title>Re: ATC cannot check REDUCE inline command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/atc-cannot-check-reduce-inline-command/m-p/11884687#M1960945</link>
      <description>&lt;P&gt;Hi Philipp,&lt;/P&gt;&lt;P&gt;your test report does not pass the syntax check. There is no INT3 data type in standard ABAP, and the two summands in your NEXT clause have incompatible types regardless (LV_X has elementary type I but LS_VALUES is a structured type GTYS_INT) and cannot be added together. Could you provide a syntactically correct example that demonstrates the problem? What AS ABAP release are you working on?&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Björn&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 10:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/atc-cannot-check-reduce-inline-command/m-p/11884687#M1960945</guid>
      <dc:creator>BjoernJueliger</dc:creator>
      <dc:date>2019-05-07T10:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: ATC cannot check REDUCE inline command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/atc-cannot-check-reduce-inline-command/m-p/11884688#M1960946</link>
      <description>&lt;P&gt;Change your standards? Hungarian notation is now unrecommended not only by SAP but by DSUG. Also by the Clean ABAP project. &lt;A href="https://blogs.sap.com/2019/05/03/clean-abap/"&gt;https://blogs.sap.com/2019/05/03/clean-abap/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 May 2019 19:00:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/atc-cannot-check-reduce-inline-command/m-p/11884688#M1960946</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2019-05-07T19:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: ATC cannot check REDUCE inline command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/atc-cannot-check-reduce-inline-command/m-p/11884689#M1960947</link>
      <description>&lt;P&gt;I'm with you on this. But today this is not yet part of our Group guideline for ABAP.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Philipp&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 10:04:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/atc-cannot-check-reduce-inline-command/m-p/11884689#M1960947</guid>
      <dc:creator>brazel_pilipp</dc:creator>
      <dc:date>2019-05-08T10:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: ATC cannot check REDUCE inline command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/atc-cannot-check-reduce-inline-command/m-p/11884690#M1960948</link>
      <description>&lt;P&gt;Hi Björn,&lt;/P&gt;&lt;P&gt;thanks for your answer. You are right, here is an updated version:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT z_test_reduce_atc.

TYPES: BEGIN OF gtys_int,
         value TYPE int2,
       END OF gtys_int,
       gtyt_int TYPE STANDARD TABLE OF gtys_int WITH DEFAULT KEY.

PERFORM test.

FORM test.

  DATA(lt_values) = VALUE gtyt_int( ( value = 1 ) ( value = 2 ) ( value = 3 ) ).

  DATA(lv_sum) = REDUCE gtys_int-value( INIT lv_x = 0
                           FOR ls_values IN lt_values
                           NEXT lv_x = lv_x + ls_values-value ).

  DATA(lt_int) = VALUE gtyt_int( FOR lv_x = 1 WHILE lv_x &amp;lt;= 10 ( value = lv_x ) ).

  WRITE lv_sum.

ENDFORM.&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;We are on 750 SP7.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Philipp&lt;/P&gt;</description>
      <pubDate>Wed, 08 May 2019 10:11:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/atc-cannot-check-reduce-inline-command/m-p/11884690#M1960948</guid>
      <dc:creator>brazel_pilipp</dc:creator>
      <dc:date>2019-05-08T10:11:34Z</dc:date>
    </item>
    <item>
      <title>Re: ATC cannot check REDUCE inline command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/atc-cannot-check-reduce-inline-command/m-p/11884691#M1960949</link>
      <description>&lt;P&gt;This was a bug in the interface between the kernel and the check that did not correctly treat the inline declaration as a declaration. &lt;/P&gt;&lt;P&gt;It should no longer occur on 749 kernels with patch level &amp;gt;= 715 or 753 kernels with patch level &amp;gt;= 422.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 07:34:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/atc-cannot-check-reduce-inline-command/m-p/11884691#M1960949</guid>
      <dc:creator>BjoernJueliger</dc:creator>
      <dc:date>2019-07-11T07:34:25Z</dc:date>
    </item>
    <item>
      <title>Re: ATC cannot check REDUCE inline command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/atc-cannot-check-reduce-inline-command/m-p/11884692#M1960950</link>
      <description>&lt;P&gt;Thanks for the answer. &lt;/P&gt;&lt;P&gt;We are running our ATC system on 753 kernel with patch level 16 - this should be the correct hint.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 08:51:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/atc-cannot-check-reduce-inline-command/m-p/11884692#M1960950</guid>
      <dc:creator>brazel_pilipp</dc:creator>
      <dc:date>2019-07-11T08:51:34Z</dc:date>
    </item>
  </channel>
</rss>

