<?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 Packed decimals in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimals/m-p/5026890#M1169452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program uses packed decimals to declare a field WRBTR(G_WRBTR(7) TYPE P Decimals 2) but inside the program while computing it is accecpting 9 characters with 2 decimals.When I try to manipulate with 12 digits in debugging mode then it is going for dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please clarify how it is working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 03 Jan 2009 09:52:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-03T09:52:26Z</dc:date>
    <item>
      <title>Packed decimals</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimals/m-p/5026890#M1169452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The program uses packed decimals to declare a field WRBTR(G_WRBTR(7) TYPE P Decimals 2) but inside the program while computing it is accecpting 9 characters with 2 decimals.When I try to manipulate with 12 digits in debugging mode then it is going for dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please clarify how it is working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jan 2009 09:52:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimals/m-p/5026890#M1169452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-03T09:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Packed decimals</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimals/m-p/5026891#M1169453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The logic is very simple &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for E;g&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA :
   w_p(9) TYPE p DECIMALS 2.


w_p = '0123456789012345.12'.


WRITE :
  / w_p.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;formula is 9 * 2 = 18  total&lt;/P&gt;&lt;P&gt;               18-2 = 16  Number of digits before the decimal part begins&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jan 2009 10:01:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimals/m-p/5026891#M1169453</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2009-01-03T10:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: Packed decimals</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimals/m-p/5026892#M1169454</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;In Char length with One can store the 2 intergers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jan 2009 10:08:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimals/m-p/5026892#M1169454</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-03T10:08:08Z</dc:date>
    </item>
    <item>
      <title>Re: Packed decimals</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimals/m-p/5026893#M1169455</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;     WRBTR domain is WERT7 which is a CURR data type with No of Char 13 and decimals 2&lt;/P&gt;&lt;P&gt;     So thats why it must be taking values upto 9 digits also.&lt;/P&gt;&lt;P&gt;     7 is only internal length for that domain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check the domain of that field and any ref field assigned to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct me if i am wrong.&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;Bala Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jan 2009 10:08:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimals/m-p/5026893#M1169455</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2009-01-03T10:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: Packed decimals</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimals/m-p/5026894#M1169456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Avinash then what can be the output of the below snippet it is giving only One&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA :
   w_p TYPE c.


w_p = '12'.


WRITE :
  / w_p.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jan 2009 10:11:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimals/m-p/5026894#M1169456</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2009-01-03T10:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Packed decimals</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimals/m-p/5026895#M1169457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Avinash then what can be the output of the below snippet, the o/p is one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA :
   w_p TYPE c.


w_p = '12'.


WRITE :
  / w_p.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jan 2009 10:11:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimals/m-p/5026895#M1169457</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2009-01-03T10:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Packed decimals</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimals/m-p/5026896#M1169458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Murugaperumal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you may take a look at the special way ABAP is handling currency values: In dictionary database you are forced to link the curreny field (data type CURR) to a curreny key field (data type CUKY). CUKY carries the currency as USD, EUR and so on. This determines also the handlling of currencies with less than 2 (japanese yen, no decimals) or more than 2 decimals (i.e. EUR4 used in retail prices to cope with big quantities).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the linkes currency key field is present, it will be considered for all input/output operations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then, a second useful information: Packed Decimals are a concept developed when storing space was expensive: 2 digits are stored in one byte because only 4 bits are used for each character. You will not notice that except in the data definition: A length of 7 bytes means it can store 13 digits and a sign (+/-).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Packed Decimal consept is still used in databases becauses it can save a lot of space and the store values can still be easily read because the packing/unpacking is simple and is done on a very low (hardware) level.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jan 2009 14:01:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/packed-decimals/m-p/5026896#M1169458</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2009-01-03T14:01:33Z</dc:date>
    </item>
  </channel>
</rss>

