<?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: CHECKING for currency format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-for-currency-format/m-p/1826539#M352600</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the answer given by vijay is quite enough to solve the issue. There are other methods also for doing same using the String functionality in sync with the data type 'N' in which no commas or sign will be used. You can use your existing code by just moving the value to N type of field at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 Jan 2007 11:06:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-18T11:06:54Z</dc:date>
    <item>
      <title>CHECKING for currency format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-for-currency-format/m-p/1826537#M352598</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 am checking the currency format amount.the rule is Right justify amount decimal point and 2 decimal places. Not to use commas or the $ sign.&lt;/P&gt;&lt;P&gt;for the above condition the code is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:val type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; val = '123456789.00'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if val co '.0123456789'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    shift val right deleting TRAILING space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    if val cs ',' or val = '$'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      replace ',' with space into val.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      replace '$' with space into val.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; but iam getting '$' and ','. mark in o/p.&lt;/P&gt;&lt;P&gt;how can we check this condition.help me out from this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        skk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 07:09:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-for-currency-format/m-p/1826537#M352598</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-18T07:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: CHECKING for currency format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-for-currency-format/m-p/1826538#M352599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[code]parameters : val(30)  type c.&lt;/P&gt;&lt;P&gt;data : final(30) type c,&lt;/P&gt;&lt;P&gt;       cnt type i,&lt;/P&gt;&lt;P&gt;       v type c,&lt;/P&gt;&lt;P&gt;       n type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cnt = strlen( val ).&lt;/P&gt;&lt;P&gt;do cnt times.&lt;/P&gt;&lt;P&gt;move val+n(1) to v.&lt;/P&gt;&lt;P&gt;if v ca '.0123456789'.              "Bring in the values &lt;/P&gt;&lt;P&gt;move v to final+n(1).&lt;/P&gt;&lt;P&gt;*elseif v = ',' or v = '$'.             "&amp;lt;---no need of this&lt;/P&gt;&lt;P&gt;*continue.                              "&amp;lt;----no need &lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;n = n + 1.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;condense final no-gaps.&lt;/P&gt;&lt;P&gt;write:/ final .[/code]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 07:37:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-for-currency-format/m-p/1826538#M352599</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-18T07:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: CHECKING for currency format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-for-currency-format/m-p/1826539#M352600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the answer given by vijay is quite enough to solve the issue. There are other methods also for doing same using the String functionality in sync with the data type 'N' in which no commas or sign will be used. You can use your existing code by just moving the value to N type of field at the end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jan 2007 11:06:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-for-currency-format/m-p/1826539#M352600</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-18T11:06:54Z</dc:date>
    </item>
  </channel>
</rss>

