<?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: wat is the difference between Data and types in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/wat-is-the-difference-between-data-and-types/m-p/3033744#M717676</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The statement DATA declares a variable of any data type. The declared data object is visible within the current context as of this position. Within the declaration part of a class or an interface, DATA declares an instance attribute whose validity is bound to an instance of a class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax of the DATA statement corresponds to the syntax of the TYPES statement, with the exception of two additions. In this way, a new data type can be defined during the declaration of a data object. The most important difference compared with the statement TYPES is that a data type defined using DATA - not derived from an existing type - is available only as a property of the declared data object and is not independent. This kind of data type is bound to its data object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data objects that are declared in a program, but are not accessed there statically, cause a warning message in the enhanced program check. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The TYPES statement defines either an independent data type dtype or a structured data type struc_type. The naming conventions apply to the names dtype and struc_type. The defined data type can be viewed within the current context from this position.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2007 06:41:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-29T06:41:22Z</dc:date>
    <item>
      <title>wat is the difference between Data and types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wat-is-the-difference-between-data-and-types/m-p/3033741#M717673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wat is the diff between DATA and TYPES&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EX:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Data&amp;lt;/b&amp;gt; A type I&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Types&amp;lt;/b&amp;gt; A type I&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And In which case do we use the Above mentioned Data types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ravi Kumar B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 06:32:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wat-is-the-difference-between-data-and-types/m-p/3033741#M717673</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T06:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: wat is the difference between Data and types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wat-is-the-difference-between-data-and-types/m-p/3033742#M717674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb2ff3358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb2ff3358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 06:39:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wat-is-the-difference-between-data-and-types/m-p/3033742#M717674</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T06:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: wat is the difference between Data and types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wat-is-the-difference-between-data-and-types/m-p/3033743#M717675</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;when u declare like &lt;/P&gt;&lt;P&gt;Data A type I&lt;/P&gt;&lt;P&gt; then u can use variable A directly and populate it with any integer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when u use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Types A type I&lt;/P&gt;&lt;P&gt;then u need to declare a variable of that type n then only u can use it in program&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 06:39:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wat-is-the-difference-between-data-and-types/m-p/3033743#M717675</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T06:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: wat is the difference between Data and types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wat-is-the-difference-between-data-and-types/m-p/3033744#M717676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The statement DATA declares a variable of any data type. The declared data object is visible within the current context as of this position. Within the declaration part of a class or an interface, DATA declares an instance attribute whose validity is bound to an instance of a class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The syntax of the DATA statement corresponds to the syntax of the TYPES statement, with the exception of two additions. In this way, a new data type can be defined during the declaration of a data object. The most important difference compared with the statement TYPES is that a data type defined using DATA - not derived from an existing type - is available only as a property of the declared data object and is not independent. This kind of data type is bound to its data object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data objects that are declared in a program, but are not accessed there statically, cause a warning message in the enhanced program check. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The TYPES statement defines either an independent data type dtype or a structured data type struc_type. The naming conventions apply to the names dtype and struc_type. The defined data type can be viewed within the current context from this position.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 06:41:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wat-is-the-difference-between-data-and-types/m-p/3033744#M717676</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T06:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: wat is the difference between Data and types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wat-is-the-difference-between-data-and-types/m-p/3033745#M717677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data statement will allocate some memory to the variable and can store a value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type is only a structure definition. Using a type you can declare data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE : abc type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: def type abc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will work just like &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: def type i.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 06:41:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wat-is-the-difference-between-data-and-types/m-p/3033745#M717677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T06:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: wat is the difference between Data and types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wat-is-the-difference-between-data-and-types/m-p/3033746#M717678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             As you know abap is based on oops concept .so with data statement this create a data object for program which give help to call anything in program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;             and types define the data type which is  local for program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks ,&lt;/P&gt;&lt;P&gt;Ashish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 06:42:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wat-is-the-difference-between-data-and-types/m-p/3033746#M717678</guid>
      <dc:creator>ashish_gupta11</dc:creator>
      <dc:date>2007-10-29T06:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: wat is the difference between Data and types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wat-is-the-difference-between-data-and-types/m-p/3033747#M717679</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;-&amp;gt;User-defined elementary data types are based entirely on predefined elementary data types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&amp;gt;To define your own elementary data types, you use the TYPES statement.     &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;reward points if useful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Vinod Samuel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 06:42:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wat-is-the-difference-between-data-and-types/m-p/3033747#M717679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T06:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: wat is the difference between Data and types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wat-is-the-difference-between-data-and-types/m-p/3033748#M717680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Types is actually used to create a user-defined type of data type and Type is used to refer existing data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data Declarations is used to refer a variable or constant using a data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example1:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v_num type i.&lt;/P&gt;&lt;P&gt;DATA: v_date type sy-datum.&lt;/P&gt;&lt;P&gt;DATA: v_pernr like pa0000-pernr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example2:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Types: A type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: v_num2 type A. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;means that v_num2 is of type i.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 06:44:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wat-is-the-difference-between-data-and-types/m-p/3033748#M717680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T06:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: wat is the difference between Data and types</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/wat-is-the-difference-between-data-and-types/m-p/3033749#M717681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ravi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         DATA a type i.   means u r creating one object. which is of type integer.&lt;/P&gt;&lt;P&gt;for  object (a)  internally 4 bytes memory allocates..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OBJECTS  always declared with data keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        TYPES  a type i.  means u r creating an datatype (a) of type integer.&lt;/P&gt;&lt;P&gt;now (a)  also acts like a  integer.  memory does not allocate for (a).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here both are same :  data  b type  a  EQUAL TO data b type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Surya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Oct 2007 06:45:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/wat-is-the-difference-between-data-and-types/m-p/3033749#M717681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-29T06:45:24Z</dc:date>
    </item>
  </channel>
</rss>

