<?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: occurs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/1545269#M248025</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;occurs 0--&amp;gt;No memory allocated at the time of cretion&lt;/P&gt;&lt;P&gt;occurs 1--&amp;gt;Memory alloted to a line at the time of creation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:Interal table with header lines are oldest form of&lt;/P&gt;&lt;P&gt;internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Aug 2006 22:51:44 GMT</pubDate>
    <dc:creator>abdul_hakim</dc:creator>
    <dc:date>2006-08-21T22:51:44Z</dc:date>
    <item>
      <title>occurs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/1545264#M248020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the diff between  OCCURS 0 and OCCURS 1 while creating internal tables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 17:03:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/1545264#M248020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T17:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: occurs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/1545265#M248021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Occurs 0 does not reserve space for the itab at the time of declaration, and occurs 1 reserves 1 line when the itab is declared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 17:05:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/1545265#M248021</guid>
      <dc:creator>sridhar_k1</dc:creator>
      <dc:date>2006-08-21T17:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: occurs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/1545266#M248022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Occurs 0 creates an internal table with no rows at the time of creation.  OCCURS 1 creates a table with 1 physical row at creation time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 17:06:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/1545266#M248022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-21T17:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: occurs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/1545267#M248023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OCCURS 1 actually allocates memory space for 1 line of the internal table.  OCCURS 0 allocates no memeory space when the internal table is created.  The memeory space is allocated when filling the internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Really, you should not be using the OCCURS extension when defining internal tables as it is obselete.  You should define a type instead.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Types: begin of ttab,
       fld1 type c,
       end of ttab.

data: itab type table of ttab.
data: wa like line of itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 17:08:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/1545267#M248023</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-08-21T17:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: occurs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/1545268#M248024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sudharasan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Rich Heilman already said itab's with header lines are obsolete.&lt;/P&gt;&lt;P&gt;For me, using itab's with header lines is worst ABAP programming possible because these programs are a mess to read and understand. Such programs are highly error-prone when it comes to maintaining.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 22:45:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/1545268#M248024</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-08-21T22:45:34Z</dc:date>
    </item>
    <item>
      <title>Re: occurs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/1545269#M248025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;occurs 0--&amp;gt;No memory allocated at the time of cretion&lt;/P&gt;&lt;P&gt;occurs 1--&amp;gt;Memory alloted to a line at the time of creation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:Interal table with header lines are oldest form of&lt;/P&gt;&lt;P&gt;internal tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 22:51:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/1545269#M248025</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-08-21T22:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: occurs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/1545270#M248026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there is besically no difference between the occurs 0 and occurs 1 both of them acquire the same memory.If you know the exact amount of that that you r going to fetch from the database than give the same number with occurs otherwise it doesnot make any difference wheather you give occur 0 or 1, even though you r taking less amount of data it ll use the same memory area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2006 06:14:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/1545270#M248026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-22T06:14:53Z</dc:date>
    </item>
  </channel>
</rss>

