<?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: Checking custom code for functional correctness: (ATC FUNCTIONAL_DB) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-custom-code-for-functional-correctness-atc-functional-db/m-p/11859205#M1958894</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, looks like I may have misunderstood the purpose of this check:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Search problematic statements for result of SELECT/OPEN CURSOR without ORDER BY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems like it only triggers an error if you have subsequent operations that makes assumptions on the order of the result set.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still don't think the code above is functionally correct. Is there a different ATC check that would highlight it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Aug 2016 05:20:42 GMT</pubDate>
    <dc:creator>EstiV</dc:creator>
    <dc:date>2016-08-12T05:20:42Z</dc:date>
    <item>
      <title>Checking custom code for functional correctness: (ATC FUNCTIONAL_DB)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-custom-code-for-functional-correctness-atc-functional-db/m-p/11859204#M1958893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running the functional correctness check across our codebase, but some objects that I believe are functionally incorrect is not being picked up:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the following piece of code, that does not use a complete key, and has no order by statement:&amp;nbsp;&amp;nbsp; But it passes the check (Search problematic statements for result of SELECT/OPEN CURSOR without ORDER BY).&amp;nbsp; Are there any known issues with the ATC, or is the code below considered functionally correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;select &lt;/SPAN&gt;frgco &lt;SPAN class="L0S52"&gt;from &lt;/SPAN&gt;zmm_rel_codes &lt;SPAN class="L0S52"&gt;up &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;to &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;1 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;rows&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;into &lt;/SPAN&gt;lv_frgco&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;where &lt;/SPAN&gt;ekorg&amp;nbsp; &lt;SPAN class="L0S55"&gt;=&amp;nbsp; &lt;/SPAN&gt;lv_ekorg&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;bsart&amp;nbsp; &lt;SPAN class="L0S55"&gt;=&amp;nbsp; &lt;/SPAN&gt;lv_bsart&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;knttp&amp;nbsp; &lt;SPAN class="L0S55"&gt;=&amp;nbsp; &lt;/SPAN&gt;lv_knttp&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;zcap&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S55"&gt;=&amp;nbsp; &lt;/SPAN&gt;lv_capex&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;and &lt;/SPAN&gt;zlimit &lt;SPAN class="L0S52"&gt;ge &lt;/SPAN&gt;lv_gnetw.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="L0S52"&gt;endselect&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/1014155" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System details:&amp;nbsp; Netweaver 7.4 SP 8 running on Hana DB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 02:07:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-custom-code-for-functional-correctness-atc-functional-db/m-p/11859204#M1958893</guid>
      <dc:creator>EstiV</dc:creator>
      <dc:date>2016-08-12T02:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Checking custom code for functional correctness: (ATC FUNCTIONAL_DB)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-custom-code-for-functional-correctness-atc-functional-db/m-p/11859205#M1958894</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, looks like I may have misunderstood the purpose of this check:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Search problematic statements for result of SELECT/OPEN CURSOR without ORDER BY&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Seems like it only triggers an error if you have subsequent operations that makes assumptions on the order of the result set.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I still don't think the code above is functionally correct. Is there a different ATC check that would highlight it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 05:20:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-custom-code-for-functional-correctness-atc-functional-db/m-p/11859205#M1958894</guid>
      <dc:creator>EstiV</dc:creator>
      <dc:date>2016-08-12T05:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Checking custom code for functional correctness: (ATC FUNCTIONAL_DB)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-custom-code-for-functional-correctness-atc-functional-db/m-p/11859206#M1958895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check the SAP Note &lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;2251947. It should cover this situation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif;"&gt;Regards, Thomas&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Aug 2016 06:03:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-custom-code-for-functional-correctness-atc-functional-db/m-p/11859206#M1958895</guid>
      <dc:creator>thomasgauweiler</dc:creator>
      <dc:date>2016-08-12T06:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Checking custom code for functional correctness: (ATC FUNCTIONAL_DB)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-custom-code-for-functional-correctness-atc-functional-db/m-p/11859207#M1958896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your answer, Thomas I have implemented the note, but the program still passes as correct.&amp;nbsp; The note references Codeinspector Test cl_ci_test_no_order_by.&amp;nbsp; I assume that is still the same check?&amp;nbsp; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;Search for problematic statements for result of SELECT/OPEN CURSOR without ORDER BY&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Aug 2016 20:25:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-custom-code-for-functional-correctness-atc-functional-db/m-p/11859207#M1958896</guid>
      <dc:creator>EstiV</dc:creator>
      <dc:date>2016-08-14T20:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: Checking custom code for functional correctness: (ATC FUNCTIONAL_DB)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-custom-code-for-functional-correctness-atc-functional-db/m-p/11859208#M1958897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like the test covers only SELECT SINGLE and not SELECT UP TO 1 ROWS.&lt;/P&gt;&lt;P&gt;Please open an OSS ticket on component BC-ABA-LA.&lt;/P&gt;&lt;P&gt;Regards, Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 06:23:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-custom-code-for-functional-correctness-atc-functional-db/m-p/11859208#M1958897</guid>
      <dc:creator>thomasgauweiler</dc:creator>
      <dc:date>2016-08-15T06:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Checking custom code for functional correctness: (ATC FUNCTIONAL_DB)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-custom-code-for-functional-correctness-atc-functional-db/m-p/11859209#M1958898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I've done that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Aug 2016 22:39:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-custom-code-for-functional-correctness-atc-functional-db/m-p/11859209#M1958898</guid>
      <dc:creator>EstiV</dc:creator>
      <dc:date>2016-08-15T22:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: Checking custom code for functional correctness: (ATC FUNCTIONAL_DB)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-custom-code-for-functional-correctness-atc-functional-db/m-p/11859210#M1958899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have received a reply from SAP.&amp;nbsp; The short answer is that there is a concern that implementing this check in the ATC would result in too many false positives.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAP is considering to add an information message, similar to that of SELECT SINGLE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2016 00:32:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-custom-code-for-functional-correctness-atc-functional-db/m-p/11859210#M1958899</guid>
      <dc:creator>EstiV</dc:creator>
      <dc:date>2016-08-29T00:32:02Z</dc:date>
    </item>
  </channel>
</rss>

