<?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/3598218#M866559</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 is just to create an nternal table with a header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Palak Behal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Mar 2008 04:42:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-03-24T04:42:11Z</dc:date>
    <item>
      <title>occurs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/3598215#M866556</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;&lt;/P&gt;&lt;P&gt;Could u  plz tell me what is the purpose of occurs 0?????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Priya.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Mar 2008 17:49:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/3598215#M866556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-22T17:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: occurs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/3598216#M866557</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;By using Occurs 0, it will by default allocate 8kb of memory for the internal table. whenever the internal table having more than 8kb, it will allocate the more 8kb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also it will create a internal table with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Mar 2008 17:56:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/3598216#M866557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-22T17:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: occurs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/3598217#M866558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OCCURS 0 is the obsolete form of declaration for an internal table.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: 
  begin of whatever OCCURS 0,
  f1 type whatevertype1,
  f2 type whatevertype2,
...
  end of whatever.
* would be written tody as
TYPES;
  begin of ty_whatever OCCURS 0,
  f1 type whatevertype1,
  f2 type whatevertype2,
...
  end of ty_whatever.
DATA:
  t_whatever type table of ty_whatever with header line.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Mar 2008 18:56:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/3598217#M866558</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2008-03-22T18:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: occurs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/3598218#M866559</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 is just to create an nternal table with a header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards&lt;/P&gt;&lt;P&gt;Palak Behal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2008 04:42:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/3598218#M866559</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-24T04:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: occurs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/3598219#M866560</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 is for creating a internal table with header line.&lt;/P&gt;&lt;P&gt;and it automatically allocates some memory to our internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it has become obselete in new versions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if found helpful do reward,&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;bharathi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2008 04:47:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/3598219#M866560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-24T04:47:10Z</dc:date>
    </item>
    <item>
      <title>Re: occurs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/3598220#M866561</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 it wil allocate 8kb of memory.&lt;/P&gt;&lt;P&gt;data : itab like kna1 occurs 0&lt;/P&gt;&lt;P&gt;it wil create a internal table with header line...and allocates &lt;/P&gt;&lt;P&gt;8 kb of memory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2008 04:48:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/3598220#M866561</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-24T04:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: occurs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/3598221#M866562</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 allocats 8kb of space,once data has been filled then&lt;/P&gt;&lt;P&gt;again it allocats 8kb of space for internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Chandu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2008 05:01:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/3598221#M866562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-24T05:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: occurs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/3598222#M866563</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;occurs creates the body of the internal table.                 Occurs 0 means the system allocates 8KB pages of memory at a time.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 09:49:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/3598222#M866563</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T09:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: occurs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/3598223#M866564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi priya,&lt;/P&gt;&lt;P&gt;data: begin of it_kna1occurs 0,&lt;/P&gt;&lt;P&gt;        -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; -&lt;/P&gt;&lt;HR originaltext="------------------------" /&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;         end of it_kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        OCCURS 0 means it creates a body of the internal table which of size 8kb defaultly.We can specify any number with occurs addition.i.e occurs 0 ,occurs1,occurs2,...............&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;performance wise OCCURS 0 is not Suggestable.because if the internal table contains less no .of records which occupies memory lessthan 8kb.so wastage of memory. so we have to allocate memory dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;raji&lt;/P&gt;&lt;P&gt;reward if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 10:11:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/3598223#M866564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T10:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: occurs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/3598224#M866565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Priya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Occurs addition will give default memory space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u donot add that then defined object behaves like a workarea instead of int table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before Release 3.0, internal tables all had header lines and a flat-structured line type. There were no independent table types. You could only create a table object using the OCCURS addition in the DATA statement, followed by a declaration of a flat structure:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF &amp;lt;itab&amp;gt; OCCURS &amp;lt;n&amp;gt;,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&amp;lt;fi&amp;gt; ..., &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;END OF &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement declared an internal table &amp;lt;itab&amp;gt; with the line type defined following the OCCURS addition. Furthermore, all internal tables had header lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number &amp;lt;n&amp;gt; in the OCCURS addition had the same meaning as in the INITIAL SIZE addition from Release 4.0. Entering &amp;#145;0&amp;#146; had the same effect as omitting the INITIAL SIZE addition. In this case, the initial size of the table is determined by the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The initial memory requirement defined during the creation of the internal table with the addition INITIAL SIZE or the obsolete addition OCCURS is determined and assigned to the data object n. The data type i is expected for the data object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the links &lt;/P&gt;&lt;P&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="1586720"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&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="1685227"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&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="2858165"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you declare the itab as occurs 0, the system allocates memory in multiples of 8kb as and when the the itab needs it ie depending on the number of entries in the itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But this method of declaring itab is no longer recommended &amp;amp; also obsolete in ABAP Objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps a bit..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Kripa Rangachari.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2008 10:16:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/occurs/m-p/3598224#M866565</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-03-26T10:16:54Z</dc:date>
    </item>
  </channel>
</rss>

