<?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: Getting problem when adding two quantity fields. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-when-adding-two-quantity-fields/m-p/4480782#M1060976</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Srinivas,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please specify ur problem clearly&lt;/STRONG&gt; Otherwise ur thread will be locked as it make no sence to the readers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my understanding u might be getting overflow problem. This might be because u are declaring both of same type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: If both  lv_menge and lv_quan has big values, when u add these two it might exceed system limit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So take lv_quan as TYPE P length 25 DECIMALS 2. Practically quantities won't cross this limit.&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA: lv_quan(25) TYPE p DECIMALS 2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Sep 2008 10:57:57 GMT</pubDate>
    <dc:creator>vinod_vemuru2</dc:creator>
    <dc:date>2008-09-12T10:57:57Z</dc:date>
    <item>
      <title>Getting problem when adding two quantity fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-when-adding-two-quantity-fields/m-p/4480781#M1060975</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;I have two fields like following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data:        lv_menge TYPE menge,&lt;/P&gt;&lt;P&gt;                lv_quan  TYPE menge.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I am doing the following operation I am getting problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lv_quan = lv_menge + lv_quan.&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;srinivas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 10:50:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-when-adding-two-quantity-fields/m-p/4480781#M1060975</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T10:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Getting problem when adding two quantity fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-when-adding-two-quantity-fields/m-p/4480782#M1060976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Srinivas,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please specify ur problem clearly&lt;/STRONG&gt; Otherwise ur thread will be locked as it make no sence to the readers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my understanding u might be getting overflow problem. This might be because u are declaring both of same type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: If both  lv_menge and lv_quan has big values, when u add these two it might exceed system limit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So take lv_quan as TYPE P length 25 DECIMALS 2. Practically quantities won't cross this limit.&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DATA: lv_quan(25) TYPE p DECIMALS 2.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 10:57:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-when-adding-two-quantity-fields/m-p/4480782#M1060976</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-09-12T10:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Getting problem when adding two quantity fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-when-adding-two-quantity-fields/m-p/4480783#M1060977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sreenivasulu,&lt;/P&gt;&lt;P&gt;   &lt;/P&gt;&lt;P&gt; Exactly what error u r getting? &lt;/P&gt;&lt;P&gt; and check the values by keeping break-point. check is it more then the size it can hold.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Azim.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 10:58:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-when-adding-two-quantity-fields/m-p/4480783#M1060977</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T10:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Getting problem when adding two quantity fields.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-when-adding-two-quantity-fields/m-p/4480784#M1060978</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;Exactly what problem you are getting?&lt;/P&gt;&lt;P&gt;MENGE is a structure and also a DOMAIN.&lt;/P&gt;&lt;P&gt;I think it will give some error message if you declare like that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2008 10:59:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/getting-problem-when-adding-two-quantity-fields/m-p/4480784#M1060978</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-12T10:59:29Z</dc:date>
    </item>
  </channel>
</rss>

