<?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: Types and data in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/2808619#M656490</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;TYPES just gives you the prototype and will not assign any memory for the data. Whereas DATA will assign memory for the variables. Using TYPES you can create user defined data types. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: T1(10) TYPE c.

DATA: S1 TYPE T1.

S1 = 'ABCDEFG'.

WRITE: S1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here T1' is just an user defined data type of string length 10 and does not occupy any memory since it is a prototype. However S1 is occupies 10 bytes of memory. &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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Oct 2007 15:46:10 GMT</pubDate>
    <dc:creator>ferry_lianto</dc:creator>
    <dc:date>2007-10-02T15:46:10Z</dc:date>
    <item>
      <title>Types and data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/2808616#M656487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What  is the difference between  Types and data declarations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Durga Prasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 15:36:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/2808616#M656487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-02T15:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Types and data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/2808617#M656488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data declarations is when you declare your data types.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 15:38:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/2808617#M656488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-02T15:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Types and data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/2808618#M656489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Durga Prasad,&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;Hope this helps.&lt;/P&gt;&lt;P&gt;Please reward if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Srinivasa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 15:45:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/2808618#M656489</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-02T15:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: Types and data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/2808619#M656490</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;TYPES just gives you the prototype and will not assign any memory for the data. Whereas DATA will assign memory for the variables. Using TYPES you can create user defined data types. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
TYPES: T1(10) TYPE c.

DATA: S1 TYPE T1.

S1 = 'ABCDEFG'.

WRITE: S1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here T1' is just an user defined data type of string length 10 and does not occupy any memory since it is a prototype. However S1 is occupies 10 bytes of memory. &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;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 15:46:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/2808619#M656490</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-10-02T15:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Types and data</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/2808620#M656491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;      The functionality is almost same for Types and Data. &lt;/P&gt;&lt;P&gt;Types is used to declare a variable of predefined data type which is declared in data dictionary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like is used to refer to the data which has been already defined. For example, in implementing enhancements, u will be need to do some customization to the exising code. so you will declared using like statment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example: data: ls_likp like xlikp.&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;Niyaz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Oct 2007 16:14:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/types-and-data/m-p/2808620#M656491</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-02T16:14:42Z</dc:date>
    </item>
  </channel>
</rss>

