<?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: Function Module to Convert Amount to the Right Decimal in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-amount-to-the-right-decimal/m-p/3533182#M849976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;follow the link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/victorav15/sapr3/abapfun.html" target="test_blank"&gt;http://www.geocities.com/victorav15/sapr3/abapfun.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try the function modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ROUND&lt;/STRONG&gt; &amp;#150; Rounds value to a number of decimal places . . .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ROUND_AMOUNT&lt;/STRONG&gt; &amp;#150; Rounding based on company and currency&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;G_DECIMAL_PLACES_GET&lt;/STRONG&gt; &amp;#150; Number of decimal places set for currency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;hope it helps&lt;/STRONG&gt; do reward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sharad narayan on Mar 7, 2008 11:34 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Mar 2008 10:31:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-07T10:31:09Z</dc:date>
    <item>
      <title>Function Module to Convert Amount to the Right Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-amount-to-the-right-decimal/m-p/3533179#M849973</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;There is a function module that helps convert currency without decimals into the right format. For eg if the amount in BSEG table is in Taiwanese Dollars it will be displayed as 17.95 whereas the real amount is 1795.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So there is a function module which will convert the amount of 17.95 to 1795 (which can be used in a report for eg), once we pass the amount and the currency.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 10:15:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-amount-to-the-right-decimal/m-p/3533179#M849973</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T10:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to Convert Amount to the Right Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-amount-to-the-right-decimal/m-p/3533180#M849974</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;   if it is always 2 decimals then  can multiply with 100 to get the data into a variable and pass it to the final output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful,&lt;/P&gt;&lt;P&gt;venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 10:26:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-amount-to-the-right-decimal/m-p/3533180#M849974</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T10:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to Convert Amount to the Right Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-amount-to-the-right-decimal/m-p/3533181#M849975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Venkat for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is a standard function module available, then would like to use it rather then trying to write some logic for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 10:29:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-amount-to-the-right-decimal/m-p/3533181#M849975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T10:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to Convert Amount to the Right Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-amount-to-the-right-decimal/m-p/3533182#M849976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;follow the link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/victorav15/sapr3/abapfun.html" target="test_blank"&gt;http://www.geocities.com/victorav15/sapr3/abapfun.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try the function modules&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ROUND&lt;/STRONG&gt; &amp;#150; Rounds value to a number of decimal places . . .&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ROUND_AMOUNT&lt;/STRONG&gt; &amp;#150; Rounding based on company and currency&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;G_DECIMAL_PLACES_GET&lt;/STRONG&gt; &amp;#150; Number of decimal places set for currency&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;hope it helps&lt;/STRONG&gt; do reward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sharad narayan on Mar 7, 2008 11:34 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 10:31:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-amount-to-the-right-decimal/m-p/3533182#M849976</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T10:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to Convert Amount to the Right Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-amount-to-the-right-decimal/m-p/3533183#M849977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make use of this sample:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
REPORT ZV_CONVERT_CURR .
DATA : L_NETWR TYPE VBAP-NETWR.
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
     EXPORTING
          DATE             = SY-DATUM
          FOREIGN_AMOUNT   = '10.00'
          FOREIGN_CURRENCY = 'INR'
          LOCAL_CURRENCY   = 'EUR'
     IMPORTING
          LOCAL_AMOUNT     = L_NETWR
     EXCEPTIONS
          NO_RATE_FOUND    = 1
          OVERFLOW         = 2
          NO_FACTORS_FOUND = 3
          NO_SPREAD_FOUND  = 4
          DERIVED_2_TIMES  = 5
          OTHERS           = 6.


WRITE: L_NETWR.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Vasanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 10:34:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-amount-to-the-right-decimal/m-p/3533183#M849977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T10:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to Convert Amount to the Right Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-amount-to-the-right-decimal/m-p/3533184#M849978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sharad and Vasant.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am looking for is a function module, to which I will pass the amount from BSEG (17.95) and the currency TWD and it will return 1795 in TWD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope its clear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Mar 2008 11:42:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-amount-to-the-right-decimal/m-p/3533184#M849978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-07T11:42:05Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to Convert Amount to the Right Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-amount-to-the-right-decimal/m-p/3533185#M849979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mick James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you get the solution for your question in this thread?&lt;/P&gt;&lt;P&gt;I am also looking for this conversion, can you please share the answer if you know?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;RV&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 21:02:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-amount-to-the-right-decimal/m-p/3533185#M849979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-07T21:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to Convert Amount to the Right Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-amount-to-the-right-decimal/m-p/3533186#M849980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You'd better ask a new question to be helped by the whole community instead of asking one person!&lt;/P&gt;&lt;P&gt;Anyway, you may use WRITE amount CURRENCY 'TWD' TO l_field_char.&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 21:28:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-amount-to-the-right-decimal/m-p/3533186#M849980</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-09-07T21:28:16Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to Convert Amount to the Right Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-amount-to-the-right-decimal/m-p/3533187#M849981</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;1. Use WRITE statement:&lt;/P&gt;&lt;P&gt;DATA dmbtr TYPE bseg-dmbtr VALUE '17.95'.&lt;/P&gt;&lt;P&gt;DATA lv_amount_c(30) TYPE c.&lt;/P&gt;&lt;P&gt;WRITE dmbtr CURRENCY 'TWD' TO lv_amount_c.&lt;/P&gt;&lt;P&gt;WRITE LV_AMOUNT_C NO-GAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. call BAPI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: amount_in LIKE bapicurr-bapicurr VALUE '17.95',&lt;/P&gt;&lt;P&gt;      amount_ex LIKE bapicurr-bapicurr .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_EXTERNAL'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      currency        = 'TWD'&lt;/P&gt;&lt;P&gt;      amount_internal = amount_in&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      amount_external = amount_ex.&lt;/P&gt;&lt;P&gt;  WRITE: / amount_in,amount_ex.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Sep 2011 07:27:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-amount-to-the-right-decimal/m-p/3533187#M849981</guid>
      <dc:creator>former_member37854</dc:creator>
      <dc:date>2011-09-08T07:27:00Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to Convert Amount to the Right Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-amount-to-the-right-decimal/m-p/3533188#M849982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using the FM CURRENCY_AMOUNT_SAP_TO_DISPLAY.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 09:41:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-amount-to-the-right-decimal/m-p/3533188#M849982</guid>
      <dc:creator>justine_t_babu</dc:creator>
      <dc:date>2015-03-12T09:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module to Convert Amount to the Right Decimal</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-amount-to-the-right-decimal/m-p/3533189#M849983</link>
      <description>&lt;P&gt;Answer is to use the BAPI function designed for that purpose:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Data: Result type bapicurr-bapicurr

CALL FUNCTION 'BAPI_CURRENCY_CONV_TO_EXTERNAL'
    EXPORTING
      currency        = 'JPY
      amount_internal = '10'
    IMPORTING
      amount_external = Result.

It will Display 1000 Yen by converting the amount based on TCURX values&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 06 Oct 2019 07:23:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-to-convert-amount-to-the-right-decimal/m-p/3533189#M849983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-10-06T07:23:03Z</dc:date>
    </item>
  </channel>
</rss>

