<?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: Internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4655407#M1095366</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shruthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are right in &lt;EM&gt;&lt;STRONG&gt;'OCCURS 0' means 8KB&lt;/STRONG&gt;&lt;/EM&gt; . &lt;/P&gt;&lt;P&gt;It means at the time of creation 8KB space is allocated for the internal table to store data and if the space get saturated with data another chank of *kb will be allocated to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While with &lt;EM&gt;&lt;STRONG&gt;OCCURS n&lt;/STRONG&gt;&lt;/EM&gt; , initial size is to store n rows of data and the same will be allocated to the table on getting saturation. Hope,it will solve your doubt in &lt;STRONG&gt;OCCURS 1&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Anirban&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Oct 2008 09:12:17 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-28T09:12:17Z</dc:date>
    <item>
      <title>Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4655403#M1095362</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;I have a doubt in internal table concept.&lt;/P&gt;&lt;P&gt;data : begin of IT occurs 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;         end of IT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In above 'occurs 0' means 8KB.&lt;/P&gt;&lt;P&gt;So maximum how many records can store in IT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 08:44:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4655403#M1095362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T08:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4655404#M1095363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Internal table  reserves the memory it needs based on the number of entries that you enter.There are so many cases and situtation where in you need to store upto 5 lakh records in a internal table and it depends .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 08:48:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4655404#M1095363</guid>
      <dc:creator>bpawanchand</dc:creator>
      <dc:date>2008-10-28T08:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4655405#M1095364</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;There is no restriction for Number of records in a internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 08:49:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4655405#M1095364</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T08:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4655406#M1095365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks Neenu.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just refer the below code.&lt;/P&gt;&lt;P&gt;So what is the differeence between 'Occurs 0' and 'Occurs 1 and 2 etc'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tables : pa0001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : it like pa0001 OCCURS 1 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select * from pa0001 into TABLE it UP TO 10 ROWS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at it.&lt;/P&gt;&lt;P&gt;write:/ it-pernr, it-ename.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 09:06:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4655406#M1095365</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T09:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4655407#M1095366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shruthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you are right in &lt;EM&gt;&lt;STRONG&gt;'OCCURS 0' means 8KB&lt;/STRONG&gt;&lt;/EM&gt; . &lt;/P&gt;&lt;P&gt;It means at the time of creation 8KB space is allocated for the internal table to store data and if the space get saturated with data another chank of *kb will be allocated to it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While with &lt;EM&gt;&lt;STRONG&gt;OCCURS n&lt;/STRONG&gt;&lt;/EM&gt; , initial size is to store n rows of data and the same will be allocated to the table on getting saturation. Hope,it will solve your doubt in &lt;STRONG&gt;OCCURS 1&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, &lt;/P&gt;&lt;P&gt;Anirban&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 09:12:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4655407#M1095366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T09:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4655408#M1095367</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 is an obsolete statement. Instead, use itab with work area (it's faster, more memory efficient and not obsolete). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Standard Tables Before Release 3.0&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 itab OCCURS n,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;f1...,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;f2...,&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This statement declared an internal table itabwith 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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number n in the OCCURS addition had the same meaning as in the INITIAL SIZE addition from Release 4.0. Entering u20180u2019 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;Edited by: Neenu Jose on Oct 28, 2008 10:20 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 09:18:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4655408#M1095367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-28T09:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4655409#M1095368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually there is no different. You can use either format to do the coding.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you specify occurs 0, when the program is compiled. the compiler doesn't ready a default size for the working area. The internal table keep getting bigger as the size get bigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you spcify occurs 1, then the compiler prepare a space or work area for one record line but if there are more than one record just like it happen in the occurs 0, the size of the internal table keeps getting bigger.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically there are no limit to how many data you can store.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CMIIW&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suwardi Nursalim on Oct 28, 2008 11:15 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2008 10:14:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/4655409#M1095368</guid>
      <dc:creator>snursalim</dc:creator>
      <dc:date>2008-10-28T10:14:17Z</dc:date>
    </item>
  </channel>
</rss>

