<?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: Search annotation not working when using built-in function CURRENCY_CONVERSION in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/search-annotation-not-working-when-using-built-in-function-currency/qaa-p/13937092#M4892263</link>
    <description>No. In the backend, it generates Native HANA sql for the search and we get a dump. There is no useful information in the termination result on why it happened. If we comment the built-in function currency_conversion and then search, we get the search results back.</description>
    <pubDate>Wed, 13 Nov 2024 14:18:36 GMT</pubDate>
    <dc:creator>manoj_achar</dc:creator>
    <dc:date>2024-11-13T14:18:36Z</dc:date>
    <item>
      <title>Search annotation not working when using built-in function CURRENCY_CONVERSION</title>
      <link>https://community.sap.com/t5/technology-q-a/search-annotation-not-working-when-using-built-in-function-currency/qaq-p/13936006</link>
      <description>&lt;P&gt;Using 'Search' annotation we have exposed some fields data to be searched.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1692417"&gt;@search&lt;/a&gt;.searchable: true&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1692417"&gt;@search&lt;/a&gt;.defaultSearchElement: true&lt;BR /&gt;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1692417"&gt;@search&lt;/a&gt;.fuzzinessThreshold: 0.9&lt;BR /&gt;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/1692417"&gt;@search&lt;/a&gt;.ranking: #HIGH&lt;/P&gt;&lt;P&gt;In the CDS, 2 levels down we have used built-in function&amp;nbsp;CURRENCY_CONVERSION to convert the price value depending on the currency type. Because of this, the search functionality is dumping. We have not used 'Search' annotation on this field (and subsequent fields using this field), but still it is producing error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate any help on this.&lt;/P&gt;&lt;P&gt;cast( currency_conversion (&amp;nbsp;&lt;BR /&gt;amount =&amp;gt; final_margin,&lt;BR /&gt;source_currency =&amp;gt; currency,&lt;BR /&gt;target_currency =&amp;gt; cast('US$' as abap.cuky( 5 )),&lt;BR /&gt;exchange_rate_date =&amp;gt; valid_from,&lt;BR /&gt;round =&amp;gt; '',&lt;BR /&gt;error_handling =&amp;gt; 'SET_TO_NULL'&lt;BR /&gt;) as zrpd_final_margin ) as Final_MarginUSD,&lt;/P&gt;</description>
      <pubDate>Tue, 12 Nov 2024 15:49:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/search-annotation-not-working-when-using-built-in-function-currency/qaq-p/13936006</guid>
      <dc:creator>manoj_achar</dc:creator>
      <dc:date>2024-11-12T15:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: Search annotation not working when using built-in function CURRENCY_CONVERSION</title>
      <link>https://community.sap.com/t5/technology-q-a/search-annotation-not-working-when-using-built-in-function-currency/qaa-p/13936026#M4892100</link>
      <description>any error msg?</description>
      <pubDate>Tue, 12 Nov 2024 16:19:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/search-annotation-not-working-when-using-built-in-function-currency/qaa-p/13936026#M4892100</guid>
      <dc:creator>junwu</dc:creator>
      <dc:date>2024-11-12T16:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Search annotation not working when using built-in fun...</title>
      <link>https://community.sap.com/t5/technology-q-a/search-annotation-not-working-when-using-built-in-function-currency/qaa-p/13937086#M4892261</link>
      <description>&lt;P&gt;No. In the backend, it generates Native HANA sql for the search and we get a dump. There is no useful information in the termination result on why it happened.&lt;/P&gt;&lt;P&gt;If we comment the built-in function currency_conversion and then search, we get the search results back.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 14:16:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/search-annotation-not-working-when-using-built-in-function-currency/qaa-p/13937086#M4892261</guid>
      <dc:creator>manoj_achar</dc:creator>
      <dc:date>2024-11-13T14:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: Search annotation not working when using built-in function CURRENCY_CONVERSION</title>
      <link>https://community.sap.com/t5/technology-q-a/search-annotation-not-working-when-using-built-in-function-currency/qaa-p/13937092#M4892263</link>
      <description>No. In the backend, it generates Native HANA sql for the search and we get a dump. There is no useful information in the termination result on why it happened. If we comment the built-in function currency_conversion and then search, we get the search results back.</description>
      <pubDate>Wed, 13 Nov 2024 14:18:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/search-annotation-not-working-when-using-built-in-function-currency/qaa-p/13937092#M4892263</guid>
      <dc:creator>manoj_achar</dc:creator>
      <dc:date>2024-11-13T14:18:36Z</dc:date>
    </item>
  </channel>
</rss>

