<?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: JPY Correct Format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/jpy-correct-format/m-p/6219971#M1378906</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dennis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your ALV structure is not a dictionary structure including the currency amount field linked to a currency key field, you must do this in the field catalog. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the amount field, you can set the fieldcatalog field CURRENCY to JPK (the hard way).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, better, you use the field catalog field CFIELDNAME to set the currency reference field, i.e. 'WAERS'. WAERS should be a column in ALV display that carries the currency key (JPK) at runtime. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The advantage of the currency key field is that totals and subtotals are calculated on each currency displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Sep 2009 23:05:15 GMT</pubDate>
    <dc:creator>Clemenss</dc:creator>
    <dc:date>2009-09-25T23:05:15Z</dc:date>
    <item>
      <title>JPY Correct Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/jpy-correct-format/m-p/6219968#M1378903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a report that displays the net price in foreign and local currency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The processing happens in an internal table where the field containing the suppose to be price in local currency  is like ekpo-netwr with 'JPK' as the currency key. On the internal table processing the value placed in the internal table -netwr field is correct, but when the value is displayed in the report with the use of REUSE_ALV_LIST_DISPLAY function, the conversion of the value is displayed incorrectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. in the internal table the value for the local price is 25,742.67 but upon display using the  REUSE_ALV_LIST_DISPLAY, the value turns into 2,574,267.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the same case when using "WRITE value INTO field CURRENCY 'JPK'. It turns the data to 2,574,267.  Can anyone tell me what is wrong in this process and how could i get 25,743 value in the display?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 15:44:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/jpy-correct-format/m-p/6219968#M1378903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T15:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: JPY Correct Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/jpy-correct-format/m-p/6219969#M1378904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thats because the Japanese currency Yen (JPY) does not have decimal notation as in other currencies. Thats why its multiplied by a factor of 100 to avoid decimals which is done internally by the SAP. If you have to display with rounded value, divide the value by 100 and use TRUNC to get the rounded value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Eg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: var_jpy type p decimals 2,
         var type type p decimals 2.

var_jpy = 234,564.
var = var_jpy / 100.
var = trunc( var ).

write: var.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 15:49:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/jpy-correct-format/m-p/6219969#M1378904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T15:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: JPY Correct Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/jpy-correct-format/m-p/6219970#M1378905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think there is anything wrong with the display. SAP stores all the amounts with two decimals. Then based on the cofiguration of your currency key, it displays the amount with the appropriate number of decimals. Since Japanese Yen currency do not have decimals, it is showing all that. Similarly the same value would have been 25,742.67, if the currency was USD and it would have been 257.4267 if you have configured a currency USD4 with 4 decimals. Look at table TCURX for the number of decimals configured for each currency.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 15:50:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/jpy-correct-format/m-p/6219970#M1378905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-25T15:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: JPY Correct Format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/jpy-correct-format/m-p/6219971#M1378906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dennis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your ALV structure is not a dictionary structure including the currency amount field linked to a currency key field, you must do this in the field catalog. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the amount field, you can set the fieldcatalog field CURRENCY to JPK (the hard way).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, better, you use the field catalog field CFIELDNAME to set the currency reference field, i.e. 'WAERS'. WAERS should be a column in ALV display that carries the currency key (JPK) at runtime. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The advantage of the currency key field is that totals and subtotals are calculated on each currency displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Sep 2009 23:05:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/jpy-correct-format/m-p/6219971#M1378906</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-09-25T23:05:15Z</dc:date>
    </item>
  </channel>
</rss>

