<?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: Currency amount formatting in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-amount-formatting/m-p/898951#M54821</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here ya go...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: x(20) type c value '1,234.78'.



replace ',' with space into x.
replace '.' with space into x.
condense x no-gaps.


check x is initial.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 May 2005 19:00:15 GMT</pubDate>
    <dc:creator>RichHeilman</dc:creator>
    <dc:date>2005-05-12T19:00:15Z</dc:date>
    <item>
      <title>Currency amount formatting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-amount-formatting/m-p/898949#M54819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I have the data(amount) taken from currency field it has the amount value like (1,456.78) I need to remove the comma and periods here just get the number (145678) in the char format. How can I do this?&lt;/P&gt;&lt;P&gt;Thanks for your help in advance.&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2005 18:47:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-amount-formatting/m-p/898949#M54819</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-12T18:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Currency amount formatting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-amount-formatting/m-p/898950#M54820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is a way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE v_amountfield CURRENCY v_currencykey TO v_charfield NO-GROUPING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE v_charfield USING '. '.&lt;/P&gt;&lt;P&gt;CONDENSE v_charfield NO-GAPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Srinivas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2005 18:57:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-amount-formatting/m-p/898950#M54820</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-12T18:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Currency amount formatting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-amount-formatting/m-p/898951#M54821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here ya go...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: x(20) type c value '1,234.78'.



replace ',' with space into x.
replace '.' with space into x.
condense x no-gaps.


check x is initial.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2005 19:00:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-amount-formatting/m-p/898951#M54821</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-05-12T19:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Currency amount formatting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-amount-formatting/m-p/898952#M54822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich. It was really helpful. &lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2005 19:23:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-amount-formatting/m-p/898952#M54822</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-12T19:23:25Z</dc:date>
    </item>
    <item>
      <title>Re: Currency amount formatting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-amount-formatting/m-p/898953#M54823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, you may want to wrap the REPLACE statements in a WHILE loop.  If you number is like 1,513,561.84  the code will only get rid of one of the commas.  Do something like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: x(20) type c value '1,511,234.78'.

while x ca ',.'.
  replace ',' with space into x.
  replace '.' with space into x.
endwhile.

condense x no-gaps.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2005 19:38:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-amount-formatting/m-p/898953#M54823</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-05-12T19:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Currency amount formatting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-amount-formatting/m-p/898954#M54824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santhosh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The reason why I gave you the combination of WRITE and TRANSLATE is that it takes care of the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. WRITE with CURRENCY will take care of the number of decimal places to be used.&lt;/P&gt;&lt;P&gt;2. WRIT with NO GROUPING will take care of removing the separators for thousands etc.&lt;/P&gt;&lt;P&gt;3. TRANSLATE takes care of replacing all your '.'s or ','s with spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Finally CONDENSE NO GAPS gets rid of the spaces.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just food for thought.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2005 20:22:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-amount-formatting/m-p/898954#M54824</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-12T20:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Currency amount formatting</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/currency-amount-formatting/m-p/898955#M54825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for the input. It really helped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 May 2005 20:49:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/currency-amount-formatting/m-p/898955#M54825</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-05-12T20:49:10Z</dc:date>
    </item>
  </channel>
</rss>

