<?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 Internal Tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1847679#M359400</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;Please tell me at the maximum no of records that an internal table can hold...so that it should not give a dump saying "cant extend the internal table"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vijaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Jan 2007 04:47:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-25T04:47:18Z</dc:date>
    <item>
      <title>Internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1847679#M359400</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;Please tell me at the maximum no of records that an internal table can hold...so that it should not give a dump saying "cant extend the internal table"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vijaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 04:47:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1847679#M359400</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T04:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1847680#M359401</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;depends on your memory allocation. There is no limit on the internal table, &lt;/P&gt;&lt;P&gt;refer.&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="696137"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 04:50:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1847680#M359401</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T04:50:27Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1847681#M359402</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijaya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;            The memory allocation of internal table is not fixed to some limit. It goes on increasing once u add the data and decreases when data is deleted from the table. So you can add as much data you require.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-Priyanka.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 04:52:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1847681#M359402</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T04:52:17Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1847682#M359403</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;That depends on the internal table type u have declared...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal tables of standard may cause dump for more number of entries..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u reallly have a lot of data  say..more than lakh entries... better go for hashed tables..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Rajiv&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 04:54:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1847682#M359403</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T04:54:16Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1847683#M359404</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it will depend on the memor allocated by basis,&lt;/P&gt;&lt;P&gt;please consult ur basis&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 04:56:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1847683#M359404</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T04:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1847684#M359405</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u explain me abt hashed tables? i dnt have any idea abt this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how hash tables can be replaced with internal tables? and when it is better to use these?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u please give me some examples? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Vijaya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 05:42:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1847684#M359405</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T05:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1847685#M359406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Internal table can be of many types..say standard, hashed, sorted etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;main diff between standard and hashed is..::&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A standard table type of internal table increases the size as and when the data (or records) increases...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But an hash table initially provides a large memory sufficient for lot of data ..say a lakh records..&lt;/P&gt;&lt;P&gt;When the reords go more than lakh, it provides memory for another lakh records.. &lt;/P&gt;&lt;P&gt;Means that memory allocation will be in terms of a count...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But , point to be noted is , use hash tables when u r sure that the record count is high.. If not memory space is wasted..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Rajiv..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 06:47:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1847685#M359406</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T06:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1847686#M359407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes i have to store more that 20 lack records in my internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as of now i am declaring all my internal tables as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: itab type standard table of "structure name"/"table name" with header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now instead how should i declare a hashed table?&lt;/P&gt;&lt;P&gt;is it jus change in the internal table declration or something else also? if yes please tell me where all i need do changes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and one more question is will it improve my performance in terms of data loading?(please mention reasons for yes/no)&lt;/P&gt;&lt;P&gt;and is there any chance of dump like "cannot extend the internal table"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;Vijaya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 07:35:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1847686#M359407</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T07:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1847687#M359408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijaya!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually not the numbers of entries, but the data amount is the problem. So just count the line size of your internal table (e.g. MATNR = CHAR18 -&amp;gt; 18 bytes in normal, 36 bytes in unicode systems). Then multiply by 2 million -&amp;gt; you have your expected memory consumption. &lt;/P&gt;&lt;P&gt;Today's system defaults are set to 2GB as maximum per job - but I would plan my program just with 500 MB as maximun: if there are other jobs running, the theoretical border might already out of reach. Also it's possible to use already the harddisk for swapping much earlier -&amp;gt; bad performance, even if the job will not dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By the way: If counting is to difficult, use the debugger. In the new debugger tables are shown like it_data[0x10(20)] which means: 0 entries with 10 fields and 20 bytes (here I had 10 char1 flag-fields).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In case your table would be to big, think about storing names in different tables and read them only for the output -&amp;gt; you store the big fields only once, not x-times in the big table. Or you have to split the work into packages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 08:36:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1847687#M359408</guid>
      <dc:creator>christian_wohlfahrt</dc:creator>
      <dc:date>2007-01-25T08:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1847688#M359409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also instead of using the statement REFRESH, use the statement FREE. This will release the memory back to the system.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 09:26:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1847688#M359409</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-25T09:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Internal Tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1847689#M359410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijaya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the Hashed tables issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First, an hashed table, is a kind of internal table which is used when you have records where you can completly speciffy it's key. It's an internal table where you cannot use the LOOP statement, only READ .. WITH TABLE KEY. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's most advantage is the performance (the access to it is imediate and bigger the table, bigger the advantage! -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt; you will notice!!!). Remeber you cannot duplicate it's key. If you do it, you'll het a short dump. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I usually use hashed tables in situations like this. Imagine you have a simple report with 4 colums (DOCUMENT-ITEM-MATERIAL-MATERIAL DESCRIPTION). You can fill an hashed table with the materials and the descriptions like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF ty_mat,&lt;/P&gt;&lt;P&gt;               matnr LIKE mara-matnr,&lt;/P&gt;&lt;P&gt;               maktx LIKE makt-maktx,&lt;/P&gt;&lt;P&gt;             END OF ty_mat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: it_mat TYPE HASHED TABLE OF ty_mat &lt;/P&gt;&lt;P&gt;                             WITH UNIQUE KEY matnr,&lt;/P&gt;&lt;P&gt;          wa_mat TYPE ty_mat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.... &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SELECT matnr maktx FROM makt &lt;/P&gt;&lt;P&gt;         INTO TABLE it_mat WHERE spras EQ 'EN'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   SELECT vbeln posnr matnr FROM VBAP INTO it_items .......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT it_items INTO wa_items.&lt;/P&gt;&lt;P&gt;      READ TABLE it_mat INTO wa_mat &lt;/P&gt;&lt;P&gt;          WITH TABLE KEY matnr = wa_items-matnr.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will avoid you to duplicade selects for the description for the same material. Imagine you have 2000 documents with only 2 different materials.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really advise you to use hashed tables anytime it's possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Valter Olveira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Jan 2007 11:53:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/1847689#M359410</guid>
      <dc:creator>valter_oliveira</dc:creator>
      <dc:date>2007-01-25T11:53:02Z</dc:date>
    </item>
  </channel>
</rss>

