<?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 Reg int table declaration in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-int-table-declaration/m-p/3668723#M883658</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;        What does the following statement mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_tab       TYPE STANDARD TABLE OF tp_tab&lt;/P&gt;&lt;P&gt;                           WITH NON-UNIQUE DEFAULT KEY,&lt;/P&gt;&lt;P&gt;What is the use of using "NON-UNIQUE DEFAULT KEY"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chinmaye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 Apr 2008 06:29:08 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-14T06:29:08Z</dc:date>
    <item>
      <title>Reg int table declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-int-table-declaration/m-p/3668723#M883658</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;        What does the following statement mean?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t_tab       TYPE STANDARD TABLE OF tp_tab&lt;/P&gt;&lt;P&gt;                           WITH NON-UNIQUE DEFAULT KEY,&lt;/P&gt;&lt;P&gt;What is the use of using "NON-UNIQUE DEFAULT KEY"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Chinmaye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 06:29:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-int-table-declaration/m-p/3668723#M883658</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T06:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Reg int table declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-int-table-declaration/m-p/3668724#M883659</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;The optional additions UNIQUE or NON-UNIQUE determine whether the key is to be unique or non-unique, that is, whether the table can accept duplicate entries. If you do not specify UNIQUE or NON-UNIQUE for the key, the table type is generic in this respect. As such, it can only be used for specifying types. When you specify the table type simultaneously, you must note the following restrictions: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot use the UNIQUE addition for standard tables. The system always generates the NON-UNIQUE addition automatically. &lt;/P&gt;&lt;P&gt;You must always specify the UNIQUE option when you create a hashed table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 06:30:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-int-table-declaration/m-p/3668724#M883659</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T06:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Reg int table declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-int-table-declaration/m-p/3668725#M883660</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;........... With [UNIQUE | NON-UNIQUE] { {KEY comp1 comp2 ...} &lt;/P&gt;&lt;P&gt;                          | {DEFAULT KEY} } ... . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Definition of a table key in an internal table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You use UNIQUE and NON-UNIQUE to specify whether the table key is unique or not. For a table key specified with UNIQUE, a row with a certain key field content can only occur once in an internal table of this type. You can only use NON-UNIQUE for standard tables , UNIQUE for hashed tables, and both for sorted tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The key fields can be alternatively defined as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bulleted list of individual components comp1 comp2 ... of the row type behind KEY. Prerequisite is that the row type is structured and that the components are neither table types nor table types containing components. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the entire table row is defined as a key, you can only specify the pseudo component table_line behind KEY as the only component comp. This is possible for any row types. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specify the standard key DEFAULT KEY. The standard key fields of a structured row type are all fields that are neither numeric (i, p, f) nor table types. The standard key for non-structured row types is the entire table row if the row type itself is not a table type. If there is no relevant component that applies and the row type itself is a table type, the standard key remains empty. This is only possible for standard tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The table key does not have to be specified in the statement TYPES and does not have to be unique. If a table key is not or only partially specified, then the resulting table type is generic and can only be used for typing formal parameters or field symbols. The individual table types are differentiated as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no key is specified for standard tables, the table type to the key fields is generic. The addition NON-UNIQUE is always implicitly extended for standard tables. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no key is specified for sorted tables, the table key is completely generic. If only the additions UNIQUE and NON-UNIQUE are omitted, the table key is only generic in regards to uniqueness. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If no key is specified for hashed tables, the table key is completely generic. If the additions UNIQUE and NON-UNIQUE are omitted, the table key is only generic in regards to uniqueness. As hashed tables can only be defined with the addition UNIQUE, a warning is issued by the syntax check. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the generic table types ANY TABLE and INDEX TABLE, you can specify a key without specifying the uniqueness.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 06:33:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-int-table-declaration/m-p/3668725#M883660</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T06:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Reg int table declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-int-table-declaration/m-p/3668726#M883661</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any standard table by default is NON-UNIQUE. You cannot use the UNIQUE addition with a standard table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This specifies that the internal table t_tab may contain records with the same key fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 06:34:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-int-table-declaration/m-p/3668726#M883661</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2008-04-14T06:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Reg int table declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-int-table-declaration/m-p/3668727#M883662</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;  NON-UNIQUE means -- The internal table accepts duplicate values also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 06:34:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-int-table-declaration/m-p/3668727#M883662</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T06:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: Reg int table declaration</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reg-int-table-declaration/m-p/3668728#M883663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The UNIQUE and NON-UNIQUE additions allow you to specify whether a table with type itabtype may contain two or more records with the same key or not. The following rules apply: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STANDARD TABLE: &lt;/P&gt;&lt;P&gt;The key is always NON-UNIQUE by default. You cannot use the UNIQUE addition with a standard table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORTED TABLE: &lt;/P&gt;&lt;P&gt;There is no default setting for sorted tables. If you do not specify UNIQUE or NON-UNIQUE, the system creates a generic table type without a particular uniqueness attribute. You can use generic types to specify the types of generic subroutine parameters. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HASHED TABLE: &lt;/P&gt;&lt;P&gt;There is no default setting for hashed tables. However, you must define a UNIQUE key. The NON-UNIQUE addition is not permitted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DEFAULT KEY &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The key fields are the standard keys. Note that you can only specify an empty key for tables with access type STANDARD TABLE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;Performance: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, the runtime required to access an internal table by its key increases with the length of the table key. The access time improves if the key is as compact as possible (no gaps) and left-justified. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Apr 14, 2008 6:16 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Apr 2008 06:36:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reg-int-table-declaration/m-p/3668728#M883663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-14T06:36:50Z</dc:date>
    </item>
  </channel>
</rss>

