<?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/1774776#M334267</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The number 0 or 1 is a indicator to the system about the approximate number of rows that will be appended to the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It really doesn't matter much whether you give 0 or 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the latest syntax, the OCCURS clause has been removed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note - Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Dec 2006 06:30:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-12-22T06:30:01Z</dc:date>
    <item>
      <title>Internal Table ????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1774775#M334266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;                  While creating an internal table, we mention occurs 0 or occurs 1. what is the difference between occurs 0 and occurs 1. which is better?what happens if we give occurs 0?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in acvance,&lt;/P&gt;&lt;P&gt;Ramana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 06:27:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1774775#M334266</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T06:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table ????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1774776#M334267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The number 0 or 1 is a indicator to the system about the approximate number of rows that will be appended to the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It really doesn't matter much whether you give 0 or 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the latest syntax, the OCCURS clause has been removed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;P&gt;Note - Please mark all the helpful answers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 06:30:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1774776#M334267</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T06:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table ????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1774777#M334268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Venkata,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When u declare an internal table as occurs 1 it allocates a memory exactly as req by 1 record and with addition of any new entries it gets extended. However when u declare as 0 memory is not allocated by done at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When u are using internal table to load fixed entires then u should declare the table with specific names. e.g if u reading entries from material type and u know there will be only 5 entries then u should declare the internal table as occurs 5.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 06:32:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1774777#M334268</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T06:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table ????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1774778#M334269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;There are two methods that the system uses to perform allocations. In the first, occurs is non-zero, and the size of the internal table (calculated from occurs * number of bytes per row) is less than or equal to 8KB. (The number of bytes per row can be obtained using the describe table statement detailed in the next chapter, or via the Field view in the debugger.) When the first row is added to the internal table, memory is allocated from the program roll area. The amount allocated is equal to the calculated size of the internal table. If this amount is exceeded, an equal amount is allocated and the process is repeated until the total exceeds 8KB. When this happens, subsequent allocations obtain 8KB pages from the paging area. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you specify occurs 0, all allocations are done in the paging area, causing one 8KB page to be allocated at a time. If the calculated size of the internal table is greater than 8KB, the system changes the occurs value to zero when the first allocation is done and all allocations are satisfied from the paging area.&lt;/P&gt;&lt;P&gt;Don't use occurs 0 if you expect to store less than 8KB in an internal table. If you do, the system will allocate 8KB from the paging area. Memory will be wasted and paging could increase, resulting in poorer performance.&lt;/P&gt;&lt;P&gt;But as suggested by SAP we should not use Occurs 0.&lt;/P&gt;&lt;P&gt;Rather we should use declare seperate workarea for the internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 06:35:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1774778#M334269</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T06:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table ????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1774779#M334270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Don't use occur while declaring internal tables. it is obsolete now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;occurs is related to the amount of memory that will be allocated for the internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sonika&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 06:36:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1774779#M334270</guid>
      <dc:creator>former_member632991</dc:creator>
      <dc:date>2006-12-22T06:36:26Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Table ????</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1774780#M334271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;0 Allocates 8kb of memory to table by default. If data exceeds 8kb, it assigns 8kb again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 means, It assigns one record memory every time dynamically. By default it contains memory for one record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, Memorywise 1 is better.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2006 06:38:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table/m-p/1774780#M334271</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-12-22T06:38:21Z</dc:date>
    </item>
  </channel>
</rss>

