<?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 b/n Types and DATA in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-n-types-and-data/m-p/1279863#M152539</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Type tells you 'How' will be the structure of any variable which refers it.&lt;/P&gt;&lt;P&gt;Data statement creates a variable(Allocates memory to it) by referring to an already existing type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like: If you use v_matnr like mara-matnr , the system will refer the mara table and see the matnr field. It then determines what is the data element used for it.Then it allocates the memory for the variable v_matnr.&lt;/P&gt;&lt;P&gt;If you use v_matnr type matnr, then it directly creates the v_matnr variable having similar attributes as the matnr data element.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Apr 2006 11:09:07 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-04-20T11:09:07Z</dc:date>
    <item>
      <title>Difference b/n Types and DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-n-types-and-data/m-p/1279860#M152536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;wats the difference b/n types declaration  and data declaration?and wats the difference b/n like and type?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2006 10:53:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-n-types-and-data/m-p/1279860#M152536</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-20T10:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: Difference b/n Types and DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-n-types-and-data/m-p/1279861#M152537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi -&lt;/P&gt;&lt;HR originaltext="---" /&gt;&lt;P&gt;1.&amp;lt;b&amp;gt;Data statment&amp;lt;/b&amp;gt; is used to define variables refeering to already existing data types ..that may be standard data types (c, n, d, t, i,f etc) or user defined types (eg. referring to any data object or complex types) while &amp;lt;b&amp;gt;types statement&amp;lt;/b&amp;gt; is used to define user defined data types based on standard data type or may be existing (previously defined types)types.&lt;/P&gt;&lt;P&gt;2. types doesnt &amp;lt;b&amp;gt;occupy memory&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;can not hold values&amp;lt;/b&amp;gt; whils variable defined using data stmt &amp;lt;b&amp;gt;occupies memory&amp;lt;/b&amp;gt; as well as &amp;lt;b&amp;gt;can have values&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;same is the case with type and like addition.&lt;/P&gt;&lt;P&gt;like addition expect an ddic object referance while type addition may refer to user defined types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2006 11:02:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-n-types-and-data/m-p/1279861#M152537</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-20T11:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Difference b/n Types and DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-n-types-and-data/m-p/1279862#M152538</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;Type : - It is used for the declaration of structure how ur going to store data ; and what type of data. it doesnt use memmory for storage.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it actual place where u store data . data is used to define variable of perticular type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C , N , D , T ,I,P are ABAP define types &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can used this Type to define ur Custom Type &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg;-   Types : CHAR58(58) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then u can use this custom type for ur variable declartion of length 58 char&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;that is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA my_var type char58.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many such combination is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can even declare complex structure &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg&lt;/P&gt;&lt;P&gt;  TYPES : begin of ty_t1,&lt;/P&gt;&lt;P&gt;            a1 type c,&lt;/P&gt;&lt;P&gt;            a2 type char58,&lt;/P&gt;&lt;P&gt;            .........&lt;/P&gt;&lt;P&gt;          end of ty_t1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now ur data part&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : my_structure  type ty_t1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark helful answers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Manoj B Gupta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Manoj Gupta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2006 11:03:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-n-types-and-data/m-p/1279862#M152538</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-20T11:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Difference b/n Types and DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-n-types-and-data/m-p/1279863#M152539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Type tells you 'How' will be the structure of any variable which refers it.&lt;/P&gt;&lt;P&gt;Data statement creates a variable(Allocates memory to it) by referring to an already existing type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like: If you use v_matnr like mara-matnr , the system will refer the mara table and see the matnr field. It then determines what is the data element used for it.Then it allocates the memory for the variable v_matnr.&lt;/P&gt;&lt;P&gt;If you use v_matnr type matnr, then it directly creates the v_matnr variable having similar attributes as the matnr data element.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2006 11:09:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-n-types-and-data/m-p/1279863#M152539</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-20T11:09:07Z</dc:date>
    </item>
    <item>
      <title>Re: Difference b/n Types and DATA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-n-types-and-data/m-p/1279864#M152540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt; 1.when you declare something using TYPES declaration..&lt;/P&gt;&lt;P&gt; you mean to create a type with which you are going to define further elements..&lt;/P&gt;&lt;P&gt; for eg.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; types : a type p decimals 2.
  data : b type a.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;again..&lt;/P&gt;&lt;P&gt; when you declare using data you are declaring 'b' for manipulation in the program..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; 2. when you define using LIKE you copy the attributes of the element completely..&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: a type p decimals 2.
  data : b like a.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;a is an existing variable and b is like a.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;satesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Apr 2006 11:15:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-b-n-types-and-data/m-p/1279864#M152540</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-20T11:15:10Z</dc:date>
    </item>
  </channel>
</rss>

