<?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: memory allocated to DATA and TYPE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-allocated-to-data-and-type/m-p/4006794#M957168</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;'Types' Is used to create local data Types in your Program.&lt;/P&gt;&lt;P&gt;Using Types You Can Create Elementary Data Type ,reference Type,Structure Type, Complex Type And Internal Table Type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again Using 'Data' You Can Create The Above Mentioned Data &lt;/P&gt;&lt;P&gt;Object Not Type,Because Types Keyword Is Used To Create &lt;/P&gt;&lt;P&gt;User Defined Data Type But Data Keyword Is Used To Create &lt;/P&gt;&lt;P&gt;User Defined Data Object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you know That When You are using Types It Does Take Any Memory For Defined Data Type.But Using Data Whatever Data Object You Create It Allocate Some Memory Of Its Type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We Generally use Type To Create The Data Type Of Our Own So That Later We Can Take reference Of That Data Type To create Our Object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it seems Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2008 05:07:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-24T05:07:37Z</dc:date>
    <item>
      <title>memory allocated to DATA and TYPE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-allocated-to-data-and-type/m-p/4006789#M957163</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;&lt;/P&gt;&lt;P&gt;I know that TYPES is used to allocate a work area and it doesnt allocate MEMORY and DATA is used to create a internal table and it allocates MEMORY.Now in the below scenario we had created a work area using TYPES and then we create a INTERNAL TABLE using DATA through the t_026 work area.My doubt is anyways memory is alloted when we are giving it as DATA why are we using the work area(I mean the TYPES).Please help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:BEGIN OF t_s026,&lt;/P&gt;&lt;P&gt;matnr TYPE s026-matnr,&lt;/P&gt;&lt;P&gt;enmng TYPE s026-enmng,&lt;/P&gt;&lt;P&gt;sptag TYPE s026-sptag,&lt;/P&gt;&lt;P&gt;mcomp TYPE s026-matnr,&lt;/P&gt;&lt;P&gt;werks TYPE s026-werks,&lt;/P&gt;&lt;P&gt;END OF t_s026.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:it_s0206 TYPE STANDARD TABLE OF t_s026 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards&lt;/P&gt;&lt;P&gt;Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 04:33:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-allocated-to-data-and-type/m-p/4006789#M957163</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T04:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: memory allocated to DATA and TYPE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-allocated-to-data-and-type/m-p/4006790#M957164</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; This sort of declaration you find from ECC5.0 onwards it is same as how you declare occurs 0 of an internal table .... this is OOPS approach of programming and the memory gets allocated only at run time and i am not sure as how much memory gets allocated i guess it is 8KB of memory ...Guyz correct me if i am wrong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 04:40:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-allocated-to-data-and-type/m-p/4006790#M957164</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T04:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: memory allocated to DATA and TYPE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-allocated-to-data-and-type/m-p/4006791#M957165</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 is used to create user defined data types, you can also create the internal table data type (check SLIS ) but memory will not be allocated unles we use them with data statemnt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It helps in reusability, so that if we have multiple declatations you can use this types statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in OOABAP we cannot acess internal tables with header line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also if we have deep structures there we cannot have implicit header line&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It helps you when passing variables to Subroutienes with USING and Changing as tables stament is obselete, We must give datatype which we declared in types statemnt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check the below example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PERFORM build_layout    CHANGING wa_layout  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM build_layout CHANGING pw_layout TYPE slis_layout_alv  .&lt;/P&gt;&lt;P&gt;&amp;lt;CODE&amp;gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here in the form you cannot give your layout declared with type you must use data type declared using types statement&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;prasanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: prasanth kasturi on Jun 23, 2008 10:17 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 04:43:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-allocated-to-data-and-type/m-p/4006791#M957165</guid>
      <dc:creator>prasanth_kasturi</dc:creator>
      <dc:date>2008-06-23T04:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: memory allocated to DATA and TYPE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-allocated-to-data-and-type/m-p/4006792#M957166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijay krishna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         Types declaration is used to declare the work area with different data elements from same or different database tables, we are preferred to use types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Bu using data , we can't create this type of work area with fields from different db tables.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;If it useful, reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bye&lt;/P&gt;&lt;P&gt;Prasad G.V.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 09:46:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-allocated-to-data-and-type/m-p/4006792#M957166</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T09:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: memory allocated to DATA and TYPE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-allocated-to-data-and-type/m-p/4006793#M957167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hiii&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when you use types here..it gives you only structure of that type.&amp;amp; you make internal table of that type of structure.structure never take memory..so its not related with memory.but when you create internal table with that structure.then at run time it will allocate memory as per data types that you have defined in structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;twinkal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Jun 2008 10:13:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-allocated-to-data-and-type/m-p/4006793#M957167</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-23T10:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: memory allocated to DATA and TYPE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-allocated-to-data-and-type/m-p/4006794#M957168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;'Types' Is used to create local data Types in your Program.&lt;/P&gt;&lt;P&gt;Using Types You Can Create Elementary Data Type ,reference Type,Structure Type, Complex Type And Internal Table Type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again Using 'Data' You Can Create The Above Mentioned Data &lt;/P&gt;&lt;P&gt;Object Not Type,Because Types Keyword Is Used To Create &lt;/P&gt;&lt;P&gt;User Defined Data Type But Data Keyword Is Used To Create &lt;/P&gt;&lt;P&gt;User Defined Data Object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you know That When You are using Types It Does Take Any Memory For Defined Data Type.But Using Data Whatever Data Object You Create It Allocate Some Memory Of Its Type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We Generally use Type To Create The Data Type Of Our Own So That Later We Can Take reference Of That Data Type To create Our Object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if it seems Helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 05:07:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-allocated-to-data-and-type/m-p/4006794#M957168</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T05:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: memory allocated to DATA and TYPE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-allocated-to-data-and-type/m-p/4006795#M957169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES keyword is used to define the local Data type. But Using this keyword doesnt mean the allocation of the memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To Allocate Memory ie to create a work variable you have to define it with DATA keyword with type TYPES. That will create the data object having type TYPES and also contain memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sumit Agarwal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 10:08:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-allocated-to-data-and-type/m-p/4006795#M957169</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T10:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: memory allocated to DATA and TYPE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/memory-allocated-to-data-and-type/m-p/4006796#M957170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actualy TYPES statement is used to create the local data type of a structure,which is your work area here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereas, DATA statement creates the data object of type refer to it by TYPE statement. The concecept is exactly similer to our old lesson in C language with structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if found helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Allthe best.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anirban Bhattacharjee&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2008 12:51:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/memory-allocated-to-data-and-type/m-p/4006796#M957170</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-24T12:51:48Z</dc:date>
    </item>
  </channel>
</rss>

