<?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 data typs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-typs/m-p/993909#M74872</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;dEFINE&lt;/P&gt;&lt;P&gt; C,P,F,X,N,I DATA TYPES&lt;/P&gt;&lt;P&gt;GIVE ME EXP. ALSO&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Oct 2005 13:00:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-10-05T13:00:27Z</dc:date>
    <item>
      <title>data typs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-typs/m-p/993909#M74872</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;dEFINE&lt;/P&gt;&lt;P&gt; C,P,F,X,N,I DATA TYPES&lt;/P&gt;&lt;P&gt;GIVE ME EXP. ALSO&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2005 13:00:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-typs/m-p/993909#M74872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-05T13:00:27Z</dc:date>
    </item>
    <item>
      <title>Re: data typs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-typs/m-p/993910#M74873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;C =  Character        = 'ABD123'
P =  Packed Decimal   =  1.512
F =  Float            =  0000000000000001.1E
X =  Hex              =  X0A
N =  Numeric          =  0004
I =  integar          =  1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2005 13:07:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-typs/m-p/993910#M74873</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2005-10-05T13:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: data typs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-typs/m-p/993911#M74874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check this link,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/fc/eb2fd9358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/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;P&gt;suresh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2005 13:13:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-typs/m-p/993911#M74874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-05T13:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: data typs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-typs/m-p/993912#M74875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;let your variable be of name var.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1)C - CHAR&lt;/P&gt;&lt;P&gt;data: var(3) type c. OR&lt;/P&gt;&lt;P&gt;data: var(3). means var can be of length 3 and can have any value consisting of 0 - 9, A - Z , and special characters like @,# etc.&lt;/P&gt;&lt;P&gt;The value should be assigned inside single quotes&lt;/P&gt;&lt;P&gt;for eg var = 'ABC'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2)P - PACK&lt;/P&gt;&lt;P&gt;data: var(3) type p decimals 1.&lt;/P&gt;&lt;P&gt;This means var can have value in the format '00.0'. This is the type used to define decimal values. The value range is 0 - 9. Don't forget to give single quotes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(3)F - FLOAT&lt;/P&gt;&lt;P&gt;data:var type f.&lt;/P&gt;&lt;P&gt;value in var will be in the float or the exponential form.&lt;/P&gt;&lt;P&gt;for eg var = 0.00000000001 E 2 means the number into E squared (E raised to 2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(4)X - HEXADECIMAL&lt;/P&gt;&lt;P&gt;data:var type x.&lt;/P&gt;&lt;P&gt;This means var can contain values which contain 0 - 9 and A - E. eg B in hex = 11 in normal decimal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(5)N - NUMERIC&lt;/P&gt;&lt;P&gt;data:var(3) type n.&lt;/P&gt;&lt;P&gt;This means var is of length 3 and contain numeric values .&lt;/P&gt;&lt;P&gt;Here it ranges from 000 - 999.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(6)I - INTEGER&lt;/P&gt;&lt;P&gt;data: var type i.&lt;/P&gt;&lt;P&gt;var contains an integer value i.e. from negative range to positive range.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Binoo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NB:Award points if found useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2005 03:22:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-typs/m-p/993912#M74875</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-06T03:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: data typs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/data-typs/m-p/993913#M74876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;U can check this&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ABAP/4 Data Types&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;There are two main categories of data in ABAP/4: character and numeric. Variables receive special treatment by the ABAP/4 processor based on their category that goes beyond the usual treatment given by other languages. Therefore, it is especially important for you to be able to recognize and distinguish between the character and numeric data types. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Character Data Types&lt;/P&gt;&lt;P&gt;The character data types are shown in Table 7.2. Notice that they include type n. Internal lengths are given in bytes. A dash in the Max length column appears for fixed length data types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 7.2  List of Character Data Types&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data&lt;/P&gt;&lt;P&gt;Type Internal&lt;/P&gt;&lt;P&gt;Description  Default &lt;/P&gt;&lt;P&gt;Internal&lt;/P&gt;&lt;P&gt;Length Max&lt;/P&gt;&lt;P&gt;Internal&lt;/P&gt;&lt;P&gt;Length &lt;/P&gt;&lt;P&gt;Valid&lt;/P&gt;&lt;P&gt;Values  Default &lt;/P&gt;&lt;P&gt;Initial&lt;/P&gt;&lt;P&gt;Value &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;c character  1 65535 Any char Blank 
n numeric text  1 65535 0-9 0 
d date  8 (fixed) - 0-9 00000000 
t time  6 (fixed) - 0-9 000000 
x hexadecimal  1 65535 Any &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Default Initial Value column indicates the value given to the variable by default if you do not specify one using the value addition. &lt;/P&gt;&lt;P&gt;Internal Representation of Variables&lt;/P&gt;&lt;P&gt;Numeric text variables are called numeric character variables and hold unsigned positive integers. Each digit occupies one byte, and internally each is stored as a character. This is a character data type. It can only contain the characters 0-9. &lt;/P&gt;&lt;P&gt;Use numeric text to hold numbers that are used as unique identifiers, such as document numbers, account numbers, and order numbers. Also, use it for variables that hold a numeric extracted from a character data type. For example, if you were to extract the two-character month from a date field and needed a variable to store it, you should use a type n field. &lt;/P&gt;&lt;P&gt;Date and time are fixed length data types. You should not specify a length on the data statement for them. Values for date and time variables are always stored internally as YYYYMMDD and HHMMSS, respectively. The current date is available in the system field sy-datum and the current time in sy-uzeit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE &lt;/P&gt;&lt;P&gt;The values of sy-datum and sy-uzeit are set at the beginning of program execution and do not change until the program ends. If you need access to the most current date and time during execution of a long-running pro-gram, use the statement get time. It updates the values of sy-datum and sy-uzeit to reflect the current date and time.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Absolute time values that have millisecond precision are not used in R/3. However, relative time values are available to millisecond precision. To obtain these, use the get run time statement and store them using data type i. See the chapter on runtime analysis for more details. &lt;/P&gt;&lt;P&gt;Numeric Data Types&lt;/P&gt;&lt;P&gt;The numeric data types are shown in Table 7.3. A dash in the Max Length column indicates the length cannot be changed. An asterisk indicates the attribute is machine-dependent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 7.3  Numeric Data Types &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data&lt;/P&gt;&lt;P&gt;Type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Description  Default &lt;/P&gt;&lt;P&gt;Internal&lt;/P&gt;&lt;P&gt;Length &lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;Length &lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;P&gt;Decimals  &lt;/P&gt;&lt;P&gt;Valid &lt;/P&gt;&lt;P&gt;Values Default &lt;/P&gt;&lt;P&gt;Initial &lt;/P&gt;&lt;P&gt;Value  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;i integer  4(fixed) - 0 -231 to +231  0 
p packed decimal  8 16 14 0-9 . 0 
f floating-point  8 8 15* -1E-307 to 1E308  0.0&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All of the variables in Table 7.3 are signed. In floating-point variables, the exponent is also signed. &lt;/P&gt;&lt;P&gt;Use integers for variables that will be involved in simple computations or when no decimal points are required. Variables such as counters, indexes, positions, or offsets are good examples. &lt;/P&gt;&lt;P&gt;A decimal variable stores (L*2)-1 digits, where L is the length of the variable in bytes. Decimal values are stored two digits per byte, except the end byte, which contains a single digit and a sign. The decimal point itself is not stored; it is an attribute of the definition. For example, data f1(4) type p defines a variable f1 that is four bytes long and can hold seven digits (plus a sign), as shown in Figure 7.2. data f2(3) type p decimals 2 defines a variable f2 that is three bytes long and can hold five digits (plus a sign). The definition data f3 type p defines a variable f3 capable of holding 15 digits because the default length for type p is 8. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer this link for the above and some sample programs&lt;/P&gt;&lt;P&gt;&lt;A href="http://cma.zdnet.com/book/abap/ch07/ch07.htm" target="test_blank"&gt;http://cma.zdnet.com/book/abap/ch07/ch07.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Oct 2005 04:19:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/data-typs/m-p/993913#M74876</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-10-06T04:19:32Z</dc:date>
    </item>
  </channel>
</rss>

