<?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: Custom code adjustment for transparent tables - Code Inspector does not manage it in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-code-adjustment-for-transparent-tables-code-inspector-does-not/m-p/11712637#M1947633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you mix up functional correctness and hana optimizations.&lt;/P&gt;&lt;P&gt;The order by is necessary for following operations that rely on the sorting. &lt;/P&gt;&lt;P&gt;When you do not need the ordering, then it is surely faster if you do not add an ORDER BY.&lt;/P&gt;&lt;P&gt;- Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 May 2016 13:21:51 GMT</pubDate>
    <dc:creator>thomasgauweiler</dc:creator>
    <dc:date>2016-05-25T13:21:51Z</dc:date>
    <item>
      <title>Custom code adjustment for transparent tables - Code Inspector does not manage it</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-code-adjustment-for-transparent-tables-code-inspector-does-not/m-p/11712635#M1947631</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am preparing custom SAP code for HANA and found the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Not only pool and cluster tables are affected, but also transparent ones (We have a customer on HANA who reported such cases).&lt;/P&gt;&lt;P&gt;2. SCI Code Inspector cannot find such code in all cases:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Currently there is a check:&amp;nbsp; "Search problematic statements for result of SELECT/OPEN CURSOR without ORDER BY",&lt;/P&gt;&lt;P&gt;but! It works only if you perform specific operations after "SELECT .. INTO TABLE", for example:&lt;/P&gt;&lt;P&gt;&lt;TT&gt;* READ TABLE itab ... BINARY SEARCH&lt;/TT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;*&amp;nbsp; DELETE ADJECENT DUPLICATES FROM itab&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;and etc. (they are all mentioned in the description of SCI Inspector check).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you just have a select into table without order by, but no specific operations mentioned in description if SCI check, &lt;/P&gt;&lt;P&gt;you code is not optimized for HANA and you are not aware of it. This select will not appear in Code Inspector result list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example,&amp;nbsp; if we show documents list using just a select from table and immediately sending results to ALV, then user will see unsorted documents list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise how could such situations be found&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 12:21:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-code-adjustment-for-transparent-tables-code-inspector-does-not/m-p/11712635#M1947631</guid>
      <dc:creator>Denis8df</dc:creator>
      <dc:date>2016-05-25T12:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Custom code adjustment for transparent tables - Code Inspector does not manage it</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-code-adjustment-for-transparent-tables-code-inspector-does-not/m-p/11712636#M1947632</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I found a way for it:&lt;/P&gt;&lt;P&gt;In the Code Inspector, I configured one more pattern (additionally to standard HANA ones):&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/961151" height="252" width="597" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I get results and could adjust them as required. Please let me know if you have other and better alternatives &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro_emoticon jive_macro jive_emote" src="https://community.sap.com/108/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 13:00:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-code-adjustment-for-transparent-tables-code-inspector-does-not/m-p/11712636#M1947632</guid>
      <dc:creator>Denis8df</dc:creator>
      <dc:date>2016-05-25T13:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Custom code adjustment for transparent tables - Code Inspector does not manage it</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-code-adjustment-for-transparent-tables-code-inspector-does-not/m-p/11712637#M1947633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you mix up functional correctness and hana optimizations.&lt;/P&gt;&lt;P&gt;The order by is necessary for following operations that rely on the sorting. &lt;/P&gt;&lt;P&gt;When you do not need the ordering, then it is surely faster if you do not add an ORDER BY.&lt;/P&gt;&lt;P&gt;- Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 13:21:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-code-adjustment-for-transparent-tables-code-inspector-does-not/m-p/11712637#M1947633</guid>
      <dc:creator>thomasgauweiler</dc:creator>
      <dc:date>2016-05-25T13:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: Custom code adjustment for transparent tables - Code Inspector does not manage it</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-code-adjustment-for-transparent-tables-code-inspector-does-not/m-p/11712638#M1947634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I did not explain the situation correctly.&lt;/P&gt;&lt;P&gt;For sure you do not need "ORDER BY" always. &lt;/P&gt;&lt;P&gt;But "ORDER BY" is needed not only if you perform operations that rely on sort after the select.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, you prepare a list of documents to show to the user. In the code, you just have a statement "Select * from &amp;lt;some header table". No more operations are performed.&lt;/P&gt;&lt;P&gt;Before HANA results were retrieved with sorting on table key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now in HANA user will see unsorted documents list. This is a known issue from one of the customers with HANA. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in order to find such situations, I enhanced the SCI check. This does not mean I will add "ORDER BY" or "SORT" to all cases found by SCI, but check each case individually.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wonder if there is any other option to handle this in a better way &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/108/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I explained it better this time &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/108/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2016 13:52:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-code-adjustment-for-transparent-tables-code-inspector-does-not/m-p/11712638#M1947634</guid>
      <dc:creator>Denis8df</dc:creator>
      <dc:date>2016-05-25T13:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: Custom code adjustment for transparent tables - Code Inspector does not manage it</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/custom-code-adjustment-for-transparent-tables-code-inspector-does-not/m-p/11712639#M1947635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the end I implemented a new custom code inspector check, which checks if the select was done into a standard table, if key fields were selected, and if no sorting or order by was used for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps the others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jun 2016 07:35:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/custom-code-adjustment-for-transparent-tables-code-inspector-does-not/m-p/11712639#M1947635</guid>
      <dc:creator>Denis8df</dc:creator>
      <dc:date>2016-06-02T07:35:02Z</dc:date>
    </item>
  </channel>
</rss>

