<?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 problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-currency-conversion-problem/m-p/11950344#M1966383</link>
    <description>&lt;P&gt;Hi guys how are you?&lt;/P&gt;
  &lt;P&gt;I am writing a set of CDS Views and I am faccing a problem with currency fields.&lt;/P&gt;
  &lt;P&gt;When I display the results via SE16N, the view works fine and show the values correctlty, but when I export the data into a CSV file and thats is the goal of this development, the field appears with a wrong format.&lt;/P&gt;
  &lt;P&gt;I'm using this annotation in my currency field &lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;        @Semantics.amount.currencyCode: '_posicion.waerk'
        _posicion.netwr,
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;In SE16N we can see:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1700757-se16n.png" /&gt;&lt;/P&gt;
  &lt;P&gt;But in excel is not Ok:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1700758-exvel.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Is it normal?, I mean, Have I to do some ABAP workarround to get the right currency format?&lt;/P&gt;
  &lt;P&gt;Just for clarification pourpuse, Im not working whith a HANA database, Im working with Oracle.&lt;/P&gt;
  &lt;P&gt;I appreciate any help.&lt;/P&gt;
  &lt;P&gt;Best regards,&lt;/P&gt;
  &lt;P&gt;Ronaldo S. Vieira&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jul 2019 15:34:09 GMT</pubDate>
    <dc:creator>former_member202733</dc:creator>
    <dc:date>2019-07-15T15:34:09Z</dc:date>
    <item>
      <title>CDS View currency conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-currency-conversion-problem/m-p/11950344#M1966383</link>
      <description>&lt;P&gt;Hi guys how are you?&lt;/P&gt;
  &lt;P&gt;I am writing a set of CDS Views and I am faccing a problem with currency fields.&lt;/P&gt;
  &lt;P&gt;When I display the results via SE16N, the view works fine and show the values correctlty, but when I export the data into a CSV file and thats is the goal of this development, the field appears with a wrong format.&lt;/P&gt;
  &lt;P&gt;I'm using this annotation in my currency field &lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;        @Semantics.amount.currencyCode: '_posicion.waerk'
        _posicion.netwr,
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;In SE16N we can see:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1700757-se16n.png" /&gt;&lt;/P&gt;
  &lt;P&gt;But in excel is not Ok:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1700758-exvel.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Is it normal?, I mean, Have I to do some ABAP workarround to get the right currency format?&lt;/P&gt;
  &lt;P&gt;Just for clarification pourpuse, Im not working whith a HANA database, Im working with Oracle.&lt;/P&gt;
  &lt;P&gt;I appreciate any help.&lt;/P&gt;
  &lt;P&gt;Best regards,&lt;/P&gt;
  &lt;P&gt;Ronaldo S. Vieira&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 15:34:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-currency-conversion-problem/m-p/11950344#M1966383</guid>
      <dc:creator>former_member202733</dc:creator>
      <dc:date>2019-07-15T15:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: CDS View currency conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-currency-conversion-problem/m-p/11950345#M1966384</link>
      <description>&lt;P&gt;Yes, that behavior is normal, because SAP stores amounts always with two decimal places, independent how many decimal places a currency really have, e.g.&lt;/P&gt;&lt;P&gt;EUR: 100.00 -&amp;gt; 100.00&lt;BR /&gt;COP: 100.000 -&amp;gt; 1000.00&lt;BR /&gt;JPY: 100 -&amp;gt; 1.00&lt;/P&gt;&lt;P&gt;SAP Clients like e.g. SE16N convert the value to the correct presentation format, meaning the decimal separator is correctly shifted.&lt;/P&gt;&lt;P&gt;Doing a simple CSV export does not consider this decimal shift if not implemented. To my knowledge there is no CDS function which does that automatically. You can either check the number of decimals for a currency and do the shift in the CDS view (if you wanna have it there for whatever reason - I would not recommend that) or do the shift in the wrapper which creates the CSV.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 17:32:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-currency-conversion-problem/m-p/11950345#M1966384</guid>
      <dc:creator>pfefferf</dc:creator>
      <dc:date>2019-07-15T17:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: CDS View currency conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-currency-conversion-problem/m-p/11950346#M1966385</link>
      <description>&lt;P&gt;I'm sorry guys but I have to clarify something here.&lt;/P&gt;&lt;P&gt;When I said I'm exporting the data into a CSV file, I mean, I'm doing this via an ABAP program and put an file into app server.&lt;/P&gt;&lt;P&gt;If I export into a excel using SE16N it's works too.&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Ronaldo S. Vieira&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 17:37:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-currency-conversion-problem/m-p/11950346#M1966385</guid>
      <dc:creator>former_member202733</dc:creator>
      <dc:date>2019-07-15T17:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: CDS View currency conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-currency-conversion-problem/m-p/11950347#M1966386</link>
      <description>&lt;P&gt;Hi Ronaldo,&lt;/P&gt;&lt;P&gt;you started to clarify, that you are using an ABAP-Report for the CSV export, but you haven't finished, because you haven't mentioned how you export to CSV.&lt;/P&gt;&lt;P&gt;If the export works in SE16N then your export logic is faulty.&lt;/P&gt;&lt;P&gt;Greetings&lt;BR /&gt;Stephan&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 19:36:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-currency-conversion-problem/m-p/11950347#M1966386</guid>
      <dc:creator>stekoester</dc:creator>
      <dc:date>2019-07-15T19:36:23Z</dc:date>
    </item>
    <item>
      <title>Re: CDS View currency conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-currency-conversion-problem/m-p/11950348#M1966387</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;stekoester&lt;/SPAN&gt; Fair enough. Actualy there is no code to format my currency column, I am usigng RTTI, get the values from a generic structure and put the values into the CSV, I just tought that usign the annotation, or something like that, I could get the value formated, but as  &lt;SPAN class="mention-scrubbed"&gt;florian.pfeffer&lt;/SPAN&gt; said, I have to to that in in the wrapper method which creating the CSV..&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Ronaldo S. Vieira&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 21:19:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-currency-conversion-problem/m-p/11950348#M1966387</guid>
      <dc:creator>former_member202733</dc:creator>
      <dc:date>2019-07-15T21:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: CDS View currency conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-currency-conversion-problem/m-p/11950349#M1966388</link>
      <description>&lt;P&gt;you exported data to excel with your custom code so you need to write the value in right currency to your CSV, system cant decide which decimal field would be currency or not . it would be easier to suggest if you tell us how did you code to download to csv.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 01:05:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-currency-conversion-problem/m-p/11950349#M1966388</guid>
      <dc:creator>DoanManhQuynh</dc:creator>
      <dc:date>2019-07-16T01:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: CDS View currency conversion problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-currency-conversion-problem/m-p/11950350#M1966389</link>
      <description>&lt;P&gt;Thanks,  &lt;SPAN class="mention-scrubbed"&gt;quynh.doanmanh&lt;/SPAN&gt; I will implement this in my code, I just thought that with the annotation would be enough.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 14:25:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cds-view-currency-conversion-problem/m-p/11950350#M1966389</guid>
      <dc:creator>former_member202733</dc:creator>
      <dc:date>2019-07-16T14:25:38Z</dc:date>
    </item>
  </channel>
</rss>

