<?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: Fiori Currency Conversion Issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/fiori-currency-conversion-issue/m-p/13885371#M2031183</link>
    <description>&lt;P&gt;Have you created a custom currency code type definition in table TCURC ?&amp;nbsp; E.g. using the configuration menu in transaction SPRO.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Manipulating decimal places on the front-end only in this way is very risky. When you change the decimal places you change the meaning of the value. That affects everywhere that value is used, e.g. when converting from local to foreign currency.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Retail customers often use 4 decimal place currencies like this - and for that you need a custom currency code type definition. Then all the currency conversions will work reliably system wide.&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what I understand of your approach&amp;nbsp;this is really ABAP fundamentals and actually nothing to do with SAP Fiori - SAP Fiori is applying the conversion correctly (its actually just reflecting what the ABAP currency conversion is automatically doing via the CDS View) . You might want to ask your question using the ABAP tag.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Oct 2024 09:38:24 GMT</pubDate>
    <dc:creator>Jocelyn_Dart</dc:creator>
    <dc:date>2024-10-02T09:38:24Z</dc:date>
    <item>
      <title>Fiori Currency Conversion Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fiori-currency-conversion-issue/m-p/13885111#M2031177</link>
      <description>&lt;P&gt;Facing issue with currency conversion.&lt;/P&gt;&lt;P&gt;in JPY , decimal should be before 2 digits only to be correct as the value saved in table has 2 decimal places, but it isn't showing correctly in Fiori app.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dukejib5_0-1727848757459.png" style="width: 562px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/174095iE4EE4343AA0CE63C/image-dimensions/562x125?v=v2" width="562" height="125" role="button" title="dukejib5_0-1727848757459.png" alt="dukejib5_0-1727848757459.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dukejib5_1-1727848775158.png" style="width: 400px;"&gt;&lt;img src="https://community.sap.com/t5/image/serverpage/image-id/174096i04BE2F1F13754CA0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dukejib5_1-1727848775158.png" alt="dukejib5_1-1727848775158.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I've following annotations in my cds view.&lt;/P&gt;&lt;LI-CODE lang="abap"&gt;  //      @Semantics.currencyCode: true
  @ObjectModel.foreignKey.association: '_currency'
  waers                      as Waers,&lt;/LI-CODE&gt;&lt;P&gt;I guess, the annotation&amp;nbsp;&lt;STRONG&gt;@Semantics.currencyCode: true&lt;/STRONG&gt; is the culprit, as it isn't usable anymore. what is the way around?&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 06:05:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fiori-currency-conversion-issue/m-p/13885111#M2031177</guid>
      <dc:creator>dukejib5</dc:creator>
      <dc:date>2024-10-02T06:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Fiori Currency Conversion Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fiori-currency-conversion-issue/m-p/13885162#M2031179</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.sap.com/t5/user/viewprofilepage/user-id/710276"&gt;@dukejib5&lt;/a&gt;&amp;nbsp; Hmmm... I don't think you have understood SAP currency conversion.&lt;/P&gt;&lt;P&gt;JPY does not have 2 digits following the decimal place. You are correct that it is being stored with 2 decimal places - as is standard - and the displayed correctly in the localized format - i.e. WITHOUT the decimal places. As you have you shown in your screenshots. This is CORRECT as per SAP currency conversion.&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAP currency conversion maps formats that are NOT the standard 2 digits to the appropriate localization format. That is the difference between how the data is stored and how it is interpreted.&amp;nbsp; This affects a small but significant number of currencies including JPY, KRW, VND etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This blog might be helpful for you&lt;/P&gt;&lt;P&gt;&lt;A class="" href="https://community.sap.com/t5/application-development-blog-posts/currency-decimal-issue-jpy-krw-vnd-localization-rollout-japan-korea-vietnam/ba-p/13416438" target="_blank" rel="noopener"&gt;Currency Decimal issue - JPY, KRW, VND | Localization | Rollout - Japan, Korea, Vietnam&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 07:00:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fiori-currency-conversion-issue/m-p/13885162#M2031179</guid>
      <dc:creator>Jocelyn_Dart</dc:creator>
      <dc:date>2024-10-02T07:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Fiori Currency Conversion Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fiori-currency-conversion-issue/m-p/13885291#M2031182</link>
      <description>&lt;P&gt;Thanks for the reply. I want to show the correct value , for $&amp;nbsp; Fiori shows 5 digits after decimal. I want to show correct value with only 2 digits after decimal.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 08:28:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fiori-currency-conversion-issue/m-p/13885291#M2031182</guid>
      <dc:creator>dukejib5</dc:creator>
      <dc:date>2024-10-02T08:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: Fiori Currency Conversion Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fiori-currency-conversion-issue/m-p/13885371#M2031183</link>
      <description>&lt;P&gt;Have you created a custom currency code type definition in table TCURC ?&amp;nbsp; E.g. using the configuration menu in transaction SPRO.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Manipulating decimal places on the front-end only in this way is very risky. When you change the decimal places you change the meaning of the value. That affects everywhere that value is used, e.g. when converting from local to foreign currency.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Retail customers often use 4 decimal place currencies like this - and for that you need a custom currency code type definition. Then all the currency conversions will work reliably system wide.&amp;nbsp;&lt;/P&gt;&lt;P&gt;From what I understand of your approach&amp;nbsp;this is really ABAP fundamentals and actually nothing to do with SAP Fiori - SAP Fiori is applying the conversion correctly (its actually just reflecting what the ABAP currency conversion is automatically doing via the CDS View) . You might want to ask your question using the ABAP tag.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 09:38:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fiori-currency-conversion-issue/m-p/13885371#M2031183</guid>
      <dc:creator>Jocelyn_Dart</dc:creator>
      <dc:date>2024-10-02T09:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: Fiori Currency Conversion Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fiori-currency-conversion-issue/m-p/13885416#M2031187</link>
      <description>&lt;P&gt;I think I am unable to clearly state my requirement. For JPY, I want to show correct value, using annotations. How to do it?&amp;nbsp; guess i'm using wrong annotation.&lt;/P&gt;&lt;P&gt;Value Stored JPY :&amp;nbsp;15494732.37&amp;nbsp;&lt;/P&gt;&lt;P&gt;Value Shown :&amp;nbsp;1549473.237&lt;/P&gt;&lt;P&gt;Value should be shown :&amp;nbsp;1549473237 ( if without decimal val currency).&lt;/P&gt;&lt;P&gt;Yes TCURC/TCURX has custom values for custom currencies.&amp;nbsp;&lt;/P&gt;&lt;P&gt;And again, thanks for your reply and link to blog &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 10:30:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fiori-currency-conversion-issue/m-p/13885416#M2031187</guid>
      <dc:creator>dukejib5</dc:creator>
      <dc:date>2024-10-02T10:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Fiori Currency Conversion Issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/fiori-currency-conversion-issue/m-p/13885448#M2031189</link>
      <description>&lt;P&gt;Ok so I see your issue now. Thank you for the clarification!&lt;/P&gt;&lt;P&gt;Recommend you first double-check your custom currency code is working correctly by running report RCURTEST in GUI to check. See SAP Note&amp;nbsp;&lt;SPAN&gt;2561100 - Currency Conversion in CDS Queries - Could not determine valid conversion rate for value(s) ...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Assuming this is ok... then as explained in the ABAP CDS keyword documentation for amounts &lt;A href="https://help.sap.com/doc/abapdocu_758_index_htm/7.58/en-US/index.htm?file=abencds_amount_field.htm" target="_blank" rel="noopener"&gt;https://help.sap.com/doc/abapdocu_758_index_htm/7.58/en-US/index.htm?file=abencds_amount_field.htm&lt;/A&gt; yes you do need to apply the mandatory&amp;nbsp; annotation&amp;nbsp;&lt;A target="_blank"&gt;&lt;SPAN class=""&gt;@Semantics.amount.currencyCode : true&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN class=""&gt;&amp;nbsp;to the currency code field&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;I'm not sure why you think it's unusable though? It's just commented out... You should un-comment the line and reactivate the CDS View.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;That should solve it. Remember you can have multiple annotations before a field.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Oct 2024 11:04:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/fiori-currency-conversion-issue/m-p/13885448#M2031189</guid>
      <dc:creator>Jocelyn_Dart</dc:creator>
      <dc:date>2024-10-02T11:04:05Z</dc:date>
    </item>
  </channel>
</rss>

