<?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 String value to Quantity value in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-value-to-quantity-value/m-p/4199801#M1003738</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;Pls resolve my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I am writing the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: l_free1 TYPE string,&lt;/P&gt;&lt;P&gt;            l_free2 TYPE string,&lt;/P&gt;&lt;P&gt;            l_num TYPE string,&lt;/P&gt;&lt;P&gt;            l_freeqty1 type string,&lt;/P&gt;&lt;P&gt;            l_freeqty type knrmm.&lt;/P&gt;&lt;P&gt;************************&lt;/P&gt;&lt;P&gt;l_freeqty carries some value from program.&lt;/P&gt;&lt;P&gt;eg : l_freeqty = '3.500'&lt;/P&gt;&lt;P&gt;I have changed the l_freeqty to l_freeqty1 since for condense and split we need to use only C,N,D,T and string...&lt;/P&gt;&lt;P&gt;************************&lt;/P&gt;&lt;P&gt;                      l_freeqty1 = l_freeqty.&lt;/P&gt;&lt;P&gt;                      CONDENSE l_freeqty1.&lt;/P&gt;&lt;P&gt;                      SPLIT l_freeqty1 AT '.' INTO l_free1 l_free2.&lt;/P&gt;&lt;P&gt;                      MOVE l_free2+0(1) TO l_num.&lt;/P&gt;&lt;P&gt;                      IF l_num GE '5'.&lt;/P&gt;&lt;P&gt;                        l_free1 = l_free1 + 1.&lt;/P&gt;&lt;P&gt;                        l_freeqty1 = l_free1.&lt;/P&gt;&lt;P&gt;                        l_freeqty = l_freeqty1.&lt;/P&gt;&lt;P&gt;                      ELSE.&lt;/P&gt;&lt;P&gt;                        l_freeqty1 = l_free1.&lt;/P&gt;&lt;P&gt;                        clear l_freeqty.&lt;/P&gt;&lt;P&gt;                        l_freeqty = l_freeqty1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue : The value in l_freeqty1 = 4 &lt;/P&gt;&lt;P&gt;              when I am passing it to l_freeqty it is taking as 0.004.&lt;/P&gt;&lt;P&gt;Pls give the way to update the l_freeqty as 4.000... or any other way &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Jul 2008 05:11:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-23T05:11:30Z</dc:date>
    <item>
      <title>String value to Quantity value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-value-to-quantity-value/m-p/4199801#M1003738</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;Pls resolve my issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here I am writing the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: l_free1 TYPE string,&lt;/P&gt;&lt;P&gt;            l_free2 TYPE string,&lt;/P&gt;&lt;P&gt;            l_num TYPE string,&lt;/P&gt;&lt;P&gt;            l_freeqty1 type string,&lt;/P&gt;&lt;P&gt;            l_freeqty type knrmm.&lt;/P&gt;&lt;P&gt;************************&lt;/P&gt;&lt;P&gt;l_freeqty carries some value from program.&lt;/P&gt;&lt;P&gt;eg : l_freeqty = '3.500'&lt;/P&gt;&lt;P&gt;I have changed the l_freeqty to l_freeqty1 since for condense and split we need to use only C,N,D,T and string...&lt;/P&gt;&lt;P&gt;************************&lt;/P&gt;&lt;P&gt;                      l_freeqty1 = l_freeqty.&lt;/P&gt;&lt;P&gt;                      CONDENSE l_freeqty1.&lt;/P&gt;&lt;P&gt;                      SPLIT l_freeqty1 AT '.' INTO l_free1 l_free2.&lt;/P&gt;&lt;P&gt;                      MOVE l_free2+0(1) TO l_num.&lt;/P&gt;&lt;P&gt;                      IF l_num GE '5'.&lt;/P&gt;&lt;P&gt;                        l_free1 = l_free1 + 1.&lt;/P&gt;&lt;P&gt;                        l_freeqty1 = l_free1.&lt;/P&gt;&lt;P&gt;                        l_freeqty = l_freeqty1.&lt;/P&gt;&lt;P&gt;                      ELSE.&lt;/P&gt;&lt;P&gt;                        l_freeqty1 = l_free1.&lt;/P&gt;&lt;P&gt;                        clear l_freeqty.&lt;/P&gt;&lt;P&gt;                        l_freeqty = l_freeqty1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My issue : The value in l_freeqty1 = 4 &lt;/P&gt;&lt;P&gt;              when I am passing it to l_freeqty it is taking as 0.004.&lt;/P&gt;&lt;P&gt;Pls give the way to update the l_freeqty as 4.000... or any other way &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 05:11:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-value-to-quantity-value/m-p/4199801#M1003738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-23T05:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: String value to Quantity value</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/string-value-to-quantity-value/m-p/4199802#M1003739</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;declare l_freeqty as&lt;/P&gt;&lt;P&gt;l_freeqty type p decimal 2.&lt;/P&gt;&lt;P&gt;&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;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUDHIR MANJAREKAR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jul 2008 05:23:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/string-value-to-quantity-value/m-p/4199802#M1003739</guid>
      <dc:creator>Sidh_M</dc:creator>
      <dc:date>2008-07-23T05:23:19Z</dc:date>
    </item>
  </channel>
</rss>

