<?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/2611516#M599091</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when we are going to use the internal tables..&lt;/P&gt;&lt;P&gt;whts the use of internal tables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2007 11:51:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-25T11:51:26Z</dc:date>
    <item>
      <title>internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/2611516#M599091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when we are going to use the internal tables..&lt;/P&gt;&lt;P&gt;whts the use of internal tables&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 11:51:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/2611516#M599091</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T11:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/2611517#M599092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hie ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal tables provide a means of taking data from a fixed structure and storing it in working memory in ABAP. The data is stored line by line in memory, and each line has the same structure. In ABAP, internal tables fulfill the function of arrays. Since they are dynamic data objects, they save the programmer the task of dynamic memory management in his or her programs. You should use internal tables whenever you want to process a dataset with a fixed structure within a program. A particularly important use for internal tables is for storing and formatting data from a database table within a program. They are also a good way of including very complicated data structures in an ABAP program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Bijal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 11:55:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/2611517#M599092</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T11:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/2611518#M599093</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;Internal tables are a very important concept of ABAP. &lt;/P&gt;&lt;P&gt;They are use to store the data of database tables temporarily. &lt;/P&gt;&lt;P&gt;This is done to ensure that the Database is not accessed continuously.&lt;/P&gt;&lt;P&gt;You can do any processing on the data in the internal tables and finally save the processed data from the internal table to the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ABAP doesn't support arrays.&lt;/P&gt;&lt;P&gt;Internal table is like multi dimensional arrays where you can store data in &lt;/P&gt;&lt;P&gt;rows and columns.&lt;/P&gt;&lt;P&gt;It contains header line.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Header line is nothing but a work area of the table.&lt;/P&gt;&lt;P&gt;Either you can have header line in the internal table or you can declare a work area separately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HEADER &amp;amp; BODY: Every table(be it internal or transparent)contains two sections: Header and Body.&lt;/P&gt;&lt;P&gt;Header is a workarea of the table which acts as an interface for the table. Header can have only one record at a time&lt;/P&gt;&lt;P&gt;Body is the entire table containing the data or records. Body is a collection of records.&lt;/P&gt;&lt;P&gt;Structure of header and body are same for a particular table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;internal table.&lt;/P&gt;&lt;P&gt;data: begin of itab occurs 0,&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 itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Reward If Helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 11:56:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/2611518#M599093</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T11:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/2611519#M599094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 11:57:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/2611519#M599094</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T11:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/2611520#M599095</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.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3660358411d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3660358411d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;u&amp;gt;Read this notes&amp;lt;/u&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal Tables&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal tables are considered to be the true work horse of ABAP. They can have a big impact on processing and performance when programmed incorrectly. Use the quick checklist below to help guide you when coding internal table(itab) processing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal Table Quick Checklist&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at itab must always use a work area or assign to a field symbol &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use parallel cursor technique for nested loops. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the TRANSPORTING clause with READ and MODIFY wherever possible to tranport only the fields necessary &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use TRANSPORTING No FIELDS clause when checking only for existence of a record &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Read by INDEX is the fastest access option for a single READ. Use standard table if you are &lt;/P&gt;&lt;P&gt;accessing mainly by index. Consider this where possible but use caution as it does not apply to all programming situations. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specify full key on a table read whenever possible. Use &amp;#145;WITH TABLE KEY&amp;#146; clause when full key is specified &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal Tables should be passed to FORMS with the "USING" clause.  The "TABLES" clause is considered obsolete.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal tables should be passed to FORMS by Reference for performance reasons &lt;/P&gt;&lt;P&gt;i.e. do not use USING Value(..) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do not use Occurs 0 or With Header Line unless it is a SAP function that requires it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hashed tables are a good performance approach over standard tables whenever random record accesses are required for a large internal table using the fully qualified key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When sorting internal tables, always use "SORT BY Key1...n", never just "SORT" on it's own   &lt;/P&gt;&lt;P&gt;Standard Tables require a Sort by, Delete adjacent Duplicates, and READ itab with KEY...Binary Search &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Keep "SORT itab BY" statement as close as possible to the READ itab with KEY...Binary Search. &lt;/P&gt;&lt;P&gt;Delete Adjacent Duplicates should always be explicit by using the COMPARING clause, even if there is only one field in the itab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Standard Tables should be sorted by sorting keys to take advantage of Binary Search. However, if you sort by one key and Read with a different set, you could miss data &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;Reshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:06:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/2611520#M599095</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/2611521#M599096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;HASHED TABLE:&lt;/P&gt;&lt;P&gt;U cannot use index operation in HASHED table.&lt;/P&gt;&lt;P&gt;Use INSERT &amp;lt;WA&amp;gt; INTO TABLE &amp;lt;HAS_ITAB&amp;gt;.&lt;/P&gt;&lt;P&gt;1. Hashed tables are useful if you want to construct and use an internal table which resembles a database table or for processing large amounts of data.&lt;/P&gt;&lt;P&gt;2. You will not be able to use the APPEND statement. Instead you can use the INSERT statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INSERT &amp;lt;wa&amp;gt; INTO &amp;lt;itab&amp;gt;.&lt;/P&gt;&lt;P&gt;3. Index operations cannot be used for hashed tables. For index tables(Standard and sorted), index operations are faster than key operations. Hashed tables are useful for reading a single data record via the table key, since the resulting access time is independent of the number of table entries. The location of the data record to be read is determined using the hash function.&lt;/P&gt;&lt;P&gt;4. INSERT for a standard table or hashed table using the key has the same effect as an APPEND statement.&lt;/P&gt;&lt;P&gt;5. /people/harry.dietz/blog/2005/10/28/performance-improvement-hints-3-internal-table--fill-and-read  on internal tables(sorted,std,hashed)&lt;/P&gt;&lt;P&gt;STANDARD TABLE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Defines the table as a standard table. Key access to a standard table uses a linear search. This means that the timne required for a search is in linear relation to the number of table entries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should use index operations to access standard tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the sake of compatibility, you can use TABLE as a synonym of STANDARD TABLE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORTED TABLE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Defines the table as one that is always saved correctly sorted. Key access to a sorted table uses a binary key. If the key is not unique, the system takes the entry with the lowest index. The runtime required for key access is logarithmically related to the number of table entries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also access sorted tables by index operations. When you insert using an index, the system checks to ensure that the sort sequence has been correctly maintained. For this reason, it takes longer than inserting entries in a standard table. As a rule, you should only access sorted tables using their key. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HASHED TABLE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Defines the table as one that is managed with an internal hash procedure. You can imagine a hashed table as a set, whose elements you can address using their unique key. Unlike standard and sorted tables, you cannot access hash tables using an index. All entries in the table must have a unique key. Access time using the key is constant, regardless of the number of table entries. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can only access a hashed table using the generic key operations or other generic operations ( SORT, LOOP, and so on). Explicit or implicit index operations (such as LOOP ... FROM oe INSERT itab within a LOOP) are not allowed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INDEX TABLE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Standard and sorted tables belong to the generic class index tables. An index table is one that you can access using an index. You can currently only use the table type INDEX TABLE to specify the type of generic parameters in a FORM or a FUNCTION. Hashed tables are not index tables, and cannot therefore be passed to parameters defined as INDEX TABLE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ANY TABLE &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;Like INDEX TABLE, you use ANY TABLE to specify the type of any generic table parameter. The set of permitted operations for a table with type ANY TABLE consists of the intersection of all permitted operations for STANDARD, SORTED and HASHED TABLEs, and so is identical to the set of operations permitted for hashed tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note in particular that you cannot use index access for tables with this type. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward if Helpful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karthick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:12:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/2611521#M599096</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: internal tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/2611522#M599097</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;internal tables are mainly used to maintain fixed client specified fields in the output.it improves the performance of coding. we will be populating the data into user defined internal table.therefore the master table remains unaffected.it uses memory during runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward with points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 12:14:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-tables/m-p/2611522#M599097</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T12:14:00Z</dc:date>
    </item>
  </channel>
</rss>

