<?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: Convert string to float in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-to-float/m-p/12466823#M2000643</link>
    <description>&lt;P&gt;Think to split the problem in smaller units.&lt;/P&gt;&lt;P&gt;So your first question is to remove the blanks in STRING so that to get 123456789123.456&lt;/P&gt;</description>
    <pubDate>Sun, 18 Apr 2021 06:52:55 GMT</pubDate>
    <dc:creator>Sandra_Rossi</dc:creator>
    <dc:date>2021-04-18T06:52:55Z</dc:date>
    <item>
      <title>Convert string to float</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-to-float/m-p/12466821#M2000641</link>
      <description>&lt;P&gt;in this code output will be &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1912903-21.png" /&gt;&lt;/P&gt;
  &lt;P&gt;i want &lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1912904-31.png" /&gt;&lt;/P&gt;
  &lt;P&gt;DATA v_str TYPESTRINGVALUE'123,456,789,123.456'.&lt;/P&gt;
  &lt;P&gt;DATA v_flt TYPE F.WRITE:/'String :', v_str."With Commas&lt;/P&gt;
  &lt;P&gt;REPLACEALLOCCURRENCESOF','IN v_str WITH''.&lt;/P&gt;
  &lt;P&gt;WRITE:/'String :', v_str."Without Commas&lt;/P&gt;
  &lt;P&gt;CATCHSYSTEM-EXCEPTIONS ARITHMETIC_ERRORS =1&lt;/P&gt;
  &lt;P&gt; CONVERSION_ERRORS =2.&lt;/P&gt;
  &lt;P&gt;MOVE v_str TO v_flt.ENDCATCH.&lt;/P&gt;
  &lt;P&gt;WRITE:/'Float :', v_flt."Float value&lt;/P&gt;</description>
      <pubDate>Sat, 17 Apr 2021 17:38:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-to-float/m-p/12466821#M2000641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2021-04-17T17:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: Convert string to float</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-to-float/m-p/12466822#M2000642</link>
      <description>&lt;P&gt;Have you checked the user settings; The output format is based on what the defaults is set to&lt;/P&gt;</description>
      <pubDate>Sat, 17 Apr 2021 19:49:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-to-float/m-p/12466822#M2000642</guid>
      <dc:creator>RemiKaimal</dc:creator>
      <dc:date>2021-04-17T19:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Convert string to float</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-to-float/m-p/12466823#M2000643</link>
      <description>&lt;P&gt;Think to split the problem in smaller units.&lt;/P&gt;&lt;P&gt;So your first question is to remove the blanks in STRING so that to get 123456789123.456&lt;/P&gt;</description>
      <pubDate>Sun, 18 Apr 2021 06:52:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-to-float/m-p/12466823#M2000643</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-04-18T06:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Convert string to float</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-to-float/m-p/12466824#M2000644</link>
      <description>&lt;P&gt;Looks like the decimal comma.&lt;/P&gt;</description>
      <pubDate>Sun, 18 Apr 2021 07:32:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-to-float/m-p/12466824#M2000644</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2021-04-18T07:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Convert string to float</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-to-float/m-p/12466825#M2000645</link>
      <description>&lt;P&gt;Hello Symbat, &lt;/P&gt;&lt;P&gt;Here's a page which explains several ways of converting strings to numbers. For your question, Method 1 in the second block seems to be fitting very well:&lt;/P&gt;&lt;P&gt;&lt;A href="https://sap4tech.net/convert-string-number-string-abap/amp/#method-1-with-abap-coding-the-statement" target="test_blank"&gt;https://sap4tech.net/convert-string-number-string-abap/amp/#method-1-with-abap-coding-the-statement&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Best Regards &lt;/P&gt;&lt;P&gt;Marco &lt;/P&gt;</description>
      <pubDate>Sun, 18 Apr 2021 12:21:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convert-string-to-float/m-p/12466825#M2000645</guid>
      <dc:creator>Marco_Flamm</dc:creator>
      <dc:date>2021-04-18T12:21:33Z</dc:date>
    </item>
  </channel>
</rss>

