<?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 memory in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-memory/m-p/2851033#M668085</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;chk this &amp;lt;&amp;lt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb366d358411d1829f0000e829fbfe/content.htm&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if usefull&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Oct 2007 11:19:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-03T11:19:38Z</dc:date>
    <item>
      <title>Internal table memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-memory/m-p/2851028#M668080</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can any one say how to identify,how much memory is associated with the internal table which we are using in our prog.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 10:52:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-memory/m-p/2851028#M668080</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T10:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-memory/m-p/2851029#M668081</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Prince,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will depend on ur itab declaration...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Occurs 0 means a internal table will be allocated 8kb of memory initially.if it needs more then again 8 kb of is allocated to it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in case of occurs 5, SAP allocates 5 units of memory for itab initially and if the number of records fetched more in number at run time then itab memory will be increased depends up on the amount of data record/ size of the record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful,&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 10:58:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-memory/m-p/2851029#M668081</guid>
      <dc:creator>former_member189629</dc:creator>
      <dc:date>2007-10-03T10:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-memory/m-p/2851030#M668082</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DESCRIBE TABLE ITAB OCCURS N&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;N GIVES THE MEMORY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 11:01:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-memory/m-p/2851030#M668082</guid>
      <dc:creator>hymavathi_oruganti</dc:creator>
      <dc:date>2007-10-03T11:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-memory/m-p/2851031#M668083</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Prince&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;occurs 0, the memory allocation is done by system,&lt;/P&gt;&lt;P&gt;in case of occurs 100 memory of 100 records allocated initially ,then if records exceeds then system ll allocate memory,&lt;/P&gt;&lt;P&gt;memory allocation here is known as extent and depend upon basis administrator...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the above addition to reserve memory space for &amp;lt;n&amp;gt; table lines when you declare the table object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When this initial area is full, the system makes twice as much extra space available up to a limit of 8KB. Further memory areas of 12KB each are then allocated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can usually leave it to the system to work out the initial memory requirement. The first time you fill the table, little memory is used. The space occupied, depending on the line width, is 16 &amp;lt;= &amp;lt;n&amp;gt; &amp;lt;= 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It only makes sense to specify a concrete value of &amp;lt;n&amp;gt; if you can specify a precise number of table entries when you create the table and need to allocate exactly that amount of memory (exception: Appending table lines to ranked lists). This can be particularly important for deep-structured internal tables where the inner table only has a few entries (less than 5, for example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid excessive requests for memory, large values of &amp;lt;n&amp;gt; are treated as follows: The largest possible value of &amp;lt;n&amp;gt; is 8KB divided by the length of the line. If you specify a larger value of &amp;lt;n&amp;gt;, the system calculates a new value so that n times the line width is around 12KB."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OCCURS 0 is betten than OCCURS 100 because&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OCCURS 100.&lt;/P&gt;&lt;P&gt;*****************&lt;/P&gt;&lt;P&gt;if you use occurs 100, the ABAP memory will allocate for 100 records memory location, some time you have only 20 records at that time the remaining 80 records memory space will waste.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REAL TIME EXAMPLE: BUS&lt;/P&gt;&lt;P&gt;***************************&lt;/P&gt;&lt;P&gt;In bus total seat is 57, some time only 20 people only will come at that time also bus should go so remaining seats will waste.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OCCURS 0:&lt;/P&gt;&lt;P&gt;**************&lt;/P&gt;&lt;P&gt;OCCURS 0, the memory is not allocated previously, that is optimistic.if you have 20 records the memory will take for only 20 records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;****************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. when can we use occurs0? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When declaring internal tables,&lt;/P&gt;&lt;P&gt;whose expected number of records we are not sure,&lt;/P&gt;&lt;P&gt;or we are not bothered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its normally better to use occurs 0,&lt;/P&gt;&lt;P&gt;rather than occur 10 , 100 , 90 etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. if we use occurs 0 how will the memory be allocated?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a. if we use 0, 10 , or any other figure,&lt;/P&gt;&lt;P&gt;there is no restriction on the expansion of the internal table.&lt;/P&gt;&lt;P&gt;the 0, 10, etc is just a indicative figure for expected number of records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b. When using 0,&lt;/P&gt;&lt;P&gt;8 KB - the internal table will be expanded in bunches of 8 KB.&lt;/P&gt;&lt;P&gt;&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;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 11:02:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-memory/m-p/2851031#M668083</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T11:02:01Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-memory/m-p/2851032#M668084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for responding, but what i want to know  that how much memory is occupied by internal table through &amp;lt;b&amp;gt;Debugging mode&amp;lt;/b&amp;gt;.Is there any option in debugging mode to know the memory occupied by internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 11:13:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-memory/m-p/2851032#M668084</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T11:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-memory/m-p/2851033#M668085</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;chk this &amp;lt;&amp;lt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb366d358411d1829f0000e829fbfe/content.htm&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if usefull&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Oct 2007 11:19:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-memory/m-p/2851033#M668085</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-03T11:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-memory/m-p/2851034#M668086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for replaying to my query,actualy what i was looking for is to know the meomary area occupied by internal table in debugging mode.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 13:45:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-memory/m-p/2851034#M668086</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-08T13:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Internal table memory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-memory/m-p/2851035#M668087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Prince, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think is is simple:&lt;/P&gt;&lt;P&gt;number of lines in the internal table multiplied by the length of on line (in byte).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 14:02:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-memory/m-p/2851035#M668087</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-10-08T14:02:22Z</dc:date>
    </item>
  </channel>
</rss>

