<?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: abap cal. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cal/m-p/3423406#M822233</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;Please declare the variables as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : x_kwmeng type p.&lt;/P&gt;&lt;P&gt;data : y_weight type p.&lt;/P&gt;&lt;P&gt;data : w_weight type p decimals 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_kwmeng = '100.111'.&lt;/P&gt;&lt;P&gt;y_weight = '1111.111'.   --&amp;gt; removed comma in the amount field&lt;/P&gt;&lt;P&gt;w_weight = ( ( x_kwmeng * y_weight * 1000 ) ).&lt;/P&gt;&lt;P&gt;write w_weight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can still declare the variables as char type but recommended to declare them as type P as they are amount fields. and the reason for getting the dump is giving comma in the Y_WEIGHT field that i have removed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;yellappa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Feb 2008 12:29:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-21T12:29:48Z</dc:date>
    <item>
      <title>abap cal.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cal/m-p/3423404#M822231</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;data : x_kwmeng(15).&lt;/P&gt;&lt;P&gt;data : y_weight(30) type c .&lt;/P&gt;&lt;P&gt;data : w_weight type p decimals 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_kwmeng = '100.111'.&lt;/P&gt;&lt;P&gt;y_weight = '1,111.111'.&lt;/P&gt;&lt;P&gt;w_weight =  ( ( x_kwmeng * y_weight * 1000 ) ).&lt;/P&gt;&lt;P&gt;write w_weight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DUMP : Unable to interpret "1,111.111 " as a number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Solution Pls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 12:25:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cal/m-p/3423404#M822231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T12:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: abap cal.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cal/m-p/3423405#M822232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Remove ',' coma in the char field &lt;/P&gt;&lt;P&gt;y_weight = '1111.111'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 12:28:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cal/m-p/3423405#M822232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T12:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: abap cal.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cal/m-p/3423406#M822233</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;Please declare the variables as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : x_kwmeng type p.&lt;/P&gt;&lt;P&gt;data : y_weight type p.&lt;/P&gt;&lt;P&gt;data : w_weight type p decimals 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;x_kwmeng = '100.111'.&lt;/P&gt;&lt;P&gt;y_weight = '1111.111'.   --&amp;gt; removed comma in the amount field&lt;/P&gt;&lt;P&gt;w_weight = ( ( x_kwmeng * y_weight * 1000 ) ).&lt;/P&gt;&lt;P&gt;write w_weight.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can still declare the variables as char type but recommended to declare them as type P as they are amount fields. and the reason for getting the dump is giving comma in the Y_WEIGHT field that i have removed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;yellappa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 12:29:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cal/m-p/3423406#M822233</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T12:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: abap cal.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cal/m-p/3423407#M822234</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;  y_weight = '1,111.111'. is the run time value thats been assigned to the variable . so cant exclude the comma .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Vind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 12:46:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cal/m-p/3423407#M822234</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T12:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: abap cal.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cal/m-p/3423408#M822235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If that is the case then remove the comma in the amount field as below and use the code as usual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE ALL OCCURRENCES OF ',' IN y_weight WITH SPACE.&lt;/P&gt;&lt;P&gt;CONDENSE Y_WEIGHT NO-GAPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if your system doesn't support REPLACE ALL OCCURRENCES then use following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do.&lt;/P&gt;&lt;P&gt;     replace ',' with space into y_weight.&lt;/P&gt;&lt;P&gt;    if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;           exit.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;CONDENSE Y_WEIGHT NO-GAPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once after using above statement then use y_weight in your calculations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: Since we are using condense statement please declare the y_weight as char type or else it will go to dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yellappa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: yellappa m on Feb 21, 2008 6:26 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2008 12:52:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cal/m-p/3423408#M822235</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-21T12:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: abap cal.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cal/m-p/3423409#M822236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi yellappa m  &lt;/P&gt;&lt;P&gt; I just resolved my issue by reading your answer. Brilliant idea.&lt;/P&gt;&lt;P&gt;Just wanted to say Thank you.&lt;/P&gt;&lt;P&gt;-ASB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Sep 2008 13:03:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-cal/m-p/3423409#M822236</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-19T13:03:20Z</dc:date>
    </item>
  </channel>
</rss>

