<?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: Validating amount value. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772107#M1463333</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if the FM SF_SPECIALCHAR_DELETE helps after uploading the excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Apr 2010 06:55:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-04-21T06:55:31Z</dc:date>
    <item>
      <title>Validating amount value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772104#M1463330</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 am uploading data into a custom table in that one field is there with amount. Let us say if user have entered some wrong amount i mean any additional characters like 12!45.78 in the excel file (In this case ! symbol is a special character which needs to be deleted) and write into my custom table as 1245.78. Any hints.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 06:32:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772104#M1463330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T06:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Validating amount value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772105#M1463331</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;if you are using FM 'GUI_UPLOAD' for  uploading,  pass value 'X" to the parameter " DAT_MODE". it can upload the  numeric valuecorrectly. &lt;/P&gt;&lt;P&gt;this will work only if you use GUI_UPLOAD FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards , &lt;/P&gt;&lt;P&gt;Prem&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 06:38:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772105#M1463331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T06:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Validating amount value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772106#M1463332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using FM ALSM_EXCEL_TO_INTERNAL_TABLE to upload my file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 06:43:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772106#M1463332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T06:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Validating amount value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772107#M1463333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check if the FM SF_SPECIALCHAR_DELETE helps after uploading the excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikranth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 06:55:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772107#M1463333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T06:55:31Z</dc:date>
    </item>
    <item>
      <title>Re: Validating amount value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772108#M1463334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vikranth,&lt;/P&gt;&lt;P&gt;Using FM SF_SPECIALCHAR_DELETE will also delete the decima separator '.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;My following idea also comes from Vikranth's suggestion - that is the way FM SF_SPECIALCHAR_DELETE does:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;constants: con_specharsear(50) value
     ''' _ &amp;lt; &amp;gt; ! " &amp;amp; / = ? : ; , - ( ) # # % ^ $ | ~ @ '.

data: lt_excel  type standard table of alsmex_tabline.
data: lw_excel like line of lt_excel.

call function 'ALSM_EXCEL_TO_INTERNAL_TABLE'
  exporting
    filename                = im_file_path
    i_begin_col             = 1
    i_begin_row             = 1
    i_end_col               = 15
    i_end_row               = 65000
  tables
    intern                  = lt_excel
  exceptions
    inconsistent_parameters = 1
    upload_ole              = 2
    others                  = 3.

if sy-subrc = 0.
* Populate data to internal table
  sort lt_excel by row col.

  loop at lt_excel into lw_excel.
*   Check if field is amount field
    if field is amount.
      translate lt_excel-value using con_specharsear.
      condense lt_excel-value no-gaps. " Delete predefined chars
    endif.
    
*   Then move the value to your internal table
    it-amount = lt_excel-value.
    ....
  endloop.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 07:39:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772108#M1463334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T07:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: Validating amount value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772109#M1463335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will go for the solution proposed by Khanh, but prior to this you have to define a list with all the special characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyways i always prefer the users to restrain some caution while preparing the data. We are not here to clean up their mess &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 07:54:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772109#M1463335</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-04-21T07:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Validating amount value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772110#M1463336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Since the numeric values can contain a ',' '.' or a space for a decimal separator, these values are maintained in table USR01-DCPFM.&lt;/P&gt;&lt;P&gt;Before correcting/eradicating the entry which contains an invalid character, do a check on which is the decimal seprator.&lt;/P&gt;&lt;P&gt;{set for User's Login in system} by using a select query-&lt;/P&gt;&lt;P&gt;&lt;SPAN __jive_macro_name="CODE"&gt; SELECT * FROM USR01 WHERE BNAME = SY-UNAME &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The field DCPFM will contain the correct decimal separator.&lt;/P&gt;&lt;P&gt;Based on what is maintained, you can create a constant that contains all non-numeric charatcers + decimal separatir and do a&lt;/P&gt;&lt;P&gt;logical operation 'CO'/'NA' on your field amount.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Dedeepya C&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: dedeepya reddy on Apr 21, 2010 9:59 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 07:58:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772110#M1463336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T07:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Validating amount value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772111#M1463337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much to all you guys i have implemented the ideas given, but my last query is if the amount is 313.75.21 in this case two points are there which will again take this to dump. So any hints how to over come from 2 or more points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 09:04:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772111#M1463337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T09:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Validating amount value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772112#M1463338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u bee bit more clear plz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 09:06:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772112#M1463338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T09:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: Validating amount value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772113#M1463339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There are 3 formats maintained in any sap system.&lt;/P&gt;&lt;P&gt;1) 1.234.567,89 = here the '.' is the thousands separator and ',' is the decimal separator {DCPFM = ' ' }&lt;/P&gt;&lt;P&gt;2) 1,234,567.89 = here the ',' is the thousands separator and '.' is the decimal separator {DCPFM = X }&lt;/P&gt;&lt;P&gt;3) 1 234 567,89  = here 'space' is the thousands separator and ',' decimal separator  {DCPFM = Y }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can check what format/setting is maintained for your profile by checking the entry in USR01 table passing &lt;/P&gt;&lt;P&gt;your login id under BNAME field.&lt;/P&gt;&lt;P&gt;From the example u've cited '313.75.21' has '.' as thousands separator and not a decimal separator right, it looks like ' '  is the DCPFM set in ur case. In such a case both '.' and a ',' hold valid as a part of amount value.&lt;/P&gt;&lt;P&gt;Just tat u ve to ensure that ',' if there in amount must be the last separator i.e there should be no '.' following ','.&lt;/P&gt;&lt;P&gt;This u can implemet by applyin a logical snippet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope i was clearer here. &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-- Dedeepya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 09:21:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772113#M1463339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T09:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: Validating amount value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772114#M1463340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi VEnk@,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I personally second Suha's cautioning words on cleaning up faulty data. It can be very misleading to automatically fix the data, because this means that you're assuming you know the intent of the user (which might backfire in some situations). So from an application design I think it would be much cleaner to indicate the faulty rows/cells to the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A good design might be to split your data into good data, which can be loaded and into another set of bad data, that will not be loaded but somehow logged so that the user can later correct it. If you've ever used an extract without inspecting the data and loaded it into a forgiving application that tries to load anything instead of telling you that something is wrong, then you know how annoying that is (because you discover the problem probably only much later down the road once queries go wrong).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyhow, assuming that all this is not deterring you and you want to go ahead with your solution, here are two very simple ABAP statements that weed out all non-digits in the string &lt;SPAN __default_attr="Courier New" __jive_macro_name="font"&gt;VALUE&lt;/SPAN&gt;:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
replace all occurrences of regex '[^0-9.]' in VALUE with ''.
replace all occurrences of regex '\.(?=.*\.)' in VALUE with ''.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It basically first removes all non-numeric characters (except for decimal point) and then kills all but the last decimal point (to answer your last question).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What's wrong with this approach? Should you have numbers in scientific notation (e.g. '1.4E3') you'd basically return a completely wrong number. Any negative number will be quietly turned into a positive number (and I don't see how you could come up with an easy way to figure out what '14-3' should mean). As pointed out by Dedeepya the decimal point setting depends on the locale; however, here we should be more precise and say it depends on the locale of the person who created the file, not actually the locale configured for the person uploading the file in SAP (so unless there's a strong connection because it's the same person, I don't see why using this information might be of any value).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So please do us all a favor and don't do this kind of data cleansing that most likely will give support people a major headache later...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers, harald&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 09:32:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772114#M1463340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T09:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Validating amount value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772115#M1463341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Venkat,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with everyone here is that we need the user to key in correct data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I still support you an idea to do your requirement.&lt;/P&gt;&lt;P&gt;That is you can write a subroutine with the idea as following:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: lv_decimal type string.

lv_decimal = '123.123.123'.

perform convert_decimal changing lv_decimal.

write: lv_decimal.


*&amp;amp;---------------------------------------------------------------------*
*&amp;amp;      Form  convert_decimal
*&amp;amp;---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      --&amp;gt;P_DECIMAL  text
*----------------------------------------------------------------------*
form convert_decimal changing p_decimal.
  data: lt_string type table of string.
  data: lv_string type string.
  data: lv_line type i.

  split p_decimal at '.' into table lt_string.

  lv_line = lines( lt_string ).

  if lv_line &amp;gt; 2.
    clear: p_decimal.
    loop at lt_string into lv_string.
      if sy-tabix &amp;lt; lv_line.
        concatenate p_decimal lv_string into p_decimal.
      else.
        concatenate p_decimal lv_string into p_decimal separated by '.'.
      endif.
    endloop.
  endif.

endform.                    "convert_decimal&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Khanh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Khanh Nguyen on Apr 21, 2010 6:00 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 10:59:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772115#M1463341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T10:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: Validating amount value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772116#M1463342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if the decimal separator is ',' &amp;amp; not '.' ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 11:02:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772116#M1463342</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-04-21T11:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Validating amount value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772117#M1463343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Susha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can define a decimal separator variable:&lt;/P&gt;&lt;P&gt;data: lv_dec_sept(1) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. select DCPFM from USR01 with current user login.&lt;/P&gt;&lt;P&gt;Then base on the value of USR01-DCPFM we can set the decimal separator:&lt;/P&gt;&lt;P&gt; If value = '' or 'Y' --&amp;gt; lv_dec_sept = ','.&lt;/P&gt;&lt;P&gt;else --&amp;gt; lv_dec_sept = '.'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Then we process the same with the separator instead of hard coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's my idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Khanh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Apr 2010 11:36:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772117#M1463343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-21T11:36:43Z</dc:date>
    </item>
    <item>
      <title>Re: Validating amount value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772118#M1463344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;We've already explained that factor -- decimal separator being '.' or a ',' or a plain space.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Those 3 are the only extra special characters i can say that might appear in a amount value which if declared is of type I or P.&lt;/P&gt;&lt;P&gt;VEn@ can just add a bit of coding to remove the respective character from his constant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 04:13:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772118#M1463344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T04:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: Validating amount value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772119#M1463345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;We've already explained that factor -- decimal separator being '.' or a ',' or a plain space.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Those 3 are the only extra special characters i can say that might appear in a amount value which if declared is of type I or P.&lt;/P&gt;&lt;P&gt;VEn@ can just add a bit of coding to remove the respective character from his non-numeric constant holder and adjust his amount field accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@ VEnk@ have you had any progress on this issue with such a many inputs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Dedeepya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Apr 2010 04:14:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772119#M1463345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-22T04:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: Validating amount value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772120#M1463346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA text TYPE string VALUE '123!.123.123'.

REPLACE ALL OCCURRENCES OF REGEX '[^0-9.]' IN text WITH ''.
REPLACE ALL OCCURRENCES OF REGEX '\.(?=.*\.)' IN text WITH ''.

WRITE TEXT.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;OUTPUT =  123123.123&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Apr 2010 12:16:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772120#M1463346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-23T12:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Validating amount value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772121#M1463347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks alot for all your help it was really helpful. Check my code even..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        lw_string = 'Some value populated'&lt;/P&gt;&lt;P&gt;        REPLACE ALL OCCURRENCES OF ',' IN lw_string WITH space.&lt;/P&gt;&lt;P&gt;        CONDENSE lw_string NO-GAPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF lw_string CO '0123456789+-. '.&lt;/P&gt;&lt;P&gt;          SPLIT  lw_string   AT '.' INTO lw_var1 lw_var2.&lt;/P&gt;&lt;P&gt;          REPLACE ALL OCCURRENCES OF '.' IN lw_var2 WITH space.&lt;/P&gt;&lt;P&gt;          IF sy-subrc = 0. "IF sy-subrc fails then the amt is correct else triggers a msg.&lt;/P&gt;&lt;P&gt;            CONCATENATE lw_msg&lt;/P&gt;&lt;P&gt;                        lw_string&lt;/P&gt;&lt;P&gt;                        INTO lw_amtmsg SEPARATED BY space.&lt;/P&gt;&lt;P&gt;            APPEND lw_amtmsg TO it_ezcfmee.&lt;/P&gt;&lt;P&gt;            w_flag = 'X'.&lt;/P&gt;&lt;P&gt;            CLEAR lw_amtmsg.&lt;/P&gt;&lt;P&gt;          ELSE.&lt;/P&gt;&lt;P&gt;            fs_zcfmee-ueamt = lw_string.&lt;/P&gt;&lt;P&gt;          ENDIF.&lt;/P&gt;&lt;P&gt;        ELSE.&lt;/P&gt;&lt;P&gt;          CONCATENATE lw_msg&lt;/P&gt;&lt;P&gt;                        lw_string&lt;/P&gt;&lt;P&gt;                        INTO lw_amtmsg SEPARATED BY space.&lt;/P&gt;&lt;P&gt;          APPEND lw_amtmsg TO it_ezcfmee.&lt;/P&gt;&lt;P&gt;          w_flag = 'X'.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;VEnk@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Apr 2010 04:08:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772121#M1463347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-04-26T04:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Validating amount value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772122#M1463348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;closed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 04:19:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772122#M1463348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-19T04:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Validating amount value.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772123#M1463349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;closed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Oct 2010 04:20:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-amount-value/m-p/6772123#M1463349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-10-19T04:20:03Z</dc:date>
    </item>
  </channel>
</rss>

