<?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: packed decimal allocated length in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimal-allocated-length/m-p/9692827#M1768331</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;May I know the reason for this question ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there specific customer requirement ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 24 Aug 2013 13:02:12 GMT</pubDate>
    <dc:creator>rosenberg_eitan</dc:creator>
    <dc:date>2013-08-24T13:02:12Z</dc:date>
    <item>
      <title>packed decimal allocated length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimal-allocated-length/m-p/9692822#M1768326</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 saw multiple sap help docs but could not find out how the length of a packed decimal variable is allocated?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i mean &lt;SPAN style="font-size: 10pt;"&gt;if I declare&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : abc type p length 16&amp;nbsp; decimals 2 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will it allow 16 digits followed by a&amp;nbsp; decimal ( dot ) followed by 2 chars&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;xyz type p length 3 decimals 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;will it allow total 3 digits including decimal(dot ) and 2 decimal digits&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please give a specific answer and not links as I have even debugged and seen that different lengths are allocated at diff times&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, 24 Aug 2013 09:05:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimal-allocated-length/m-p/9692822#M1768326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-24T09:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: packed decimal allocated length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimal-allocated-length/m-p/9692823#M1768327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maximum suppoted length 31&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data : my_data type p type length 16 decimals 14.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it can hold '1234567890123456.12345678901234'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Aug 2013 09:24:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimal-allocated-length/m-p/9692823#M1768327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-24T09:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: packed decimal allocated length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimal-allocated-length/m-p/9692824#M1768328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yakub,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then why is this code working ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;gv_result &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;p LENGTH &lt;SPAN class="L0S32"&gt;12 &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DECIMALS &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;4&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; gv_result &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'1234567890123456.4567'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN class="L0S52"&gt;write&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;/ gv_result&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here even though i have specified 16 digits before the decimal instead of 12 it is working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Aug 2013 09:43:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimal-allocated-length/m-p/9692824#M1768328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-24T09:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: packed decimal allocated length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimal-allocated-length/m-p/9692825#M1768329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use &lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;DATA &lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;: &lt;/SPAN&gt;gv_result &lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;p LENGTH 8&lt;SPAN class="L0S32"&gt; &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DECIMALS &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;4&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;It will give you dump...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Beyond 8 it is 16&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Aug 2013 10:08:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimal-allocated-length/m-p/9692825#M1768329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-24T10:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: packed decimal allocated length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimal-allocated-length/m-p/9692826#M1768330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks yakub .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you tell me how much length is allocated to numeric data type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for interger it is 10 i suppose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Aug 2013 10:42:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimal-allocated-length/m-p/9692826#M1768330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-24T10:42:48Z</dc:date>
    </item>
    <item>
      <title>Re: packed decimal allocated length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimal-allocated-length/m-p/9692827#M1768331</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;May I know the reason for this question ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there specific customer requirement ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Aug 2013 13:02:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimal-allocated-length/m-p/9692827#M1768331</guid>
      <dc:creator>rosenberg_eitan</dc:creator>
      <dc:date>2013-08-24T13:02:12Z</dc:date>
    </item>
    <item>
      <title>Re: packed decimal allocated length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimal-allocated-length/m-p/9692828#M1768332</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;Take an example decimal value 123456.123&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here total no. of digits= 9&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formula: 2N - 1&amp;nbsp; = 9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; N = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Here Length = 5 and Decimals = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF we get N value as 5.5 , then we will take Length as 6.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help you in packed decimal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Anil. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 24 Aug 2013 16:57:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimal-allocated-length/m-p/9692828#M1768332</guid>
      <dc:creator>anilkumar_kalkivai</dc:creator>
      <dc:date>2013-08-24T16:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: packed decimal allocated length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimal-allocated-length/m-p/9692829#M1768333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Well for each specfic internal data type you can check SAP Online documentation &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2fd9358411d1829f0000e829fbfe/content.htm"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2fd9358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 05:30:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimal-allocated-length/m-p/9692829#M1768333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-08-26T05:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: packed decimal allocated length</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimal-allocated-length/m-p/9692830#M1768334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Hema,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data Type P :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The valid length for packed numbers is between 1 and 16 bytes; two decimal places are packed into one byte, whereby the last byte only contains one place and the plus/minus sign; after the decimal separator, up to 14 &lt;A href="https://help.sap.com/abapdocu_70/en/ABENFRACTIONAL_PORTION_GLOSRY.htm" style="color: #505050;"&gt;decimal places&lt;/A&gt; are permitted. Depending on the field length len and the number of decimal places dec, the following applies for the value area: (-10^(2len -1) +1) / (10^(+dec)) to (+10^(2len -1) -1) /(10^(+dec)) in steps of 10^(-dec). Values in between this range are rounded off.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="https://help.sap.com/abapdocu_70/en/ABENBUILT_IN_TYPES_VALUES.htm" title="https://help.sap.com/abapdocu_70/en/ABENBUILT_IN_TYPES_VALUES.htm"&gt;https://help.sap.com/abapdocu_70/en/ABENBUILT_IN_TYPES_VALUES.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 05:42:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimal-allocated-length/m-p/9692830#M1768334</guid>
      <dc:creator>former_member209120</dc:creator>
      <dc:date>2013-08-26T05:42:58Z</dc:date>
    </item>
  </channel>
</rss>

