<?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 Remove commas/dots from comp_qty in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-commas-dots-from-comp-qty/m-p/8865297#M1686633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this question has been asked many times, but i could not find my answer anywhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam using BAPI 'CSAP_MAT_BOM_READ' which returns the field COMP_QTY in table T_STPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When this field greter than or equal to 1000, it contains a comma in it like 1,000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And later when i use this field for my calculcations, it gives me an error (dump)saying unable to interpret this as a number.&lt;/P&gt;&lt;P&gt;I know this is because this number contains the comma in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the solutions i found so far is to replace the commas with space and condense it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what if the user has the different decimal notation settings. All the decimals will be displayed as commas.&lt;/P&gt;&lt;P&gt;And that time replacing the commas with space doenst work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eq: 1000.33 will be displayed as 1000,33&lt;/P&gt;&lt;P&gt;And replacing the commas with space becomes 100033.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if there is any other way in sap we can handle this with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 28 Jul 2012 22:15:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-07-28T22:15:09Z</dc:date>
    <item>
      <title>Remove commas/dots from comp_qty</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-commas-dots-from-comp-qty/m-p/8865297#M1686633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know this question has been asked many times, but i could not find my answer anywhere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam using BAPI 'CSAP_MAT_BOM_READ' which returns the field COMP_QTY in table T_STPO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When this field greter than or equal to 1000, it contains a comma in it like 1,000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And later when i use this field for my calculcations, it gives me an error (dump)saying unable to interpret this as a number.&lt;/P&gt;&lt;P&gt;I know this is because this number contains the comma in it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the solutions i found so far is to replace the commas with space and condense it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But what if the user has the different decimal notation settings. All the decimals will be displayed as commas.&lt;/P&gt;&lt;P&gt;And that time replacing the commas with space doenst work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eq: 1000.33 will be displayed as 1000,33&lt;/P&gt;&lt;P&gt;And replacing the commas with space becomes 100033.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if there is any other way in sap we can handle this with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jul 2012 22:15:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-commas-dots-from-comp-qty/m-p/8865297#M1686633</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-28T22:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Remove commas/dots from comp_qty</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/remove-commas-dots-from-comp-qty/m-p/8865298#M1686634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nevermind,&lt;/P&gt;&lt;P&gt;table USR01 got the user settings.&lt;/P&gt;&lt;P&gt;and i used following logic&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;CASE USR01-DCPFM.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;WHEN&lt;/SPAN&gt; &lt;SPAN class="L1S33"&gt;''&lt;/SPAN&gt;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;REPLACE&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;ALL&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;OCCURRENCES&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;OF&lt;/SPAN&gt; &lt;SPAN class="L1S33"&gt;'.'&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;IN&lt;/SPAN&gt; WA_STPO-COMP_QTY &lt;SPAN class="L1S52"&gt;WITH&lt;/SPAN&gt; &lt;SPAN class="L1S33"&gt;' '&lt;/SPAN&gt;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;REPLACE&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;ALL&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;OCCURRENCES&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;OF&lt;/SPAN&gt; &lt;SPAN class="L1S33"&gt;','&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;IN&lt;/SPAN&gt; WA_STPO-COMP_QTY &lt;SPAN class="L1S52"&gt;WITH&lt;/SPAN&gt; &lt;SPAN class="L1S33"&gt;'.'&lt;/SPAN&gt;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;WHEN&lt;/SPAN&gt; &lt;SPAN class="L1S33"&gt;'X'&lt;/SPAN&gt;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;REPLACE&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;ALL&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;OCCURRENCES&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;OF&lt;/SPAN&gt; &lt;SPAN class="L1S33"&gt;','&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;IN&lt;/SPAN&gt; WA_STPO-COMP_QTY &lt;SPAN class="L1S52"&gt;WITH&lt;/SPAN&gt; &lt;SPAN class="L1S33"&gt;' '&lt;/SPAN&gt;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;WHEN&lt;/SPAN&gt; &lt;SPAN class="L1S33"&gt;'Y'&lt;/SPAN&gt;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;REPLACE&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;ALL&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;OCCURRENCES&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;OF&lt;/SPAN&gt; &lt;SPAN class="L1S33"&gt;','&lt;/SPAN&gt; &lt;SPAN class="L1S52"&gt;IN&lt;/SPAN&gt; WA_STPO-COMP_QTY &lt;SPAN class="L1S52"&gt;WITH&lt;/SPAN&gt; &lt;SPAN class="L1S33"&gt;'.'&lt;/SPAN&gt;.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L1S52"&gt;ENDCASE&lt;/SPAN&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Jul 2012 02:05:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/remove-commas-dots-from-comp-qty/m-p/8865298#M1686634</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-29T02:05:29Z</dc:date>
    </item>
  </channel>
</rss>

