<?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: Short dump with decimal issue in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-decimal-issue/m-p/7184157#M1518963</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;//if I replace comma to dot it wll like 1.234.56 this still not correct I think&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont think keep it in code ..;) just wrire a temp program and check ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, &lt;/P&gt;&lt;P&gt;Vijay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sniper on Aug 26, 2010 11:48 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 26 Aug 2010 06:18:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-26T06:18:07Z</dc:date>
    <item>
      <title>Short dump with decimal issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-decimal-issue/m-p/7184154#M1518960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now I want to get total weight of the material as weight * quantity. When I doing this process the program short dump.&lt;/P&gt;&lt;P&gt;If my user setting in su01 is 1,234,567.89 it will work normally, but if I changed my user setting to 1.234.567,89 it will get weight like 6,55 which cause short dump in total weight get. Please help me for solution that no mater user setting is dot or comma it will work successfully. thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 05:36:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-decimal-issue/m-p/7184154#M1518960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-26T05:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump with decimal issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-decimal-issue/m-p/7184155#M1518961</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;select single * from USR01 where uname eq sy-uname. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here there will be a field called DCPFM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Build a condition like &lt;/P&gt;&lt;P&gt;if DCPFM eq  ' ' &lt;/P&gt;&lt;P&gt;translate itab-field using ',.' &lt;/P&gt;&lt;P&gt;elseif DCPFM eq 'X' . &lt;/P&gt;&lt;P&gt;translate itab-field using '.,' &lt;/P&gt;&lt;P&gt;Endif. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So irrespecive of ur user settings the values are adjusted  to the setting . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, &lt;/P&gt;&lt;P&gt;Vijay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 05:56:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-decimal-issue/m-p/7184155#M1518961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-26T05:56:08Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump with decimal issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-decimal-issue/m-p/7184156#M1518962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry I am not quite understand.&lt;/P&gt;&lt;P&gt;My current condition is if my user setting is 1.234,56, I get the value from database will be 1.234,56, but when I use this value to get total weight, ex 1.234,56*3 program will short dump. if I replace comma to dot it wll like 1.234.56 this still not correct I think.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 06:16:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-decimal-issue/m-p/7184156#M1518962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-26T06:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump with decimal issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-decimal-issue/m-p/7184157#M1518963</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;//if I replace comma to dot it wll like 1.234.56 this still not correct I think&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dont think keep it in code ..;) just wrire a temp program and check ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, &lt;/P&gt;&lt;P&gt;Vijay.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: sniper on Aug 26, 2010 11:48 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 06:18:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-decimal-issue/m-p/7184157#M1518963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-26T06:18:07Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump with decimal issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-decimal-issue/m-p/7184158#M1518964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the problem lies in fact that you are treating this variable as &lt;EM&gt;character&lt;/EM&gt; one (of type &lt;EM&gt;c&lt;/EM&gt; or &lt;EM&gt;string&lt;/EM&gt; ) . This is not correct. You should use only &lt;EM&gt;packed&lt;/EM&gt; numbers (of type &lt;EM&gt;p&lt;/EM&gt; ) for calculation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user settings has nothing to do with the calculation. These are purely for displaying data, not for calculating them. So what you need is something like&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: weight type p decimals 2 value '1234567.89',
         quantity type i value 3,
         result(10) type p decimals 2.   

result = weight * quantity. "the value stored in variable has form 3703703.67

"only when you display your data it will receive the format of user settings
write: weight,  "displayed as 1,234,567.89 or 1.234.567,89 -&amp;gt; depending on the settings
          result.    "displayed as 3,703,703.67 or 3.703.703,67 -&amp;gt; depending on the settings
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 06:30:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-decimal-issue/m-p/7184158#M1518964</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-08-26T06:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump with decimal issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-decimal-issue/m-p/7184159#M1518965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thank you for your detail answer.&lt;/P&gt;&lt;P&gt;In fact this value get from material classfication view and it should be something like 6,55 gms, in order to get the value first I need to use split to get value 6,55, but split can't split into variable type p. so that is why I face current issue.&lt;/P&gt;&lt;P&gt;              SPLIT ls_clobjdat-ausp1 AT space INTO lw_qnt1 lw_text.&lt;/P&gt;&lt;P&gt;              lw_qnt2 = lw_qnt1 * ls_it_gen-return_qty.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 06:40:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-decimal-issue/m-p/7184159#M1518965</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-26T06:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Short dump with decimal issue</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-decimal-issue/m-p/7184160#M1518966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If its from the material classification, check the definition of the characteristic. It may be that the value is stored as a floating point in table AUSP. If thats the case, then you can use AUSP-ATFLV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And to add: there are functions to transform the AUSP values to the external format, eg. 6.55 mm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Maen Anachronos on Aug 26, 2010 10:02 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Aug 2010 08:01:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/short-dump-with-decimal-issue/m-p/7184160#M1518966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-26T08:01:35Z</dc:date>
    </item>
  </channel>
</rss>

