<?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: Quantity, Currency and Numeric Fields format Check in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/quantity-currency-and-numeric-fields-format-check/m-p/6949792#M1488513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: p_num TYPE char10.

AT SELECTION-SCREEN.

IF p_num CN '0123456789,.'.
  MESSAGE 'Field is numeric. Please correct your input' TYPE 'E'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Jun 10, 2010 11:17 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jun 2010 05:44:15 GMT</pubDate>
    <dc:creator>SuhaSaha</dc:creator>
    <dc:date>2010-06-10T05:44:15Z</dc:date>
    <item>
      <title>Quantity, Currency and Numeric Fields format Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quantity-currency-and-numeric-fields-format-check/m-p/6949791#M1488512</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 have designed a Screen where I do have fields of Quantity, Currency and Numeric type.&lt;/P&gt;&lt;P&gt;User can pass '/' to these fields in the screen. But as these are Quantity, Currency and Numeric type, when '/' is passed it gives error message.&lt;/P&gt;&lt;P&gt;Now I have changed these fields to the CHAR type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the general Validations that occurs in these Fields should be done like if we enter alphabets (a,b,c etc) error message should be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone let me know how to check this?&lt;/P&gt;&lt;P&gt;Do we have any function module?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shravan G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 05:38:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quantity-currency-and-numeric-fields-format-check/m-p/6949791#M1488512</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-06-10T05:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Quantity, Currency and Numeric Fields format Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quantity-currency-and-numeric-fields-format-check/m-p/6949792#M1488513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: p_num TYPE char10.

AT SELECTION-SCREEN.

IF p_num CN '0123456789,.'.
  MESSAGE 'Field is numeric. Please correct your input' TYPE 'E'.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Jun 10, 2010 11:17 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 05:44:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quantity-currency-and-numeric-fields-format-check/m-p/6949792#M1488513</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2010-06-10T05:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Quantity, Currency and Numeric Fields format Check</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/quantity-currency-and-numeric-fields-format-check/m-p/6949793#M1488514</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;You can achieve it like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
parameters: input type char10.
data: quantity(8) type p.   " here you put your actual numeric field

at selection-screen on input.

if input = '/'.
*   do something in case of slash - probably nothing for this is just the input check
else.
        try.
                quantity = input.
        catch cx_sy_conversion_error.
                 message 'Enter numeric value or slash'(001) type 'E'.
        endtry.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Gerd Rother&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jun 2010 07:25:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/quantity-currency-and-numeric-fields-format-check/m-p/6949793#M1488514</guid>
      <dc:creator>gerd_rother</dc:creator>
      <dc:date>2010-06-10T07:25:56Z</dc:date>
    </item>
  </channel>
</rss>

