<?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 Validation for US quantity format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-for-us-quantity-format/m-p/6133934#M1365845</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;  In SAP Transaction VT02N, there is a tab for Additional Data. There is an input field 'Text 3' where the user will enter Gross Weight. I need to validate that the gross weight entered is in US Format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that the input field is of type char where the user will enter a quantity.&lt;/P&gt;&lt;P&gt;US format is 123,456.000 i.e After the decimal 3 points and a comma after every 3 digits. &lt;/P&gt;&lt;P&gt;In case the value has 1 digit, 2 digits, 3 digits there is no comma. For 5 digits, 6 digits there will be 1 comma. For 7 digits, there will be 2 commas and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already found the user exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone suggest how should i validate that there is a comma after every 3 digits. Also input field should only contain '0,1,2,3,4,5,6,7,8,9 , and . '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;  Vanessa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Aug 2009 18:42:31 GMT</pubDate>
    <dc:creator>former_member609120</dc:creator>
    <dc:date>2009-08-27T18:42:31Z</dc:date>
    <item>
      <title>Validation for US quantity format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-for-us-quantity-format/m-p/6133934#M1365845</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;  In SAP Transaction VT02N, there is a tab for Additional Data. There is an input field 'Text 3' where the user will enter Gross Weight. I need to validate that the gross weight entered is in US Format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that the input field is of type char where the user will enter a quantity.&lt;/P&gt;&lt;P&gt;US format is 123,456.000 i.e After the decimal 3 points and a comma after every 3 digits. &lt;/P&gt;&lt;P&gt;In case the value has 1 digit, 2 digits, 3 digits there is no comma. For 5 digits, 6 digits there will be 1 comma. For 7 digits, there will be 2 commas and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already found the user exit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone suggest how should i validate that there is a comma after every 3 digits. Also input field should only contain '0,1,2,3,4,5,6,7,8,9 , and . '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;  Vanessa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 18:42:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-for-us-quantity-format/m-p/6133934#M1365845</guid>
      <dc:creator>former_member609120</dc:creator>
      <dc:date>2009-08-27T18:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Validation for US quantity format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-for-us-quantity-format/m-p/6133935#M1365846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try HRCM_STRING_TO_AMOUNT_CONVERT to validate the input. If it's valid, write the number back to a string by preceding it with SET COUNTRY 'US' (don't forget to reset it right after the write), check that the result equals the initial input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 21:45:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-for-us-quantity-format/m-p/6133935#M1365846</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2009-08-27T21:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Validation for US quantity format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-for-us-quantity-format/m-p/6133936#M1365847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This would be a permanent and fool proof solution.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT SINGLE dcpfm
        FROM usr01
        INTO lv_decf
        WHERE bname = sy-uname.

      IF lv_decf EQ space OR lv_decf EQ 'Y'.
        REPLACE ',' IN v_c WITH '.'.
      ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 23:36:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-for-us-quantity-format/m-p/6133936#M1365847</guid>
      <dc:creator>former_member156446</dc:creator>
      <dc:date>2009-08-27T23:36:04Z</dc:date>
    </item>
  </channel>
</rss>

