<?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 CDS view - currency_conversion function parameters in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-currency-conversion-function-parameters/m-p/12142129#M1976056</link>
    <description>&lt;P&gt;Hi -&lt;/P&gt;
  &lt;P&gt;We've created a CDS view that uses the currency_conversion function. The problem that we are running into is that we cannot call the function with parameters that are modified in the call. For example, we want to do &lt;EM&gt;something&lt;/EM&gt; like this:&lt;/P&gt;
  &lt;P&gt;currency_conversion( amount =&amp;gt; acdoca.tsl, source_currency =&amp;gt; acdoca.rtcur, target_currency =&amp;gt; t.waers, exchange_rate_date =&amp;gt; &lt;STRONG&gt;dats_add_days(acdoca.budat,1,'NULL')&lt;/STRONG&gt;, exchange_rate_type =&amp;gt; 'M', error_handling =&amp;gt; 'KEEP_UNCONVERTED' ) &lt;/P&gt;
  &lt;P&gt;However, as I'm sure you know, we get the message "In function CURRENCY_CONVERSION, only columns, literals and parameters allowed".&lt;/P&gt;
  &lt;P&gt;Is there any way to call functions of these types using complex parameters WITHOUT having to create another view 'underneath' this one with the date calculation done in the underlying view?&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;BR /&gt;Mark Chappell&lt;/P&gt;</description>
    <pubDate>Fri, 31 Jan 2020 16:39:56 GMT</pubDate>
    <dc:creator>former_member652212</dc:creator>
    <dc:date>2020-01-31T16:39:56Z</dc:date>
    <item>
      <title>CDS view - currency_conversion function parameters</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-currency-conversion-function-parameters/m-p/12142129#M1976056</link>
      <description>&lt;P&gt;Hi -&lt;/P&gt;
  &lt;P&gt;We've created a CDS view that uses the currency_conversion function. The problem that we are running into is that we cannot call the function with parameters that are modified in the call. For example, we want to do &lt;EM&gt;something&lt;/EM&gt; like this:&lt;/P&gt;
  &lt;P&gt;currency_conversion( amount =&amp;gt; acdoca.tsl, source_currency =&amp;gt; acdoca.rtcur, target_currency =&amp;gt; t.waers, exchange_rate_date =&amp;gt; &lt;STRONG&gt;dats_add_days(acdoca.budat,1,'NULL')&lt;/STRONG&gt;, exchange_rate_type =&amp;gt; 'M', error_handling =&amp;gt; 'KEEP_UNCONVERTED' ) &lt;/P&gt;
  &lt;P&gt;However, as I'm sure you know, we get the message "In function CURRENCY_CONVERSION, only columns, literals and parameters allowed".&lt;/P&gt;
  &lt;P&gt;Is there any way to call functions of these types using complex parameters WITHOUT having to create another view 'underneath' this one with the date calculation done in the underlying view?&lt;/P&gt;
  &lt;P&gt;Thanks,&lt;BR /&gt;Mark Chappell&lt;/P&gt;</description>
      <pubDate>Fri, 31 Jan 2020 16:39:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-currency-conversion-function-parameters/m-p/12142129#M1976056</guid>
      <dc:creator>former_member652212</dc:creator>
      <dc:date>2020-01-31T16:39:56Z</dc:date>
    </item>
  </channel>
</rss>

