<?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: Problem in PO (ME23n Tcode) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-po-me23n-tcode/m-p/3486780#M838337</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhijit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason for this is quite simple. SAP stores all the amount fields in 2 decimal places. But the actual value of the amount is interpretted using the currency associated with the amount field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In JPY currency, the amount will have no decimal places whereas USD/INR will amount will 2 decimal places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below code will illustrate how the amount values are interpreted in SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

"Suppose amount_internal is the amount stored in SAP.

    SELECT SINGLE * FROM  tcurx
                    INTO  struct_tcurx
                    WHERE currkey = currency.
    IF sy-subrc = 0. "Currency has a number of decimals not equal two
      int_shift = 2 - struct_tcurx-currdec.
    ELSE. "Currency is no exceptional currency. It has two decimals
      int_shift = 0.
    ENDIF.
  ELSE.
    int_shift = last_int_shift.
  ENDIF.

"*Fill AMOUNT_EXTERNAL and shift decimal point depending on CURRENCY
  MOVE amount_internal TO dec_amount_int.
  amount_external = 10 ** int_shift.
  amount_external = amount_external * dec_amount_int.

"And amount_external will be value SAP interprets the amount_internal based on 
"currency.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Feb 2008 11:28:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-28T11:28:42Z</dc:date>
    <item>
      <title>Problem in PO (ME23n Tcode)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-po-me23n-tcode/m-p/3486777#M838334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In ME23n Tcode when I execute it for Japanese currency(yen) I get the value without decimal point but in table it is stored with decimal point. So there is mismatch between value shown by me23n &amp;amp; values shown in print preview for the same.&lt;/P&gt;&lt;P&gt;This is happening only for Japanese currency.&lt;/P&gt;&lt;P&gt;Please help me to solve this issue.&lt;/P&gt;&lt;P&gt;Thanksn advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 07:54:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-po-me23n-tcode/m-p/3486777#M838334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T07:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in PO (ME23n Tcode)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-po-me23n-tcode/m-p/3486778#M838335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&lt;SPAN __default_attr="sylfaen" __jive_macro_name="font"&gt;&lt;SPAN __default_attr="15" __jive_macro_name="size"&gt;
You need to use the CURRENCY additions.
To understand the difference, execute below code with the PO and check the results.
&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: p_ebeln TYPE ebeln OBLIGATORY.

DATA: l_netwr TYPE netwr.

SELECT SINGLE netwr INTO l_netwr FROM ekpo
   WHERE ebeln = p_ebeln.
WRITE:/ l_netwr.
WRITE:/ l_netwr CURRENCY 'JPY'.&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN __default_attr="maroon" __jive_macro_name="color"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 08:38:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-po-me23n-tcode/m-p/3486778#M838335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T08:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in PO (ME23n Tcode)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-po-me23n-tcode/m-p/3486779#M838336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&lt;SPAN __default_attr="sylfaen" __jive_macro_name="font"&gt;&lt;SPAN __default_attr="15" __jive_macro_name="size"&gt;
&amp;gt; You need to use the CURRENCY additions.
&amp;gt; To understand the difference, execute below code with the PO and check the results.
&amp;gt; &lt;PRE&gt;&lt;CODE&gt;PARAMETERS: p_ebeln TYPE ebeln OBLIGATORY.
&amp;gt; 
&amp;gt; DATA: l_netwr TYPE netwr.
&amp;gt; 
&amp;gt; SELECT SINGLE netwr INTO l_netwr FROM ekpo
&amp;gt;    WHERE ebeln = p_ebeln.
&amp;gt; WRITE:/ l_netwr.
&amp;gt; WRITE:/ l_netwr CURRENCY 'JPY'.&lt;/CODE&gt;&lt;/PRE&gt;
&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN __default_attr="maroon" __jive_macro_name="color"&gt;&lt;SPAN __default_attr="georgia" __jive_macro_name="font"&gt;&lt;SPAN __default_attr="12" __jive_macro_name="size"&gt;
&amp;gt; Kind Regards&lt;/SPAN&gt;
&amp;gt; &lt;SPAN __default_attr="16" __jive_macro_name="size"&gt;Eswar
&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&lt;SPAN __default_attr="sylfaen" __jive_macro_name="font"&gt;&lt;SPAN __default_attr="15" __jive_macro_name="size"&gt;
&amp;gt; You need to use the CURRENCY additions.
&amp;gt; To understand the difference, execute below code with the PO and check the results.
&amp;gt; &lt;PRE&gt;&lt;CODE&gt;PARAMETERS: p_ebeln TYPE ebeln OBLIGATORY.
&amp;gt; 
&amp;gt; DATA: l_netwr TYPE netwr.
&amp;gt; 
&amp;gt; SELECT SINGLE netwr INTO l_netwr FROM ekpo
&amp;gt;    WHERE ebeln = p_ebeln.
&amp;gt; WRITE:/ l_netwr.
&amp;gt; WRITE:/ l_netwr CURRENCY 'JPY'.&lt;/CODE&gt;&lt;/PRE&gt;
&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN __default_attr="maroon" __jive_macro_name="color"&gt;&lt;SPAN __default_attr="georgia" __jive_macro_name="font"&gt;&lt;SPAN __default_attr="12" __jive_macro_name="size"&gt;
&amp;gt; Kind Regards&lt;/SPAN&gt;
&amp;gt; &lt;SPAN __default_attr="16" __jive_macro_name="size"&gt;Eswar
&amp;gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your reply.&lt;/P&gt;&lt;P&gt;But what i want to know is that in EKPO table entry is &lt;/P&gt;&lt;P&gt;e. g. 59814.47 JPY&lt;/P&gt;&lt;P&gt;then display of me23n should show this but it is showing&lt;/P&gt;&lt;P&gt;5,981,447&lt;/P&gt;&lt;P&gt;Also in print it correct i. e., 59814.47 Jpy.&lt;/P&gt;&lt;P&gt;Also like INR has paise, how jpy cent is displayed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 11:16:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-po-me23n-tcode/m-p/3486779#M838336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T11:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in PO (ME23n Tcode)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-po-me23n-tcode/m-p/3486780#M838337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhijit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason for this is quite simple. SAP stores all the amount fields in 2 decimal places. But the actual value of the amount is interpretted using the currency associated with the amount field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In JPY currency, the amount will have no decimal places whereas USD/INR will amount will 2 decimal places.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The below code will illustrate how the amount values are interpreted in SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

"Suppose amount_internal is the amount stored in SAP.

    SELECT SINGLE * FROM  tcurx
                    INTO  struct_tcurx
                    WHERE currkey = currency.
    IF sy-subrc = 0. "Currency has a number of decimals not equal two
      int_shift = 2 - struct_tcurx-currdec.
    ELSE. "Currency is no exceptional currency. It has two decimals
      int_shift = 0.
    ENDIF.
  ELSE.
    int_shift = last_int_shift.
  ENDIF.

"*Fill AMOUNT_EXTERNAL and shift decimal point depending on CURRENCY
  MOVE amount_internal TO dec_amount_int.
  amount_external = 10 ** int_shift.
  amount_external = amount_external * dec_amount_int.

"And amount_external will be value SAP interprets the amount_internal based on 
"currency.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2008 11:28:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-po-me23n-tcode/m-p/3486780#M838337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-28T11:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in PO (ME23n Tcode)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-po-me23n-tcode/m-p/3486781#M838338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN __default_attr="blue" __jive_macro_name="color"&gt;&lt;SPAN __default_attr="sylfaen" __jive_macro_name="font"&gt;&lt;SPAN __default_attr="15" __jive_macro_name="size"&gt;
Hi,

Few Currencies like Japanese Yen, Indonesian Rupiah doesnt have cents i.e no decimals.  So what you are able to see in PO is the right one. Table is just a storage medium. 

As far as your print program it is currently displaying wrong as no conversion taken place.

Check this info from SAP:
&lt;PRE&gt;&lt;CODE&gt;In the R/3 System tables currency fields are stored as decimal figures 
with a variable number of decimal places. The decimal point is not 
stored in the field in the database. Instead, each currency field refers 
to a currency key field. &lt;/CODE&gt;&lt;/PRE&gt;

For few currencies like Kuwait Dinar it might have 3 decimals, at the table level it is visible as 2 decimals. Only when you use the currency addition it displays in the actual format for the country. 

Remember it as a rule: For all Currency fields the reference should be used for displaying in actual notation.
&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN __default_attr="maroon" __jive_macro_name="color"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Feb 2008 00:53:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-po-me23n-tcode/m-p/3486781#M838338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-29T00:53:02Z</dc:date>
    </item>
  </channel>
</rss>

