<?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 in type declaration in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-in-type-declaration/m-p/5498887#M1257929</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Priyanka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you declare something like a type, you can reuse it as a declaration type wherever required in your program, whereas the other data declaration, you can just directly use that as a structure.. &lt;/P&gt;&lt;P&gt;Say for example, if you want to declare a structure similar to ty_struc1 in a subroutine, then you can declare there as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : wa_struc type ty_struc1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereas if you have the use the other one, you need to use a 'like' statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Apr 2009 11:39:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-28T11:39:39Z</dc:date>
    <item>
      <title>difference in type declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-in-type-declaration/m-p/5498885#M1257927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends&lt;/P&gt;&lt;P&gt;can any one tell me what exactly is the differnce between the below 2 declrations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a)                    Types: &lt;/P&gt;&lt;P&gt;                               Begin of TY_STRUC1,&lt;/P&gt;&lt;P&gt;                                  F1 type I,&lt;/P&gt;&lt;P&gt;                                  F2 type P,&lt;/P&gt;&lt;P&gt;                                  F3(10) type C,&lt;/P&gt;&lt;P&gt;                                  F4(5) type N,&lt;/P&gt;&lt;P&gt;                               End of TY_STRUC1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       i have declared it using types .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b)                  data  :                &lt;/P&gt;&lt;P&gt;                               Begin of TY_STRUC1,&lt;/P&gt;&lt;P&gt;                                  F1 type I,&lt;/P&gt;&lt;P&gt;                                  F2 type P,&lt;/P&gt;&lt;P&gt;                                  F3(10) type C,&lt;/P&gt;&lt;P&gt;                                  F4(5) type N,&lt;/P&gt;&lt;P&gt;                               End of TY_STRUC1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           i have declared it using data statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can any one tell me technically what exactly is the difference between the above 2 declarations&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 11:35:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-in-type-declaration/m-p/5498885#M1257927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T11:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: difference in type declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-in-type-declaration/m-p/5498886#M1257928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;with type you can allocate any data to that.&lt;/P&gt;&lt;P&gt;and next one can act as  work area because it is a field string.&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;s.janagar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 11:37:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-in-type-declaration/m-p/5498886#M1257928</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T11:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: difference in type declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-in-type-declaration/m-p/5498887#M1257929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Priyanka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you declare something like a type, you can reuse it as a declaration type wherever required in your program, whereas the other data declaration, you can just directly use that as a structure.. &lt;/P&gt;&lt;P&gt;Say for example, if you want to declare a structure similar to ty_struc1 in a subroutine, then you can declare there as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : wa_struc type ty_struc1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whereas if you have the use the other one, you need to use a 'like' statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 11:39:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-in-type-declaration/m-p/5498887#M1257929</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T11:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: difference in type declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-in-type-declaration/m-p/5498888#M1257930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Priyanka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second one can be directly used as Work Area whereas for the first one you need to create work area again by using Data statement as shown below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data: wa_struc1 type TY_STRUC1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Check ABAPDOCU transaction for more examples on this.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Babu Kilari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 11:40:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-in-type-declaration/m-p/5498888#M1257930</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T11:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: difference in type declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-in-type-declaration/m-p/5498889#M1257931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When u are declaring using TYPES key word that is user specifed it will not allocate the memory.&lt;/P&gt;&lt;P&gt;If we declare using DATA key word it will take the memory......&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 11:40:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-in-type-declaration/m-p/5498889#M1257931</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T11:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: difference in type declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/difference-in-type-declaration/m-p/5498890#M1257932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priyanka,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   The system does not allocate memory when you declare using types. In the first case, you are just defining a template for an internal table. You can actually hold data, only if you create another internal table using "data" statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;eg: data: wa_struct1 type ty_struc1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you can use wa_struc1 in the program to hold data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand, the second type of declaration, reserves memory area and hence can hold data during progtam execution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shiny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Apr 2009 11:42:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/difference-in-type-declaration/m-p/5498890#M1257932</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-28T11:42:44Z</dc:date>
    </item>
  </channel>
</rss>

