<?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: STRUCTURE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure/m-p/3586524#M863563</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;Difference is very simple.&lt;/P&gt;&lt;P&gt;1.When you declare using 'Types' only one type will create no memory will allocate for the same.&lt;/P&gt;&lt;P&gt;2.If you are using DATA it will allocate memory for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.if you want to use the same structure repeatedly you can create one type using TYPES statement .&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shibu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Mar 2008 09:14:42 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-26T09:14:42Z</dc:date>
    <item>
      <title>STRUCTURE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure/m-p/3586522#M863561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why is the difference between &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES:begin of ty_bseg,&lt;/P&gt;&lt;P&gt;bukrs type bseg-bukrs,&lt;/P&gt;&lt;P&gt;belnr type bseg-belnr,&lt;/P&gt;&lt;P&gt;gjahr type bseg-gjahr,&lt;/P&gt;&lt;P&gt;end of ty_bseg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            &lt;STRONG&gt;AND&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:begin of it_bseg,&lt;/P&gt;&lt;P&gt;bukrs type bseg-bukrs,&lt;/P&gt;&lt;P&gt;belnr type bseg-belnr,&lt;/P&gt;&lt;P&gt;gjahr type bseg-gjahr,&lt;/P&gt;&lt;P&gt;end of it_bseg.&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>Wed, 26 Mar 2008 09:08:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure/m-p/3586522#M863561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T09:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: STRUCTURE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure/m-p/3586523#M863562</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;The basic difference between Types and DATA statement is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Types only define the data type of any structure&lt;/P&gt;&lt;P&gt;DATA define type and also allocate the memory for that structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 09:14:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure/m-p/3586523#M863562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T09:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: STRUCTURE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure/m-p/3586524#M863563</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;Difference is very simple.&lt;/P&gt;&lt;P&gt;1.When you declare using 'Types' only one type will create no memory will allocate for the same.&lt;/P&gt;&lt;P&gt;2.If you are using DATA it will allocate memory for the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.if you want to use the same structure repeatedly you can create one type using TYPES statement .&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;shibu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 09:14:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure/m-p/3586524#M863563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T09:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: STRUCTURE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure/m-p/3586525#M863564</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;Using TYPE u have declared only structure  and not work area or body.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using DATA statement u have declared a STRUCTURE with WORK AREA and not BODY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Lakshman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 09:15:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure/m-p/3586525#M863564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T09:15:14Z</dc:date>
    </item>
    <item>
      <title>Re: STRUCTURE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure/m-p/3586526#M863565</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;When u create itab with DATA ,, the initial memory will be allocated for the internal table ...( Here the object is created )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But when with TYPES no memory will be created !!!( Here the object is not yet created, it just stores the type of the table..thats it )..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;again u need to define a table with DATA statement of this TYPE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this simple code..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*************&lt;/P&gt;&lt;P&gt;data w_value type i.&lt;/P&gt;&lt;P&gt;w_value = 2.&lt;/P&gt;&lt;P&gt;*************&lt;/P&gt;&lt;P&gt;types w_value type i.&lt;/P&gt;&lt;P&gt;w_value = 2.&lt;/P&gt;&lt;P&gt;*************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first case is correct .. because w_value is a variable which has some memory and can store a value !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But the second case gives an error !!! because w_value doesnot have any memory !!! its type is just created , not the object..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i hope u understood !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points&lt;/P&gt;&lt;P&gt; Regards,&lt;/P&gt;&lt;P&gt;pankaj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 09:17:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure/m-p/3586526#M863565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T09:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: STRUCTURE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure/m-p/3586527#M863566</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: BEGIN OF structype, &lt;/P&gt;&lt;P&gt;         ... &lt;/P&gt;&lt;P&gt;       END   OF structype. &lt;/P&gt;&lt;P&gt;Defines the structured type structype, where all of the fields defined between " BEGIN OF structype" and "ENDOFstructype" are components of type structype. You can address individual components of the type using the prefix "structype-", &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF struc [READ-ONLY], &lt;/P&gt;&lt;P&gt;         ... &lt;/P&gt;&lt;P&gt;      END   OF struc. &lt;/P&gt;&lt;P&gt;The structured field struc is defined, and all of the fields defined between " BEGIN OF struc" and "END OF struc" are combined into the structure struc. The field names are always prefixed by "struc-". You can nest structured fields to any depth .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also declare structured fields with reference to existing structures using the TYPE and LIKE additions. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If, for a structured field, you require components of a predefined structure as well as your own components, you can use INCLUDE STRUCTURE to include them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Sreekanth.G&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 09:18:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure/m-p/3586527#M863566</guid>
      <dc:creator>former_member253577</dc:creator>
      <dc:date>2008-03-26T09:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: STRUCTURE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure/m-p/3586528#M863567</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 -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;this is only to declare the structure ,it doesnt allocate any memory.&lt;/P&gt;&lt;P&gt;data-----this wil allocate memory at runtime.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 09:20:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure/m-p/3586528#M863567</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T09:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: STRUCTURE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure/m-p/3586529#M863568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;s&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 10:03:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure/m-p/3586529#M863568</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T10:03:42Z</dc:date>
    </item>
    <item>
      <title>Re: STRUCTURE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/structure/m-p/3586530#M863569</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)  consider for example: u need to create an  employee. wat    does it mean, u r creating attributes like name, age, salary etc. but in real world no one exist as employee. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; for the attributes mentioned above u can enter data, example: kavi , 22 , 40000.&lt;/P&gt;&lt;P&gt;if u use DATA for each entry like this u have to declare data, instead if u use types u can refer to these types and create several entries.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; here u r creating entries for the above mentioned structure.    &lt;/P&gt;&lt;P&gt;2) types: no memory &lt;/P&gt;&lt;P&gt;data: memory at runtime&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)Using TYPE u have declared only structure and not work area or body.Using DATA statement u have declared a STRUCTURE with WORK AREA and not BODY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;mano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 10:08:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/structure/m-p/3586530#M863569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T10:08:37Z</dc:date>
    </item>
  </channel>
</rss>

