<?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 oveflow for type p fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/oveflow-for-type-p-fields/m-p/4191993#M1002040</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 a requiement of deviding the packed (type p ) fields.&lt;/P&gt;&lt;P&gt;and moving the result into packed field.&lt;/P&gt;&lt;P&gt;data :pack(5) type p decimals 4 ,&lt;/P&gt;&lt;P&gt;      a(5) type p decimals 4 value '1000.3',&lt;/P&gt;&lt;P&gt;       b(5) type p decimals 4 value '00.5',&lt;/P&gt;&lt;P&gt;        c(5) type p decimals 4 value '00.2457',&lt;/P&gt;&lt;P&gt;         d(5) type p decimals 4 value '2000.765'.&lt;/P&gt;&lt;P&gt;pack = ( ( a / b ) / ( c / d ) ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : / pack.&lt;/P&gt;&lt;P&gt;while moving the result  I am getting dump because of  overflow.&lt;/P&gt;&lt;P&gt;resultant value field should be of type P and decimals 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest me how to avoid dump.&lt;/P&gt;&lt;P&gt;Are there any exceptions that I need to handle&lt;/P&gt;&lt;P&gt;if u have code for this please let me know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 12 Jul 2008 10:17:24 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-12T10:17:24Z</dc:date>
    <item>
      <title>oveflow for type p fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oveflow-for-type-p-fields/m-p/4191993#M1002040</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 a requiement of deviding the packed (type p ) fields.&lt;/P&gt;&lt;P&gt;and moving the result into packed field.&lt;/P&gt;&lt;P&gt;data :pack(5) type p decimals 4 ,&lt;/P&gt;&lt;P&gt;      a(5) type p decimals 4 value '1000.3',&lt;/P&gt;&lt;P&gt;       b(5) type p decimals 4 value '00.5',&lt;/P&gt;&lt;P&gt;        c(5) type p decimals 4 value '00.2457',&lt;/P&gt;&lt;P&gt;         d(5) type p decimals 4 value '2000.765'.&lt;/P&gt;&lt;P&gt;pack = ( ( a / b ) / ( c / d ) ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : / pack.&lt;/P&gt;&lt;P&gt;while moving the result  I am getting dump because of  overflow.&lt;/P&gt;&lt;P&gt;resultant value field should be of type P and decimals 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone suggest me how to avoid dump.&lt;/P&gt;&lt;P&gt;Are there any exceptions that I need to handle&lt;/P&gt;&lt;P&gt;if u have code for this please let me know&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jul 2008 10:17:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oveflow-for-type-p-fields/m-p/4191993#M1002040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-12T10:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: oveflow for type p fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oveflow-for-type-p-fields/m-p/4191994#M1002041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Devi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declare pack as below..&lt;/P&gt;&lt;P&gt;As you get &lt;STRONG&gt;16,291,129.2593&lt;/STRONG&gt; after computaion...&lt;/P&gt;&lt;P&gt;you change the declaration as below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data :pack type p decimals 4.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that pack will have value with decimals 4..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this solve your problem..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any issue still revert back.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Narin Nandivada&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jul 2008 10:23:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oveflow-for-type-p-fields/m-p/4191994#M1002041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-12T10:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: oveflow for type p fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oveflow-for-type-p-fields/m-p/4191995#M1002042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rama devi,&lt;/P&gt;&lt;P&gt;Let me wxplain why this dump came.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The calculated value here is 16,291,129.2593. We are trying to place this in field of length 5 and decimals 4. Number of digits before decimal is more than defined lenth.(5) So it is not able to place this data and can't truncate since decimals are there.&lt;/P&gt;&lt;P&gt;So it don't know what to do. Thats why dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Always remember one thing, If u r going to calculate some thing then define the length of resultant variable to the max possible extent to avoid such dumps. There is no other way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If u declare pack variable as type c length 5 then u will get&lt;/STRONG&gt; &lt;STRONG&gt;result as --&lt;/STRONG&gt;1129--. Here this * indicates ur data was truncated.* &lt;STRONG&gt;In this case u can avoid dump at least. But data will be&lt;/STRONG&gt; &lt;STRONG&gt;truncated.&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>Sat, 12 Jul 2008 10:31:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oveflow-for-type-p-fields/m-p/4191995#M1002042</guid>
      <dc:creator>vinod_vemuru2</dc:creator>
      <dc:date>2008-07-12T10:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: oveflow for type p fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oveflow-for-type-p-fields/m-p/4191996#M1002043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;do it in this manner&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data :pack type p decimals 4 ,&lt;/P&gt;&lt;P&gt;a type p decimals 4 value '1000.3',&lt;/P&gt;&lt;P&gt;b type p decimals 4 value '00.5',&lt;/P&gt;&lt;P&gt;c type p decimals 4 value '00.2457',&lt;/P&gt;&lt;P&gt;d type p decimals 4 value '2000.765'.&lt;/P&gt;&lt;P&gt;pack = ( ( a / b ) / ( c / d ) ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : / pack.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Jul 2008 11:10:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oveflow-for-type-p-fields/m-p/4191996#M1002043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-12T11:10:01Z</dc:date>
    </item>
  </channel>
</rss>

