<?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 tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/5365775#M1234722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean in SE11?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Mar 2009 19:02:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-03-24T19:02:33Z</dc:date>
    <item>
      <title>internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/5365771#M1234718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi frnds..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;can any one tell the 3 types of internal table declarations with detailed explanation abt each type clearly...plsss&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanx in adv..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 18:53:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/5365771#M1234718</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T18:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/5365772#M1234719</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;[Search|http://www.google.co.in/search?hl=en&amp;amp;q=types&lt;EM&gt;of&lt;/EM&gt;internal&lt;EM&gt;tables&amp;amp;btnG=Google&lt;/EM&gt;Search&amp;amp;meta=] the SCN or Google to find the answer for your basic question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 18:57:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/5365772#M1234719</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T18:57:28Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/5365773#M1234720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;read my question correctly boss....m not asking 3 types of int tables...m asking 3 types of int tab declarations&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 19:00:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/5365773#M1234720</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T19:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/5365774#M1234721</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;For extremely large internal tables, use HASHED tables.  This will increase performance by allowing a constant read access time for records.  For smaller internal tables, use SORTED tables, in which binary search is used.  &lt;/P&gt;&lt;P&gt;Do not use internal tables with header but define the header line separately.&lt;/P&gt;&lt;P&gt;The CLEAR statement should be used to initialize the table header line.&lt;/P&gt;&lt;P&gt;The REFRESH statement should be used to delete all table entries and release any paged-out area. &lt;/P&gt;&lt;P&gt;If you do not specify an OCCURS clause or INITIAL SIZE, it defaults to zero.  OCCURS is still needed when declaring a table in the BEGIN OF u2026 statement.&lt;/P&gt;&lt;P&gt;STANDARD TABLES are read in linear fashion.&lt;/P&gt;&lt;P&gt;Using the TYPES statement to declare a structure and the DATA statement to declare an internal table will allow one to create SORTED and HASHED tables.&lt;/P&gt;&lt;P&gt;SORTED TABLES save records ascending by key and index. &lt;/P&gt;&lt;P&gt;They offer the ability to read data logarithmically decreasing read access time. &lt;/P&gt;&lt;P&gt;HASHED TABLES save records using a unique key, can only be read using that key, and offer a constant read access time irrelevant of how many records are stored.  &lt;/P&gt;&lt;P&gt;There are 3 types of internal tables (standard, sorted, and hashed) and 2 categories (Index and Hashed).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Category: Index Tables   &lt;/P&gt;&lt;P&gt;Type: Standard Tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Standard tables cannot have a UNIQUE KEY.&lt;/P&gt;&lt;P&gt;Standard tables can be declared with DEFAULT KEY, which is a combination of all non-numeric fields in the record.&lt;/P&gt;&lt;P&gt;Standard tables searched by their key are searched in a linear fashion and therefore access time is dependent on where in the table the matching record is stored.&lt;/P&gt;&lt;P&gt;Standard tables can be searched by their index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declaring a Standard Table:&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;In the DATA: statement using the OCCURS clause. &lt;/P&gt;&lt;P&gt;DATA:                 BEGIN OF STRUCTURE OCCURS 0,&lt;/P&gt;&lt;P&gt;		          PERNR LIKE PERNR-PERNR,&lt;/P&gt;&lt;P&gt;		          VORNA LIKE PA0002-VORNA,&lt;/P&gt;&lt;P&gt;		  END OF STRUCTURE.&lt;/P&gt;&lt;P&gt;	&lt;/P&gt;&lt;P&gt;Using the TYPES:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;	TYPES:  BEGIN OF STRUCTURE OCCURS 0,&lt;/P&gt;&lt;P&gt;		          PERNR LIKE PERNR-PERNR,&lt;/P&gt;&lt;P&gt;		          VORNA LIKE PA0002-VORNA,&lt;/P&gt;&lt;P&gt;	               END OF STRUCTURE.&lt;/P&gt;&lt;P&gt;			      &lt;/P&gt;&lt;P&gt;	 DATA:  ITAB TYPE [TABLE | STANDARD TABLE] OF STRUCTURE&lt;/P&gt;&lt;P&gt;	                            		WITH KEY XXXXX&lt;/P&gt;&lt;P&gt;        					WITH HEADER LINE&lt;/P&gt;&lt;P&gt;    					INITIAL SIZE  N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type: Sorted Tables&lt;/P&gt;&lt;P&gt;Sorted tables must have either a UNIQUE or NON-UNIQUE key.&lt;/P&gt;&lt;P&gt;Sorted tables are saved in sorted order, if the key is non-unique, they are  sorted from the lowest index.&lt;/P&gt;&lt;P&gt;Sorted tables should be read using their keys.&lt;/P&gt;&lt;P&gt;Sorted tables retrieve data using the binary search and the data access time is dependent on the amount of records. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declaring a Sorted Table:	&lt;/P&gt;&lt;P&gt;	Using the TYPES:&lt;/P&gt;&lt;P&gt;		            TYPES: BEGIN OF STRUCTURE OCCURS 0,&lt;/P&gt;&lt;P&gt;				          PERNR LIKE PERNR-PERNR,&lt;/P&gt;&lt;P&gt;				          VORNA LIKE PA0002-VORNA,&lt;/P&gt;&lt;P&gt;			              END OF STRUCTURE.			      &lt;/P&gt;&lt;P&gt;			 DATA:  ITAB TYPE SORTED TABLE OF&lt;/P&gt;&lt;P&gt;                                                           STRUCTURE &lt;/P&gt;&lt;P&gt;                                        WITH [UNIQUE | NON-UNIQUE] KEY XXXXX&lt;/P&gt;&lt;P&gt;        				 WITH HEADER LINE&lt;/P&gt;&lt;P&gt;                                                     INITIAL SIZE  N.&lt;/P&gt;&lt;P&gt;Category: Hashed Tables&lt;/P&gt;&lt;P&gt;Type: Hashed Tables&lt;/P&gt;&lt;P&gt;Hashed tables must have a unique key.&lt;/P&gt;&lt;P&gt;Hashed tables use a hashing algorithm to have a constant access time for the data.&lt;/P&gt;&lt;P&gt;It is recommended to use Hashed tables for excessively large internal tables.&lt;/P&gt;&lt;P&gt;Declaring Hashed Tables:&lt;/P&gt;&lt;P&gt;Using the TYPES:&lt;/P&gt;&lt;P&gt;		           TYPES: BEGIN OF STRUCTURE OCCURS 0,&lt;/P&gt;&lt;P&gt;				          PERNR LIKE PERNR-PERNR,&lt;/P&gt;&lt;P&gt;				          VORNA LIKE PA0002-VORNA,&lt;/P&gt;&lt;P&gt;		                         END OF STRUCTURE.&lt;/P&gt;&lt;P&gt;			      &lt;/P&gt;&lt;P&gt;			     DATA:  ITAB TYPE HASHED TABLE OF&lt;/P&gt;&lt;P&gt;                                                            STRUCTURE&lt;/P&gt;&lt;P&gt;                                                         WITH UNIQUE KEY XXXX&lt;/P&gt;&lt;P&gt;                                                         WITH HEADER LINE&lt;/P&gt;&lt;P&gt;                                                         INITIAL SIZE N.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prabhudas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 19:02:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/5365774#M1234721</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T19:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/5365775#M1234722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean in SE11?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 19:02:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/5365775#M1234722</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T19:02:33Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/5365776#M1234723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanx mate but can u explain these below clearly plsss...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the DATA: statement using the OCCURS clause.&lt;/P&gt;&lt;P&gt;DATA: BEGIN OF STRUCTURE OCCURS 0,&lt;/P&gt;&lt;P&gt;PERNR LIKE PERNR-PERNR,&lt;/P&gt;&lt;P&gt;VORNA LIKE PA0002-VORNA,&lt;/P&gt;&lt;P&gt;END OF STRUCTURE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the TYPES:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPES: BEGIN OF STRUCTURE OCCURS 0,&lt;/P&gt;&lt;P&gt;PERNR LIKE PERNR-PERNR,&lt;/P&gt;&lt;P&gt;VORNA LIKE PA0002-VORNA,&lt;/P&gt;&lt;P&gt;END OF STRUCTURE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ITAB TYPE STANDARD TABLE OF STRUCTURE&lt;/P&gt;&lt;P&gt;WITH KEY XXXXX&lt;/P&gt;&lt;P&gt;WITH HEADER LINE&lt;/P&gt;&lt;P&gt;INITIAL SIZE N.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 19:04:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/5365776#M1234723</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T19:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/5365777#M1234724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess it turns out that Avinash Kodarapu was correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2009 19:08:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/5365777#M1234724</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-24T19:08:57Z</dc:date>
    </item>
  </channel>
</rss>

