<?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: difference between type n and type i in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-n-and-type-i/m-p/1493889#M229452</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Type      Description             DL     Initial value &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    C     Character                  1      Space &lt;/P&gt;&lt;P&gt;    N     Numeric text               1      '00...0' &lt;/P&gt;&lt;P&gt;    D     Date YYYYMMDD              8      '00000000' &lt;/P&gt;&lt;P&gt;    T     Time HHMMSS                6      '000000' &lt;/P&gt;&lt;P&gt;    X     Byte (heXadecimal)         1      X'00' &lt;/P&gt;&lt;P&gt;    I     Integer                    4      0 &lt;/P&gt;&lt;P&gt;    P     Packed number              8      0 &lt;/P&gt;&lt;P&gt;    F     Floating point number      8      '0.0' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Code:&lt;/P&gt;&lt;P&gt;DATA: ws_data TYPE char10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ws_data = 'SAMPLE'.&lt;/P&gt;&lt;P&gt;WRITE:/ ws_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ws_data1 TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ws_data1 = 10.&lt;/P&gt;&lt;P&gt;WRITE:/ ws_data1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ws_data2 TYPE n LENGTH 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ws_data2 = 31.&lt;/P&gt;&lt;P&gt;WRITE:/ ws_data2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Sep 2006 17:23:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-05T17:23:07Z</dc:date>
    <item>
      <title>difference between type n and type i</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-n-and-type-i/m-p/1493885#M229448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi can anyone tell me the difference between numc(type n),&lt;/P&gt;&lt;P&gt;type c and type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2006 17:14:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-n-and-type-i/m-p/1493885#M229448</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-05T17:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: difference between type n and type i</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-n-and-type-i/m-p/1493886#M229449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Type  Value Area    Initial Value &lt;/P&gt;&lt;P&gt;c   Any alphanumeric character " " for every position &lt;/P&gt;&lt;P&gt;i   -2.147.483.648 to +2.147.483.647 0 &lt;/P&gt;&lt;P&gt;n   Any alphanumeric characters, however, valid values are &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Notes &lt;/P&gt;&lt;P&gt;The system class CL_ABAP_EXCEPTIONAL_VALUES contains methods that return the minimum and maximum value for a data object (as of release 6.10). &lt;/P&gt;&lt;P&gt;As the decimal places of a floating point number of type f are represented internally as dual fractions, there is not an exact equivalent for every number that can be represented in the decimal system. This can lead to rounding errors in assignments and intermediate results of calculations. These errors can be avoided by using a two-step rounding procedure. &lt;/P&gt;&lt;P&gt;For data objects of data type p, the program attribute fixed point arithmetic must be set so that the decimal separator is taken into account. Otherwise, the content is handled as if there is no decimal separator, in all operations except for displaying a list. &lt;/P&gt;&lt;P&gt;Example &lt;/P&gt;&lt;P&gt;According to the formula in the table, the value area of a packed number with length 2 and two decimal places is (-10&lt;SUP&gt;(2x2 -1) +1) / (10&lt;/SUP&gt;2) bis (+10&lt;SUP&gt;(2x2 -1) -1) / (10&lt;/SUP&gt;2) and therefore =-9.99 to +9.99 in steps of 0.01. A value within this range, for example, 1.428, is rounded up to 1.43. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: pack(2) TYPE p DECIMALS 2, &lt;/P&gt;&lt;P&gt;      result  TYPE REF TO data. &lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS &amp;lt;result&amp;gt; TYPE ANY. &lt;/P&gt;&lt;P&gt;result = cl_abap_exceptional_values=&amp;gt;get_min_value( pack ). &lt;/P&gt;&lt;P&gt;IF result IS NOT INITIAL. &lt;/P&gt;&lt;P&gt;  ASSIGN result-&amp;gt;* TO &amp;lt;result&amp;gt;. &lt;/P&gt;&lt;P&gt;  WRITE &amp;lt;result&amp;gt;. &lt;/P&gt;&lt;P&gt;ENDIF. &lt;/P&gt;&lt;P&gt;result = cl_abap_exceptional_values=&amp;gt;get_max_value( pack ). &lt;/P&gt;&lt;P&gt;IF result IS NOT INITIAL. &lt;/P&gt;&lt;P&gt;  ASSIGN result-&amp;gt;* TO &amp;lt;result&amp;gt;. &lt;/P&gt;&lt;P&gt;  WRITE &amp;lt;result&amp;gt;. &lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2006 17:18:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-n-and-type-i/m-p/1493886#M229449</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-05T17:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: difference between type n and type i</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-n-and-type-i/m-p/1493887#M229450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CHAR C array of c_ubyte left-aligned string filled with spaces string &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NUMC N array of c_ubyte right-aligned zero-filled string containg digits only integer &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INT4 I c_int integer integer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2006 17:18:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-n-and-type-i/m-p/1493887#M229450</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-05T17:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: difference between type n and type i</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-n-and-type-i/m-p/1493888#M229451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the following :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb2fcc358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/fc/eb2fcc358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hith&lt;/P&gt;&lt;P&gt;Sunil Achyut&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2006 17:20:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-n-and-type-i/m-p/1493888#M229451</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-05T17:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: difference between type n and type i</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-n-and-type-i/m-p/1493889#M229452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Type      Description             DL     Initial value &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    C     Character                  1      Space &lt;/P&gt;&lt;P&gt;    N     Numeric text               1      '00...0' &lt;/P&gt;&lt;P&gt;    D     Date YYYYMMDD              8      '00000000' &lt;/P&gt;&lt;P&gt;    T     Time HHMMSS                6      '000000' &lt;/P&gt;&lt;P&gt;    X     Byte (heXadecimal)         1      X'00' &lt;/P&gt;&lt;P&gt;    I     Integer                    4      0 &lt;/P&gt;&lt;P&gt;    P     Packed number              8      0 &lt;/P&gt;&lt;P&gt;    F     Floating point number      8      '0.0' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample Code:&lt;/P&gt;&lt;P&gt;DATA: ws_data TYPE char10.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ws_data = 'SAMPLE'.&lt;/P&gt;&lt;P&gt;WRITE:/ ws_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ws_data1 TYPE i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ws_data1 = 10.&lt;/P&gt;&lt;P&gt;WRITE:/ ws_data1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ws_data2 TYPE n LENGTH 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ws_data2 = 31.&lt;/P&gt;&lt;P&gt;WRITE:/ ws_data2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Sep 2006 17:23:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-between-type-n-and-type-i/m-p/1493889#M229452</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-05T17:23:07Z</dc:date>
    </item>
  </channel>
</rss>

