<?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: Validation of float in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-float/m-p/5569883#M1270567</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; i guess there is no such function module .....&lt;/P&gt;&lt;P&gt;but you can do this inside your abap code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;convert the current floating currency into type p with decimal places 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: X TYPE P DECIMALS 3 VALUE '1.267',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;Move the value to interger type variable. Move interger type variable toCharacter type, and move charater type variable to date type variable.You'll get the desired value. Hope it helps ........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 May 2009 11:22:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-21T11:22:41Z</dc:date>
    <item>
      <title>Validation of float</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-float/m-p/5569882#M1270566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   I have an input field in module pool programming. In that I am getting floating point value, which is of currency type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Is there any function module which will validate floating point value? It means that I should not have any value other than 1 2 3 4 5 6 7 8 9 0 and .(dot). It should not have more than one dot also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 10:58:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-float/m-p/5569882#M1270566</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T10:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Validation of float</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-float/m-p/5569883#M1270567</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; i guess there is no such function module .....&lt;/P&gt;&lt;P&gt;but you can do this inside your abap code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;convert the current floating currency into type p with decimal places 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: X TYPE P DECIMALS 3 VALUE '1.267',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;Move the value to interger type variable. Move interger type variable toCharacter type, and move charater type variable to date type variable.You'll get the desired value. Hope it helps ........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 11:22:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-float/m-p/5569883#M1270567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T11:22:41Z</dc:date>
    </item>
    <item>
      <title>Re: Validation of float</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-float/m-p/5569884#M1270568</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;Use this FM "CHECK_AND_CONVERT_NUMERICS" . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Smart Varghese.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 12:13:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-float/m-p/5569884#M1270568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T12:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Validation of float</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-float/m-p/5569885#M1270569</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;It's possible without writing code also..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just go to the screen painter (Change Mode)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;take one &lt;STRONG&gt;Input/OutPut Field&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and keep it on Screen...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now Double Click on that Input Output Field so you will get &lt;STRONG&gt;Screen Painter Attributes&lt;/STRONG&gt; Dialog Box..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In that Specify the &lt;STRONG&gt;Name&lt;/STRONG&gt; Parameter as &lt;STRONG&gt;KONV-KAWRT&lt;/STRONG&gt; &amp;lt;== this is for &lt;STRONG&gt;example&lt;/STRONG&gt;.. U can take any other &lt;STRONG&gt;Data Dictionary field&lt;/STRONG&gt; according to your need of type &lt;STRONG&gt;CURR&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and at below in the &lt;STRONG&gt;Attributes&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dict&lt;/STRONG&gt; Tab..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the Check box &lt;STRONG&gt;From Dict&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now go ahead with your process...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I won't accept any other char except 0 to 9 and , and .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Hope it will solve your problem..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;ilesh 24x7&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ilesh Nandaniya&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 12:21:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-float/m-p/5569885#M1270569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-21T12:21:54Z</dc:date>
    </item>
    <item>
      <title>Re: Validation of float</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-float/m-p/5569886#M1270570</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;It is not possible to have input field of type &lt;STRONG&gt;f&lt;/STRONG&gt; . You must have it type with &lt;STRONG&gt;P&lt;/STRONG&gt; (and this one is also used for currency values). &lt;/P&gt;&lt;P&gt;You don't need to check the conversion yourself. The format will be checked automatically providing you do the following:&lt;/P&gt;&lt;P&gt;- go to the screen and double click you input field&lt;/P&gt;&lt;P&gt;- choose &lt;EM&gt;Format&lt;/EM&gt; as DEC&lt;/P&gt;&lt;P&gt;- type in &lt;EM&gt;Text&lt;/EM&gt; field and edit mask like ________.__     this will enforce format of 8 digits, then dot '.' and then two decimal places. You can set it whatever you like. &lt;/P&gt;&lt;P&gt;- now run the program and notice that you are able to enter only digits (0-9) , one dot and two decimal places; if you are not following the format, system will show an error message with the correct one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's all you need&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2009 12:29:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-float/m-p/5569886#M1270570</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-05-21T12:29:15Z</dc:date>
    </item>
  </channel>
</rss>

