<?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: diff between DATA &amp; Types St. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-data-types-st/m-p/1688980#M302958</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;1&amp;gt;TYPES statement defines the structure without allocation of memory, DATA statements allocate the memory at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2&amp;gt;create a structure by using types statement and refer it by using the DATA statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3&amp;gt;In order to avoid the internal table declaration without header line ,we are declaring a structure by types statemnet and declaring an internal table with reference to the structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Nov 2006 06:56:13 GMT</pubDate>
    <dc:creator>former_member404244</dc:creator>
    <dc:date>2006-11-28T06:56:13Z</dc:date>
    <item>
      <title>diff between DATA &amp; Types St.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-data-types-st/m-p/1688974#M302952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;what is difference between data &amp;amp; types st.?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 06:43:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-data-types-st/m-p/1688974#M302952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T06:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: diff between DATA &amp; Types St.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-data-types-st/m-p/1688975#M302953</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;You can create strutres using types statement and then make the data declarations to refer them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For eg.&lt;/P&gt;&lt;P&gt;types : begin of ty,&lt;/P&gt;&lt;P&gt;           matnr type mara-matnr,&lt;/P&gt;&lt;P&gt;           end of ty.&lt;/P&gt;&lt;P&gt;data itab type standard table of ty.&lt;/P&gt;&lt;P&gt;Here ty is the structure and itab is the internal table refering the structure.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 06:50:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-data-types-st/m-p/1688975#M302953</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-11-28T06:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: diff between DATA &amp; Types St.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-data-types-st/m-p/1688976#M302954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sanjeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; TYPES statement define the structure of your memory space without allocation of memory, DATA statements allocate the memory at runtime.&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;Chetan.&lt;/P&gt;&lt;P&gt;PS:Reward points if this is helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 06:51:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-data-types-st/m-p/1688976#M302954</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T06:51:29Z</dc:date>
    </item>
    <item>
      <title>Re: diff between DATA &amp; Types St.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-data-types-st/m-p/1688977#M302955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sanjeev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check these threads...&lt;/P&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;P&gt;&lt;A href="http://searchsap.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid21_gci1213769,00.html" target="test_blank"&gt;http://searchsap.techtarget.com/expert/KnowledgebaseAnswer/0,289625,sid21_gci1213769,00.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="248236"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="149612"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1527781"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps,&lt;/P&gt;&lt;P&gt;do reward if it helps,&lt;/P&gt;&lt;P&gt;priya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 06:52:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-data-types-st/m-p/1688977#M302955</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T06:52:03Z</dc:date>
    </item>
    <item>
      <title>Re: diff between DATA &amp; Types St.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-data-types-st/m-p/1688978#M302956</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;in simple words.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using type we are creating structre.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will not hold any memory area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but when we use data-&amp;gt; it can refer only a datafield that hold a memory area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 06:54:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-data-types-st/m-p/1688978#M302956</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-28T06:54:58Z</dc:date>
    </item>
    <item>
      <title>Re: diff between DATA &amp; Types St.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-data-types-st/m-p/1688979#M302957</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;i am putting it in simple words&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: &lt;/P&gt;&lt;P&gt;The types statement creates a new type&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt; TYPE type1 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new type is defined by its type type1.&lt;/P&gt;&lt;P&gt; type1 may be one of the predefined types (C, N, F, etc) or&lt;/P&gt;&lt;P&gt;a type that you have defined yourself using TYPES, &lt;/P&gt;&lt;P&gt;or a type defined in the ABAPDictionary. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;if u want to create variables which will store values in your program, u use the data statement&lt;/P&gt;&lt;P&gt;eg:&lt;/P&gt;&lt;P&gt;DATA data1.&lt;/P&gt;&lt;P&gt;Creates an internal field data1 in the program with default length&lt;/P&gt;&lt;P&gt;you can declare a variable of a specific type&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA d1 type i&lt;/P&gt;&lt;P&gt;Field d1 is created with type I, and can then be used in the program. In particular, you can assign numeric values to the field and use it to perform calculations &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will be helpful &lt;/P&gt;&lt;P&gt;and u can mark points if u want to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regds,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vs&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 06:55:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-data-types-st/m-p/1688979#M302957</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T06:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: diff between DATA &amp; Types St.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-data-types-st/m-p/1688980#M302958</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;1&amp;gt;TYPES statement defines the structure without allocation of memory, DATA statements allocate the memory at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2&amp;gt;create a structure by using types statement and refer it by using the DATA statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3&amp;gt;In order to avoid the internal table declaration without header line ,we are declaring a structure by types statemnet and declaring an internal table with reference to the structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Nagaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 06:56:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-data-types-st/m-p/1688980#M302958</guid>
      <dc:creator>former_member404244</dc:creator>
      <dc:date>2006-11-28T06:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: diff between DATA &amp; Types St.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-data-types-st/m-p/1688981#M302959</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 datas. But where as 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;Here is the example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: t1(10) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: s1 TYPE t1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;s1 = 'asdfjkl'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WRITE: s1.&lt;/P&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&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but s1 is occupies 10 bytes of memory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 06:58:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-data-types-st/m-p/1688981#M302959</guid>
      <dc:creator>graghavendra_sharma</dc:creator>
      <dc:date>2006-11-28T06:58:11Z</dc:date>
    </item>
    <item>
      <title>Re: diff between DATA &amp; Types St.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-data-types-st/m-p/1688982#M302960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 07:12:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/diff-between-data-types-st/m-p/1688982#M302960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T07:12:26Z</dc:date>
    </item>
  </channel>
</rss>

